« first day (1432 days earlier)      last day (3517 days later) » 

3:00 PM
@YourAdrenalineFix anonymous function, never heard of it before ?
 
user1994804
No
 
it seems to work.. the html is: <div id="dailyStart" style="display: block; padding: 3px;">
<div class="timerow" style="width: 144px;">
 
user1994804
Working on it @rlemon...
 
@JoJo $('#potato, .potato') will select the div that has id potato and the div that has a class potato, if you want the child of #potato that has class .potato $('#potato .potato') or $('#potato').find('.potato') or $('#potato').children('.potato');
@JoJo setup a fiddle
 
@patsy ok thanks
 
3:01 PM
Holy Edits Batman!
 
@YourAdrenalineFix ok, eat some lemons then..
 
@AaronSiciliano check the console, you don't have an image name there
 
haha
 
user1994804
HOLY SMOKES!!
 
user1994804
@rlemon you've helped me in the past and you did it again!!
 
user1994804
3:02 PM
You Rule!!
 
I try.
 
user1994804
U do very well
 
user2620028
@PatsyIssa Yeah thats what i am looking at.... But the network i am on blocks the domain those images are coming from anyways... so i was curious if it was my network or code
 
@Cerbrus ok
 
user1994804
Where u at Geographicaly?
 
3:03 PM
@AaronSiciliano it's your code here jsfiddle.net/zxwpqscp/7
 
rlemon, Ontario, Canada.
10k 4 36 77
^
 
user1994804
Florida USA
 
user1994804
Ahh
 
user2620028
@YourAdrenalineFix Hint for lemons location, Polar Bear, Igloo, Hockey, Looney
 
we have toonies now as well
 
user1994804
3:03 PM
Nice
 
@AaronSiciliano arrayOfSrcs[currentIndexOfArray].src instead of referencing the entire image, your array has imgs in it not just the srcs
 
user1994804
Lemon, Care to elaborate on why creating a instance of a variable inside the function corrected the issue?
 
user2620028
@PatsyIssa haha thank you... i would have overlooked that for quite some time
 
user1994804
for grins...
 
@AaronSiciliano no worries
 
user1994804
3:05 PM
I know that made the var local
 
user1994804
but why did it matter all inside a function?
 
user1994804
Thanks @PatsyIssa I'll be thoroughly reading that
 
user2620028
@rlemon what does a toonie represent?
 
user1994804
Thanks Everyone!!
 
3:07 PM
When in doubt refer to MDN
 
user2620028
2 dollar coin.... jesus let me just go hang myself....
 
@AaronSiciliano ahahahahahahaha
querySelector isn't a live nodelist
just a note
when I said no specificity what did you think the css rule was going to do?
it rules over the hidden property
 
@rlemon then how do I set custom css display?
 
and if you wanted to do hit with the style see /2
 
3:10 PM
@AaronSiciliano We also have a million dollar coin
 
and soon(relative) we will have no physical money
canada is going pure digital currency
 
whut the durrr
just click it
 
I even rehosted you sonofabitch
 
@rlemon thanks that works :)
 
@AwalGarg the main change was I am checking the opposite condition from the starting one
 
3:12 PM
Hello alltogether. I need help with a query. I have two arrays. One with all available persons and one with the selected persons. Now I need to check for each entry in the availablePersons array if the same key exists in the other array of the selected persons.
 
@ismaelw 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.
 
My code looks like this now:
for (var i=0; i<availablePersons.length; i++){
                    for (var j=0; j<summary.length; j++){
                        if(summary[j] != availablePersons[i]) {
                            $('#person-'+i+' .person-sum').text('0');
                            $('#person-'+i).fadeIn();
                            $('#person-'+i).css('background-color', '#FF0000');
                        }
                    }
                }
 
please format it
ctrl + K or hit the fixed font button
 
@rlemon I saw that, nice. I would note that for future.
 
@rlemon o/
hi
 
3:13 PM
yo
 
working
thinking about lunch soon
 
aahpics ? [you still workin on that ?]
 
Mornin
 
ps would you like to be the first person the planet to take snapick for a test drive
 
3:14 PM
oh I need to add.. I only need to do something if the key doesn't exists in the other array
 
!!nudge 50
 
@towc Nudge #4 registered.
 
pps we got tshirts printed so will be shippin dem tshirts soon.. and guess what
our deal was cheap so you can upgrade to hoodie if you want :P
 
I keep running into this crapola.. why is the js function not triggering? jsfiddle.net/ap2bmrvg
 
DON'T USE INLINE EVENT HANDLING
and learn how to setup a jsfiddle
 
3:16 PM
ugh.. never learned the alternative
 
learn it :)
you are scope blocking yourself right now
 
kk
 
you wrap everything up in an onload, so the function isn't exposed and you can't see it when you want to
one of the common pitfalls when using inline crap
 
kk I will do it now
document.getElementById("myBtn").addEventListener("click", displayDate);
simple enuff..
works now jsfiddle.net/ap2bmrvg/1 how do I set up a proper fiddle?
 
posted on September 17, 2014

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-3727700-1"); pageTracker._trackPageview(); } catch(err) {} New exclusive comic at The Nib!

 
3:20 PM
@rlemon thinking more about it, I think the order of the check to achieve expected result depends on the css rule set for the element. Isn't there some universal kinda thing for this purpose?
 
I think I will enjoy event listeners
ty for the extra nudge lemon :)
 
@JoJo look at the sidebar options, and read the docs on what they mean
onload and ondomready wrap it up in a function.
 
@rlemon have you checked my issue? Do you know a solution?
 
@ismaelw no I was waiting for you to format your code
 
Didn't i format it already?
 
3:21 PM
my bad, went off screen
 
no problem
 
so what isn't working
code (at a glance) seems okay
 
it doesn't do anything.. And I am very sure, that there is at least one key in the availablePersons array which doesn't exists in the selectedpersons array
 
!= should probably be !==, though that may not be your issue
 
do you use inline events ever anymore then? kinda cool..
 
3:23 PM
@JoJo no
they are bad practice
 
nice
 
they are harder to maintain, not as readable, and have a number of caveats
 
it doesn't do the ".text('0')" thing and the background-color thing
 
remove
$('#person-'+i+' .person-sum').text('0');
$('#person-'+i).fadeIn();
$('#person-'+i).css('background-color', '#FF0000');
 
I will need to create a commented listeners section then.. just for listenters
 
3:25 PM
and put in
console.log( $('#person-'+i) );
and tell me what it says
and hurry i'm going for lunch in a minute ;)
 
Go get some poutine
 
ugh... listeners cannot come before the DOM loads
grr
 
@rlemon oh now I can see an issue with that.. it says selector: "#person-2"
but in my available persons I really have three persons with id 6,7 and 8
maybe I should checking the value and not the key of my availablepersons array
how can I do this?
 
497 questions, 15 answers lol
total rep 6k
 
3:31 PM
Oh god the answers D:
-1
A: Css Issue Targetting a Form input

gbviscontiTry this $("#name").attr("class","someclass");

 
lololol
 
addEventListener works in jsFiddle but not in my code.. what gives?
 
Console error?
 
@JoJo you are including your js in the head
 
yes
 
3:33 PM
move it to after the body contents just before the </body> tag
 
k, ty
 
@rlemon I see that my function checks the key of my availablePersons array and not the value. What should I do?
 
@ismaelw no clue, but adding console.logs everywhere helps a lot
 
I realized people on SO with +50K reputation are too cocky except ones in this room, namely dystroy, etc etc
 
copy?
!!stat copy
 
3:35 PM
@AwalGarg copy (http://stackoverflow.com/users/1078067/copy) has 2040 reputation, earned 0 rep today, asked 3 questions, gave 48 answers, for a q:a ratio of 1:16.
avg. rep/post: 40. Badges: 1g 10s 19b
 
ahh
 
!!stat dystroy
 
@CustomizedName dystroy (http://stackoverflow.com/users/263525/dystroy) has 144543 reputation, earned 74 rep today, asked 56 questions, gave 4631 answers, for a q:a ratio of 56:4631.
avg. rep/post: 30.83. Badges: 16g 213s 275b
 
!!stat tresko
 
@CustomizedName User Elusio proved elusive.
 
3:38 PM
high rep users are not often cocky, they are just out of patience. answer 1000+ questions and you'll have no time to waste fucking around holding peoples hands through the problem.
very seldom do I see high rep users being cocky. more often I see low rep users with a sense of over entitlement
 
^
 
example
 
> Hey I just entered this chat, please stop talking about whatever it is and help me now
> Isn't this a js chat why aren't you dropping everything?
 
> If you don't answer you are not smart enough
 
hahahaha
 
3:40 PM
> please do not negative point my question
Negative point all the things!
 
> I still have 10 rep - 12:01pm
> I still have 1 rep - 12:02pm
 
Negative nancy :(
 
I want to go to work, but I don't want the commute. [tag:Alameda - problems]
Mooooooobileeeee!
 
@SomeKittensUx2666 you can work from home right?
 
@Loktar I wasn't talking about JS chat room
My comments were in context to meta
 
3:44 PM
@CustomizedName lol I wasn't even talking about you or know what you said
its just very common for low rep users to come in here and say things like that
 
10 mins ago, by Customized Name
I realized people on SO with +50K reputation are too cocky except ones in this room, namely dystroy, etc etc
 
haha I know, I criticize them myself xD
 
@loktar yes, but I like actually being at work
 
Guess it makes sense why he thought you knew what he said
 
@SomeKittensUx2666 yeah same here for most days, although Fridays are nice to work from home
going to do that this week I think
 
3:46 PM
I wish I lived closer to work
 
Work is where the 27" monitors and free lunches are
 
haha my home setup is better than work
 
!!stat ircmaxell
 
my comfy dxracer and big ass monitors
 
@ircmaxell You (http://stackoverflow.com/users/338665/ircmaxell) have 76963 reputation, earned 30 rep today, asked 13 questions, gave 1021 answers, for a q:a ratio of 13:1021.
avg. rep/post: 74.43. Badges: 16g 144s 214b
 
3:48 PM
I only have 21 and 19
 
I've got 2 23"s and a 50"
 
you've seen my setup right
I friggin love it so I've showed it a few times lol
 
thanks @rlemon I got it figured out. I was passing 1 object instead of an array of objects. now it works well
 
thats w/o my dx racer
 
user2620028
3:51 PM
lots of fun toys there to the left o.O
 
Yeah, it's pretty sweet
 
@FunBeans the breakpoint thing of your debugger might come in handy next time :)
 
user2620028
Can anyone give me advice on how to handle a collection addeventlistener question? Any takers?
 
Just wait until I Oculize
 
3:52 PM
@SomeKittensUx2666 that's what she said
 
that chair is old though now
I got a new sweet one
 
Who got the most ram in this room ?
 
Ok, whoever did this is awesome
in Sandbox, 31 secs ago, by Caprica Six
@derp Caprica Six (http://stackoverflow.com/users/1839506/caprica-six) has 1116 reputation, earned 0 rep today, asked 0 questions, gave 4 answers, for a q:a ratio of H̸̡̪̯ͨ͊̽̅̾̎Ȩ̬̩̾͛ͪ̈́̀́͘ ̶̧̨̱̹̭̯ͧ̾ͬC̷̙̲̝͖ͭ̏ͥͮ͟Oͮ͏̮̪̝͍M̲̖͊̒ͪͩͬ̚̚͜Ȇ̴̟̟͙̞ͩ͌͝S̨̥̫͎̭ͯ̿̔̀ͅ.
avg. rep/post: 279. Badges: 0g 5s 9b
 
lol
 
@ircmaxell never seen you in this room before, unless you changed your pp and name recently xD
 
3:56 PM
He comes and goes. He's kind of a brilliant man.
Kind of.
 
user2620028
If i want to add an event listener to a collection i have to iterate through the collection, which is fine. But if i want to add a unique function to each collection item then it tends to get to be cumbersome code. Is there a better way to do it with function calls and arguments?
 
@CustomizedName I used to be very active in here. But tailed out for a while, but been idling in here lately
 
idling is another form of trolling :P lol
 
@ircmaxell you were pretty active when the room was created right? When I joined I think is when you started trailing off
 
I sometimes do troll, but not too often
@Loktar yeah, that sounds about right
 
3:58 PM
@SecondRikudo I am going to get that cert
I swear to god.
then when I answer jQuery questions I can say the answer is certified.
 

« first day (1432 days earlier)      last day (3517 days later) »