Handling Multiple XMLHttpRequest Requests - Ajax Power - 32
Loading...
3,462
Loading...
Top Comments
see all
All Comments (4)
-
it is not good solution because it share response function, and every variable which is not inicialised with "var" is shared. Try:
temp=1;
alert(temp);
temp++;
alert(temp);
It should be alerted at most 2, but it is 3 if there is two simultaneous requests.
-
THANKS!!! VERY EXCELLENT SOLUTION!
-
What about creating 2 global variables. One for each request(for each button).
Loading...
That's great if you only have two buttons.
What if you have a hundred ?
archedmandible 3 years ago 3