View Single Post
Old 12-15-2012, 04:40 PM   PM User | #17
AndrewGSW
Senior Coder

 
Join Date: Apr 2011
Location: London, England
Posts: 2,120
Thanks: 15
Thanked 354 Times in 353 Posts
AndrewGSW will become famous soon enough
We could even trigger the (set)intervals before all the data has been retrieved:

Code:
complete = (++counter == 5);
..but we would need to ensure data is available (has been returned) before attempting to insert it in the DOM.

However, my code as written will just stop inserting if it runs out of retrieved values.
__________________
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
Validate your HTML and CSS
AndrewGSW is offline   Reply With Quote