I have an ajax call in my document ready function. But in about 1 out of 10 times in ie7, the ajax function doesnt get called at all.
Is there a way to check if the ajax call has been made, otherwise run it again until it either runs in to the error or success functions? The problem only occurs when i run the page in ietester -> ie7 mode. Thanks
You could setup a variable as a monitor, and a timer to issue an ajax call every 5 seconds until the ajaxCall is finished.
The monitor is set through
var gotAjax = falseand when the Ajax is succeeded, it is set to truegotAjax = true.Instead of call the $ajax directly, you set a time clock through
setTimeout(ajaxCall, 5000). With in the timer, if theajaxCallis set, you clear the timer throughclearTimeout(ajaxCall)