Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Handling Multiple XMLHttpRequest Requests - Ajax Power - 32

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
3,462
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Mar 10, 2008

http://www.ajaxtraining.blogspot.com - Handling Multiple XMLHttpRequest Requests - Ajax Power

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Top Comments

  • That's great if you only have two buttons.

    What if you have a hundred ?

see all

All Comments (4)

Sign In or Sign Up now to post a comment!
  • 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...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more