On my website I have mouse over and mouse out events set up on an HTML table. These events trigger ajax requests, and perform certain actions etc. However, i want to be able to not trigger a second request if one is already running. So, is there away to detect these requests, and therefore avoid a second. Incidentally Im using the jQuery $.ajax()
if it helps at all.
Thanks in advance
Chris
I’d try something simple like:
You can use the
success:anderror:settings to change the variable back to false.I have never used the
errorso you may have to include some other things in it, but this is the general idea.