View Single Post
  #7   Spotlight this post!  
Unread 30-01-2016, 15:03
Mr_Moko's Avatar
Mr_Moko Mr_Moko is offline
[INSERT TITLE HERE]
AKA: Jaye
FRC #2729 (STORM Robotics)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2012
Location: Jersey. You know, the New one
Posts: 29
Mr_Moko has a reputation beyond reputeMr_Moko has a reputation beyond reputeMr_Moko has a reputation beyond reputeMr_Moko has a reputation beyond reputeMr_Moko has a reputation beyond reputeMr_Moko has a reputation beyond reputeMr_Moko has a reputation beyond reputeMr_Moko has a reputation beyond reputeMr_Moko has a reputation beyond reputeMr_Moko has a reputation beyond reputeMr_Moko has a reputation beyond repute
Re: [Help Needed] Javascript Team Finder

Quote:
Originally Posted by Andrew Lobos View Post
I think this JS will output what you expect (or something close): https://gist.github.com/4ndr3w/b924b0762416c0ba6885

In Chrome I get a big comma separated list of teams from 1 to something in the 6000's Note that the output has no guarantee of order since the HTTP requests are returning asynchronously.

hardcopi is right that it's probably better to append to the div. Your implementation will work since you are appending output to a global string and then writing the whole string back out to the div every loop, but it's not as clean
Thank you so much for your fix! If we use your version then I'll make sure to credit you for the fix.
I also agree with hardcopi and I'll possibly see what I can do about doing that, but for now, thanks again for now I believe we'll use your version.
Again, thank you!