Ajax.Request::onFailure is NOT executed when internet connection is disconnected. (in Firefox 2.0.0.16)
Reported by elbernante | August 16th, 2008 @ 01:59 PM
Hi!
I loaded a page containing this code:
new Ajax.Request('/some url', {
method:'post',
onSuccess: function(){
alert('Success!');
},
onFailure: function(failedResponse){
alert('Failed!');
}
});
When i loaded the page, my internet connection was up.
Then i intentionally unpluged my network connection to disconnect me from the net.
Then i clicked a button to trigger the ajax request shown above.
BUG: when the ajax responded, the onSuccess was exectuted instead of the onFailure. (The bug occurs in Firefox 2.0.0.16 only. In IE7, it works fine, onFailure was executed)
EXPECTED RESULT: onFailure should be excuted since the returned request is not what is expected.
Comments and changes to this ticket
-
Tobie Langel August 27th, 2008 @ 11:44 AM
- → State changed from new to duplicate
This is being discussed for 1.6.1 with the adjunction of an Ajax.Request#abort method and onTimeout callback.
Closing as duplicate of http://prototype.lighthouseapp.c...
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
The Prototype JavaScript library.
