Prices = Points
On Oct 22, 2:11 pm, "Mr. White" <[EMAIL PROTECTED]> wrote: > Hi guys, > I'm new on jQuery and I don't know where to go with what I want: > > I have a table with multiple prices. Lets say: > > (Live Points) > User | Points > --------------------------------------------------------------------------- > --- > John | 10 > Carl | 20 > Robert | 30 > Paul | 40 > > and I have a js call at the end of the page sending this users id to > the function in order to update the points (each 5 secounds or so). > > So... I dont want to have 4 (at moment) but in future can be 400 > requests at the same time. > > For that I decided to put all the users id inside an array and send > the array to the server. > ------------------------------------- > $(function() { > $("#user_points").everyTime(5000,function(i) { > $(this).load("/autorefresh/user_points", > { > data:"'.$user_id_array.'" > }, function(){ > document.write(this.value); > $("#user_points").animate({ > backgroundColor: "#DBEBBC" }, 300); > $("#user_points").animate({ > backgroundColor: "white" }, 300); > }); > }); > }); > ------------------------------------ > Now I have all the user points returned to my div #user_points. But I > would like to have the points returned to a js array. How can I do > that? > > Thank you, > > -Raff