Saturday, May 11, 2024
 Popular · Latest · Hot · Upcoming
124
rated 0 times [  131] [ 7]  / answers: 1 / hits: 25689  / 14 Years ago, thu, may 20, 2010, 12:00:00

Is there a way to check if there's ajax request in progress?
Something like:



if ( $.ajax.inProgress ){ do this; } else { do that; }

More From » jquery

 Answers
6

You should basically set a variable on top of script set to false and on ajax initiate set it to true and in the success handler set it to false again as described here.


[#96729] Tuesday, May 18, 2010, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
anjelicadixied

Total Points: 742
Total Questions: 94
Total Answers: 97

Location: Iraq
Member since Fri, Jun 5, 2020
4 Years ago
;