Moment of glee:
Ahhh. Got it through some reduction of my test case. Answer is pretty
interesting too.

Fact:
On firefox, pressing escape(key code 27) cancels an (all?) ongoing
ajax request.

Test case:
Do a request. Have it take 10 seconds (do a sleep on the server side).
Make it process normally, to be sure it works. Try it again, but press
cancel in the middle of the operation: this time, the request is
cancelled.

Comment:
Tricky stuff...


--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to