#284 ✓duplicate

Ajax.Request::onFailure is NOT executed when internet connection is disconnected. (in Firefox

Reported by elbernante | August 16th, 2008 @ 01:59 PM


I loaded a page containing this code:

new Ajax.Request('/some url', {

onSuccess: function(){
onFailure: function(failedResponse){


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 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

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

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.

Shared Ticket Bins

People watching this ticket