« first day (1279 days earlier)      last day (3669 days later) » 

12:00 PM
@derylius Im still getting missing value, Im using applescript, here is my code
set views to do JavaScript "document.getElementById('youtube-summary-outer-wrap').childNodes[9].childNodes[1].childNodes[1]"
 
@Enissay $ can be anything... Depends on the site
 
@SteamFire Whoa, there's a lot of white on this page...
My eyes had to readjust
 
of black...
 
window.$ = function(){ return null }
 
@SteamFire of white, on this page
 
12:00 PM
oh okay
hahaha
did you traveled all?
I didn't...
 
I got to Neptune and then I just jumped to Pluto
 
user2509223
@user3110546 i have no idea about applescript
 
user2509223
@user3110546 in javascript it worked for me
 
Even jumping pages clicking above scroll cursor was too slow at a certain point
 
Thank you guyz for your help =)
 
12:02 PM
Okay
 
I can't scroll this way with my mouse so I used the arrows... I didn't want to miss something...
 
@derylius: Did you mean: bananascript
 
user2509223
@OneKitten what the hell just happened with my code? i cant read it anymore
 
Same for me, it's the encoding
I think you're in UTF-8
 
user2509223
12:06 PM
@OneKitten ah, ok, UTF-8 not supported
 
Okay, Found my error, Thanks heap man!
 
@mamasi Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
user2509223
@user3110546 learn JavaScript
 
user2509223
!!tell user3110546 mdn javascript
 
12:07 PM
@Neil Hey! So I have a question about:
if (!existsParameter(param))
addParameter(param)

If existsParameter isn't defined how can it be used? I was thinking of typeof but i'm not sure
 
one more close vote please
-7
Q: why this code make a compile error?

hasaralipublic static void parse(String str) { try { float f= Float.parseFloat(str); } catch (NumberFormatException nfe) { f= 0; } finally { System.out.println(f); } } public static void main(String[] args) { parse(”invalid”); }

 
done
hopefully I never go on the java tag...
 
one more delete vote please
 
we need rep to vote didn't we?
 
How to get query string value
home.html?i=3

I need i value.
I searched in google, but I need more help.
in jquery
 
12:13 PM
@DavidH Well you define it :)
 
Ho, him again
 
You mean how do you check that it is defined before calling it?
@SteamFire Him who?
 
No as what would I define it
@Neil Illaya he has been harassing others on stackoverflow
 
@Neil he is told about me
 
He's quite known for it
 
12:14 PM
@Illaya you know what is really fucking annoying? seeing you jump into JS and HTML and drop EVERY question in both rooms
 
@dystroy so this is how you use the favorite button :P
 
@FlorianMargaine yes, mostly
 
I use mine like this:
 
morning @rlemon
 
@Neil I mean the parameter in the ( ) would be what I add in the URL but the existsParameter, I wouldn't know what to define it as :P
 
12:14 PM
@rlemon So that anyone can answer my question. so only. is it right or wrong?
 
i.e. for useful stuff :P
 
do you really need to ask?
 
@FlorianMargaine yeah... useful...
 
I just said it was annoying and deleted your other message
 
@FlorianMargaine care to share the second useful link ?
 
12:15 PM
oh.
yeah, that.
the exception.
 
@rlemon ok
 
@derylius for network with I got 19 for the first child nodes, is that right?
 
then stop being one
 
user2509223
@user3110546 i have no idea
 
@rlemon Poor you, needing to get worked up over him then again you constantly see him do it
 
12:17 PM
@FlorianMargaine disapointing
 
@DavidH You can parse the parameters from the url, but it would be better if you knew the names of the parameters because you put them there to begin with
 
@DavidH what makes you think I'm worked up?
 
In a form, that corresponds to all input tags within that form
 
@dystroy :P
 
@derylius okay, Its causing me trouble, but I should be able to work it out
 
user2509223
12:19 PM
@user3110546 should be 13 if im not wrong
 
@rlemon Maybe worked up is the wrong word for it but needing to bother is what I mean @Neil I know the variable for the parameter I use to add to the URL though do you mean defining Parameter as the variable I use for it and is exists a JS function
 
user2509223
David H ignored
 
@DavidH "room owners" tend to like to keep the room clean and clear of annoying or bothersome users and content.
 
What ?
 
Just looked. There's no boob in Unicode. How comes there's klingon in unicode but no boob ? What's more important ?
 
12:20 PM
@rlemon Oh that's why, didn't know you were the owner
 
user2509223
ah much better
 
you should delete one of them
 
@DavidH Not sure I understand
 
Okay, will do, and ill try 13 in a min
 
@Neil Say:
var Parameter = the value i want in the URL;

if (!existsParameter(Parameter)){
....

Is that what you ment I had to do?
 
user2509223
12:22 PM
i guess ill propose on meta to not see the replies of messages by ignored users
 
@DavidH I would define Parameter as the value you want to add to the URL, but yeah
And generally, variables should follow camelCase whenever possible
 
@Xenocideae Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
Though, you do know that parameters are automatically added to the URL in a form request, right?
 
@gaskar Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
You shouldn't need to add it manually unless you were doing something particular
 
12:25 PM
@derylius 13 was the button above it, I can't get it at all :(
 
Though I thought what you ment me to do was make Parameter the value I want in the URL, than make an if like you showed me and as else return false?
In the first part of the IF statement of course the code that adds it in the URL
 
@plac88 Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@DavidH The existsParameter should have one job and one job only. If the passed parameter exists in the URL, it returns true, otherwise false. It shouldn't add anything
If you know the parameter isn't there, you can then call addParameter which actually appends the parameter to the URL
 
So...I didn't even need to define anything?
Besides place it above window.history ?
 
How do I build a forum?
 
12:32 PM
:(
 
(\)(;..;)(/)
 
step 1) learn programming
step 2) learn how to build a CMS
step 3) build a forum
 
What is faster way to dynamically add images, add href's to existing <a> tags, or inject <a> elements using .html in jquery? Also, how can i preload images?
 
was a joke
 
@BikerJohn you mean <img> elements?
 
12:33 PM
img sorry :)
my bad
 
also don't use .html
 
@rlemon hey you should be careful, you can be a easy target for a (\)(;..;)(/) (help vampire)
 
@rlemon so do you suggest changing href attribute?
 
wow 4 ping in 20 sec
 
@BikerJohn src :P
4
A: Can I "pre-load" an image with JS to be used as a CSS background-image?

SomeKittens Ux2666You don't even need to use JS for this (with the downside of delaying the page load event). Include something like this: <img src="/path/to/image.jpg.png.gif.bmp" style="display: none" /> This will trigger a request for the image, and add it to the local cache. When you set the CSS backgroun...

 
12:35 PM
@DavidH I'm totally lost
 
ignore the css background part
the answer is what you are after
 
@Neil Because I generally don't get what !existsParameter is, wether it's a JS function or what to define it as since it is indeed undefined what I do get though is what is supposed to be here (That one value for the URL)
 
@rlemon src yes -___- im totally confused today. Thank you : )))
 
@derylius Got any idea how i can do it?
@derylius i tried 13 and 19
 
@Neil I'll just show you what I thought I had to do:
http://pastebin.com/ynEvpPFy
Forgot to add that thisURL is the value I want in my URL(It works correctly)
 
user2509223
12:43 PM
@user3110546 it is 13, its the button where written: Not Enough Views for Partnership
 
@DavidH Yes, it's just a pojso (plain old javascript object)
 
1 message moved to Trash can
 
where exactly should I put <meta http-equiv="X-UA-Compatible" content="IE=EDGE" /> in my html document
 
@derylius Its this bit I'm trying to get Networked With / Claimed By:, is that 13?
 
@derylius I had to un-ignore you because the sidebar let me see that message. don't fucking advocate .innerHTML for that shit
 
12:44 PM
should I put it in HEAD
 
@Neil So what is it than supposed to be? If it's not defined.
 
@CustomizedName in the head
 
@rlemon ta
 
function existsParameter(param) {
    // add logic here
    return true;
}
 
I thought it was a JS function that'd do it's work until I was told it was undefined
 
user2509223
12:45 PM
@rlemon ?
 
Alright let's try that
 
i'll slow it down for you
don't...... advocate....... innerHTML...... for....... that...... type........ of........ shit
 
@DavidH What work could it do if it isn't defined?
 
@Neil As we concluded nothing right?
 
@DavidH Anything that isn't defined at the moment of calling it is undefined
 
12:47 PM
@derylius So it is 13 for Networked With / Claimed By:?
 
user2509223
@user3110546 no
 
user2509223
@rlemon r u mad?
 
Okay well thats what i wanted to get, do you what it is?
I tried 19, but no luck
 
@derylius well a) I don't like you. b) you just gave out bad advice. don't do that.
 
always nice when your boss takes you out for a few pints at lunch :)
 
12:49 PM
<meta http-equiv="X-UA-Compatible" content="IE=EDGE" /> is not actually hiding IE Compatiblity button :(
in IE 10
 
@DrogoNevets if only... He don't give a shit about me. I'm a trainee...
 
@Neil I kind of lost track now >.<
Currently what I had in mind but obviously doesn't work..:
http://pastebin.com/bSX46Lh9
 
user2509223
@user3110546 its: document.getElementById("youtube-summary-outer-wrap").childNodes[20].childNodes[‌​1]
 
@DavidH existsParameter wasn't defined before, but neither is addParameter
 
Yea I was just about to edit my message about addparameter
 
12:54 PM
I mentioned them to illustrate the logic behind it, however the implementation details I didn't provide
 
user2509223
@rlemon a) your personal sympathy should not make you delete messages b) if you think my advice is bad maybe its time for you to give advice
 
And besides, you shouldn't be altering the URL in existsParameter
 
please close it fast ^
 
Right.. I'm derping out now
 
12:55 PM
@SteamFire our (3 above me) has been here 35 years today, so took everyone out for a pint, and then we all bought our own :D so yea....dont expect much sense from me
(ive had 4 rounds effectively)
 
@Neil I'm going to try something could you then tell me if I did it right?
 
@DavidH Ok, but running the code should tell you if you did it right :P
 
@Neil Well you but often I get told by people here that I use incorrect ways to solve things because yea i'm a rookie xD
 
user2509223
@rlemon and c) .innerHTML is completely legit in this case and im not advocating it, but im trying to give easy to use, easy to understand codes to a fellow
 
oh and @SteamFire language, there are children about! ;)
 
12:58 PM
@derylius cool story bro. I see you giving out bad advice again and i'll bin that too and call you out on it again. enjoy your stay.
 
How to go to a particular line in jquery (like goto statement in C#)
 
@Illaya you don't
397
Q: What is the XY problem?

GnomeWhat is the XY problem? When asking questions, how do I recognize when I'm falling into it? How do I avoid it? Return to FAQ index

 
user2509223
@rlemon don't be an apple user
 
@DavidH Nothing wrong with being a rookie, however being able to figure out where the problem lies is just as crucial as being able to write code
 
@derylius don't argue with the guy who can remove your message ;)
 
12:59 PM
@rlemon then how did i do this?
 
@derylius what did you suggest innerHTML for, exactly?
 
That is true, Neil.
 
@Illaya read the link. you have an XY problem.
what are you actually trying to achieve.
 
I don't mind answering questions, but I won't always be here. It would be better to make efficient questions to your problem
 
user2509223
@canon retrieving the inner text from a span node
 
1:00 PM
^ why i deleted it
it is not meant for that, that is an abuse of an already overly abused property
 
user2509223
@rlemon ^ explain it
 
rofl
 
element.textContent
I don't need to explain myself. learn javascript.
 
Of course but I don't plan relying on others, it's just that I need that small push in the right direction :P
 
@dystroy one more cv to go
 
1:01 PM
@rlemon I think he prefers to meta-program JS
Whatever that means
 
if(i == 3)
		{
			window.location.href = "rotate.html";
			//my execution resumes from this line... this i need
		}
@rlemon
 
@Illaya js doesn't work that way
 
Innertext isn't working for this, and for applescript I need to have that on the end, otherwise it doesn't get the vault, is there something else i could do?
 
sorry
 
document.getElementById('youtube-summary-outer-wrap').childNodes[20].childNodes[‌​1].childnodes[0]
@relmon @derylius
 
1:02 PM
@Illaya That's simply not possible.
 
not innerText, textContent
 
innerText is an old IE thing
textContent is the actual property
!!metal or dubstep
 
@rlemon metal
 
!!boxers or briefs
 
@canon boxers
 
1:04 PM
@CapricaSix, good answer
 
bs, I'll bet that's hard-coded
 
I think the only thing hard coded are trolling @jAndy
 
user2509223
@SomeGuy means ES6 proxies
 
!!should canon wear briefs or boxers
 
@OneKitten bocers
@OneKitten boxers
 
1:05 PM
@Illaya possibility 1) change the order of your code 2) it's impossible, execute it on rotate.html
 
LOL
 
Cheers everyone
 
!!do briefs cut off the blood to mr Johnson?
 
@rlemon Of course!
 
@SteamFire ok
 
1:05 PM
she is getting smarter and smarter every day
 
user2509223
!! rlemon or derylius
 
@derylius rlemon
 
very smart
 
any ONE knows ANY video THAT i CAN watch TO understand DOCUMENTMODE or QUIRKS please
 
boxers ruin the lines of my pants
 
1:06 PM
!!rlemon or one kitten
 
@OneKitten not so, the choice was easy
 
@OneKitten one kitten
 
and I'm not going to be one of those hipster douches who have their boxers spilling out of their pants :P
hah
apparently douche is in my profanity filter
 
@CustomizedName im SURE you TUBE has SOME content ON that SUBJECT for YOU. have YOU looked YET?
 
!!paper or rock or scissors or spock or lizard
 
1:07 PM
solution: boxer briefs.
 
lies
 
only if she listen to me...
 
@canon they are the best of both worlds. comfort and support
they are like a sports bra for your balls.
 
those are just briefs with unnecessary leg fabric which scrunches up into your crotch
 
@rlemon I will NOW thank YOU
 
1:08 PM
I've toured the world from boxers to briefs, to boxer-briefs, to commando, and back to briefs
 
ahh, see i buy good ones. very little leg fabric, so they don't bunch. just enough however to not pinch
 
javascript room description: male undergarments
 
@Neil What logic exactly should I put in the function before performing the if statement, I mean it had to do nothing if the value was already there
Wait, shouldn't it check if the value is already in the URL?
 
user2509223
@rlemon btw why you dont like me? im usually a slightly annoying but lovable person...
 
WHY on EARTH someone WOULD use THIS <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">
 
1:13 PM
@CustomizedName Template?
 
WHY on EARTH are YOU writing LIKE this?
2
 
@DavidH I don't know, you tell me :P
We started with the assumption that you need to add a parameter to a url.. if you're asking me what to write to get to this point, I don't know
depends on you I guess
 
user2509223
@rlemon .innerHTML ?
 
I already could all the time the only exception I didn't have was to tell it not to add it again if it's already there
 
@DavidH Ok, big picture time: What are you trying to achieve?
 
1:17 PM
@OneKitten BECAUSE i AM working ON internet EXPLORER, makes ME explorer 24 HOURS for BUGS
 
I can add Parameters to the URL. The parameters come from 2 lists, One list that has results and the other List being a Filter. Now they have the same parameters but of course the Filter list only has 1 value per filter.
That works correctly though each time you repeat to click the filter(The filter will do nothing) the URL does get the parameter added to it which actually only should happen once.
 
@OneKitten star
 
Simplified:
1. A few buttons add different values the URL
2. Each button click adds a value to the URL
Problem:
3. Click multiple times on the same button and you'll see the value appear in the URL multiple times, though it only has to happen once(The first time each button is clicked).
 
@DavidH That's way too technical still. What are you trying to achieve? An example of this might be, "Given a list of values, I want to search for selected values on the server"
 
@IshanDhingra Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
1:22 PM
I don't want my button to add the same value each time it's clicked.
 
@CustomizedName: honestly, your idea of a little joke is not funny. Keep this up and we'll have to resort to eating you. rules.javascriptroom.com
 
@DavidH Ok, that's what I had understood to start
 
hi
 
I'm assuming that you can add parameters to the URL already
 
Sorry for all the trouble, i'm bad at explaining as you can see
I can.
 
1:22 PM
 
Don't sweat it, I'm not trying to come off as a douche, just trying to understand the problem well
 
You aren't at all i'm actually appreciating you being patient with me
 
Ok, so whereas normally, you would add the parameter and you'd get duplicated, you need to implement a "existsParameter" method which checks if a particular parameter exists before adding it
 
@OneKitten why ? what have I did wrong ?
 
So basically, you do everything as you did before with the exception that if not exists.. // do what you did before to add parameter
 
1:24 PM
I'm trying to think of a way to do this..maybe a boolean?
 
Yes, you should have a function existsParameter which returns either true or false
And you can put it anywhere where a boolean can go, such as in an if statement
 
@CustomizedName: just DON'T type LIKE this, people don't like it. You seem capable of doing so now.
 
@CustomizedName transitioning from upper to lower case on every other word is annoying to read. :P not like nails on a chalkboard... but annoying none-the-less
 
Alright alright that makes it a bit clearer for me
 
@andre Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
1:26 PM
Hello every one!
 
Hi
 
Can anybody please give answer to

http://stackoverflow.com/questions/23029075/angular-js-using-filter-directive-to-modify-the-generated-output
 
band-aid: document.body.style.textTransform = "lowercase"
 
(function () {
    var style = document.createElement("style");
    style.type = "text/css";
    style.textContent = ".user-2131382.monologue { text-transform: lowercase; }";
    document.body.appendChild(style);
})();
 
1:41 PM
@mastilver Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
fast = lookupMatches.Aggregate(fast, (current1, match) => lookup[match].Aggregate(current1, (current, value) => current.Replace(value, "")));
Lol, think I'm going to stick with two for loops mind you :D
 
Fuck you stackoverflow flag system
 
This question appears to be off-topic because it is based of a big misunderstanding of everything it mentions. — dystroy 54 secs ago
 
@AbhishekHingnikar inb4 flag
 
no i dont give a fuck man, suspend me remove my account i don't give a fuck.
 
1:48 PM
ok... validated
 
@AbhishekHingnikar why you butthurt
 
@AbhishekHingnikar what happened ?
 
Someone explained to me the problem in his answer to latest question of mine, but I am not able to understand it, if anyone can help me understanding please,
 
They suspended me for posting an amazon link
cause somebody flagged.
 
That's obviously guerilla marketing
 
1:50 PM
https://stackoverflow.com/questions/23133939/document-mode-in-ie-10


Edit:

If (as inferred from a comment on one of your other questions) you want to vertically centre the #content box, try setting html, body { height: 100%; }. In standards mode, height: 100%; means 100% of the height of the parent element. If html and/or body are only as tall as the content, it won't get vertically centred on the screen.
 
I've been banned for posting lipsum services
@AbhishekHingnikar brush it off and move on
 
bah. i will just made me sad.
 
no point in getting worked up about it. it is a system level ban and they happen.
 
Wait, if you're banned you can still chat here?
 
Do you mean a chat ban? I can't see any 1-rep account
 
1:51 PM
@AbhishekHingnikar "suspended" ? That's bad (I guess it's bad, I don't know what suspension is on SO). But don't be so upset, some parts of the system don't always work but globally it's about OK and useful. We love you (well, not really, but we like you, that's good already)
 
@JanDvorak yes
 
ok... he's gone :-/
/me runs away
 
0
Q: Backbone fetch multiple collections to a single collection

user1389813I have two collections that I want to merge into one single collection, and I don't want to use jquery $.when(A.fetch(), B.fetch()) because $.when will execute failed callback as soon as one of the parameter fails which i don't want if one of them successful that I still want to render with it. ...

 
The Confrontation Clause of the Sixth Amendment to the United States Constitution provides that "in all criminal prosecutions, the accused shall enjoy the right…to be confronted with the witnesses against him." Generally, the right is to have a face-to-face confrontation with witnesses who are offering testimonial evidence against the accused in the form of cross-examination during a trial. The Fourteenth Amendment makes the right to confrontation applicable to the states and not just the federal government. The right only applies to criminal prosecutions, not civil cases or other proce...
SO should make flags work in accordance to the US constitution. We should have the right to know who suspended us
 
No, that would just lead to fights
SO uses anonymous votes and flags for a reason
 
1:57 PM
letting users suspend other users without forcing them to get context on the issue is worse IMO
leads to people getting suspended over posting amazon links to Amazon Fire TV
then they get ragey for no reason
 
Users can't suspend other users
It needs to be a consensus
 
so you are new to the flag system?
 
Of course not
 
I need some help with a gradient animation script - jsfiddle.net/xKEq7/17 - I start the gradient as stripes and I am animating the stop point % value. I want the stripe to expand until it "touches" same color and than invert and start decreasing. Could anyone give me a hint on how to implement the if check?
 
then stop trying to bend my words, you know what i'm talking about
 
1:58 PM
I know what you said, but your point makes no sense
 
@easwee haha such complex scripts for a tiny animation, I love when CSS does the stuff for me (not this one though)
 
@Mr.Alien I've tried with css but you can't animate gradient
 
yap we had a talk about that
 
y
 
I agree that context is lacking, but removing anonymity from flags won't prevent people from getting suspended, it will only lead to the suspendee fighting back, probably by flagging the flagger.
 

« first day (1279 days earlier)      last day (3669 days later) »