@Matt Foster: your patch didn't work for me ....??
in ff i didn't get the onTimeout event .... or if you get then it
happend when the server is back online
an the as often as it should happend while the offline time.
i don't know why?
i use an PeriodicalExecuter for my ajax request ...
that's how i do it without timeout:
------my apps
code-------------------------------------------------------
new PeriodicalExecuter(
function (pe) {
var successListener = function(transport, json){
appendPost('posts', transport.responseJSON);
scrollToEnd();
//########FireBUG###################
console.log("Event : ","AJAX : Request successed");
//########FireBUG###################
};
var failureListener = function(transport, json){
show_alert('Fehler beim Aufbau der Verbindung zum Server.');
//########FireBUG###################
console.log("Event : ","AJAX : Request failed");
//########FireBUG###################
};
var exceptionListener = function(transport, json){
show_alert('Es liegt eine unbekannter Fehler vor.');
//########FireBUG###################
console.error("Event : ","AJAX : Request exception happend");
//########FireBUG###################
};
new Ajax.Request('app.php', {
method:'post',
parameters: { controller: 'check' },
onSuccess: successListener,
onException: exceptionListener,
onFailure: failureListener
});
}, 4);
-----------------------------------------------------------
i've used your patch an added an onTimeout event an the other stuff,
but under Firefox this event just happend when the server is back
online
under InternetExplorer it worked fine???!