View Single Post
Old 10-05-2012, 06:24 PM   PM User | #10
erebus
New Coder

 
Join Date: Sep 2012
Location: Houston, TX
Posts: 22
Thanks: 2
Thanked 0 Times in 0 Posts
erebus is an unknown quantity at this point
the add viewers part was already added in the script i attached so its already integrated...

I like the dynamic way of doing the script... if for no other reason then for the fact that i will continue to work even if i want a list that is longer then three... infact there is no reason that it wouldent work for any number of returns from the JSON request...

And yes... i guess i could leave the, to be inserted, portions blank so the only thing to load on the page will be the inserted content... which would alleviate the changing of content and appear to be more of a fraction of a second loading time...

Id like to take a moment to really thank you for your assistance, as im sure you may have guessed i'm very new to javascript. However, despite you providing a peice of code that ill most likely use directly... minus utilizing the API way to pull the info as opposed to the yahoo way... i still managed to learn a considerable amount in our exchange about what i should and shouldn't be looking for when trying to achieve things of this nature. Not to mention ill have to write slightly different versions of the same thing for two other sections of the page that now have a stunning example and reference for...

I dont see a reputation addon for this forum, pls let me know if there is one... either way thank you!

Final question and ill consider the thread solved... does the onload event happens after the HTML and therefore all the ID's are created correct? would that be how you would personally trigger the function?

*edit: Found the reputation button.. + 1 rep!

*edit: nevermind, in asking the question i looked again and realized how he function is already being called... lol

Last edited by erebus; 10-05-2012 at 06:42 PM..
erebus is offline   Reply With Quote