Added: 4 years ago
From: srikantdhondi
Views: 3,494
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (4)

Sign In or Sign Up now to post a comment!
  • THANKS!!! VERY EXCELLENT SOLUTION!

  • 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.

  • What about creating 2 global variables. One for each request(for each button).

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

    What if you have a hundred ?

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