Hi - I wonder igf anyone can shed light on the following: I am using prototype to initiate an ajax call from a popup window. If the user closes this window before the ajax has returned, then any attempt to open any other popup windows fail for a period of about 5 minutes. This problem occurs both in IE 6/7 and in Firefox. Is this something to do with the browser not handling the cancelling of event listners properly? Cheers, Ben --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
ah - request.transport.abort() on the unload event seems to have fixed it :-) On Apr 30, 11:32 am, dbrb2 <Benjamin.Bar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi - I wonder igf anyone can shed light on the following: > > I am using prototype to initiate an ajax call from a popup window. If > the user closes this window before the ajax has returned, then any > attempt to open any other popup windows fail for a period of about 5 > minutes. This problem occurs both in IE 6/7 and in Firefox. Is this > something to do with the browser not handling the cancelling of event > listners properly? > > Cheers, > > Ben--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
T.J. Crowder
2008-Apr-30 11:50 UTC
Re: Closing browser before ajax response crashing browser
*Very* useful to know, thanks Ben. Out of curiousity (and I can check this myself, just don''t have time at the moment), is it just if you do the request from a pop-up? I''m just generalizing and wondering if it''s best even in a non-popup situation to hook onunload to be sure any in-progress requests are cancelled. I mean, that seems like the clean thing to do anyway, but... -- T.J. Crowder tj / crowder software / com On Apr 30, 11:57 am, dbrb2 <Benjamin.Bar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> ah - request.transport.abort() on the unload event seems to have fixed > it :-) > > On Apr 30, 11:32 am, dbrb2 <Benjamin.Bar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi - I wonder igf anyone can shed light on the following: > > > I am using prototype to initiate an ajax call from a popup window. If > > the user closes this window before the ajax has returned, then any > > attempt to open any other popup windows fail for a period of about 5 > > minutes. This problem occurs both in IE 6/7 and in Firefox. Is this > > something to do with the browser not handling the cancelling of event > > listners properly? > > > Cheers, > > > Ben--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---