Ah, I had a look at the source code, maybe there is something bad. You
are using setTimeout to reinvoke the method after 250 msec, but you
are not sure if the method before is done in 250 msec. I would change
the code like this:
function progressUpdate() {
updateCounter++;
ValenceWap.ajax.main.getResponse(updateCounter, progressUpdate_Callback);
loopCount.innerHTML = updateCounter;
}
function progressUpdate_Callback(ret) {
if(ret.error == null && ret.value != null) {
var progress = ret.value;
callback.innerHTML = progress;
}
setTimeout(progressUpdate, 250);
}
The problem in your code is that the waitingCallback variable is not
threadsafe because of the two concurrent xmlhttp requests. It can
happen that there are two concurrent requests running and the variable
will be false, then the next request will be queued, no real problem,
but it will maybe queue more and more, and you have more requests than
you want to have. If the queue will be very large, the two concurrent
connections will be used to do the requests and other requests or
pressing F5 will get in problem.
My script will call the method every 250 msec after the request is done.
I hope this will help you?!
Regards,
Michael
On 5/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Here is a test page on my site:
> http://www.spikedhumor.com/ajax/main.aspx
>
> If you run this in Firefox, the Ajax calls will fail randomly. Just
> wait 20 seconds to a few minutes. I'll check it out in Fiddler
> tomorrow. IE also experience similar problems but not as frequently.
>
>
> >
>
--
Best regards | Schöne Grüße
Michael
Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer
http://weblogs.asp.net/mschwarz/
http://www.schwarz-interactive.de/
mailto:[EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ajax.NET Professional" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/ajaxpro
The latest downloads of Ajax.NET Professional can be found at
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---