jquery-dotimeout icon indicating copy to clipboard operation
jquery-dotimeout copied to clipboard

New feature to force_mode call

Open writeson opened this issue 14 years ago • 1 comments

I'd like to propose a new feature for doTimeout to get around a problem that I've found on IE (8) and Chrome. Here is an example of the code with a comment about the problem :

http://jsfiddle.net/d2HLc/6/

Essentially the problem is I need to call $.doTimeout("id_of_function", true); with a delay so the first call (in my case a call to an Ajax function) succeeds. Without the delay I always get the error callback from the Ajax function. What I'm doing to get resolve this now is this:

setTimeout('$.doTimeout("id_of_function", true);', 500);

Thanks for your help! Doug

writeson avatar May 28 '10 13:05 writeson

Can you add comments inline, in your JavaScript to help clarify things? I'm having a little difficulty understanding exactly what the problem is.

cowboy avatar Oct 18 '10 17:10 cowboy