A. Tresso
2007-Feb-12 12:14 UTC
Prototype Lib activeRequestCount : effect of Abort() on an XMLHttpRequest || ActiveX object
Hi, here''s the deal : I have a field on a page, that displays the number of currently active ajax requests. Everything works until I call the abort() method on one of the ajax objects. With Firefox and IE everything''s fine, whereas with Safari or Opera, the abort() method doesn''t seem to decrease the activeRequestCount variable in Prototype. The fact is that Firefox and IE seem to raise a readystatechange event on a call to abort(), and prototype decrease its activeRequestCount on an onComplete state change. The problem is that in Safari and Opera, a call to abort() doesn''t lead to a change of state of the Ajax object. So, how to handle these differences ?? I would like to have a working active requests counter, without the need of guessing which browser is used. Thanks if you ever had some issue to this ! A. T. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---