Why In Chrome In Onunload And Onbeforeunload, Is My Xmlhttprequest Being Cancelled?
Chrome Version 30.0.1599.101 m. I see there's another similar post about this but it's not answered. The one 'answer' talks about onbeforeunload working, but it does not. Other si
Solution 1:
You are navigating away. A browser will cancel all requests, because "no one" is interested in the answer of this calls.
The JavaScript context will be destroyed, so no onload handler will be informed about the sever response.
Use the local storage and save your values. Don't try to safe back to the server.
http://www.html5rocks.com/en/features/storage
Post a Comment for "Why In Chrome In Onunload And Onbeforeunload, Is My Xmlhttprequest Being Cancelled?"