I have googled for Ajax Request Timeout, but i didn't finde a good working solution.
These both are for most people the best solutions. http://positionabsolute.net/blog/2008/07/prototype-ajax-request-timeout.php http://codejanitor.com/wp/2006/03/23/ajax-timeouts-with-prototype/ But these solutions just work half, it worked under IE8 but not under FF3 I tried to fix it my self, so i fixed the problem that under firefox, always the onSuccess comes, even if the server is down. ---- prototype.js line: 1494 ------------------------------ success: function() { var status = this.getStatus(); return !status || (status >= 200 && status < 300); <---------------- maby the problem }, ---- prototype.js line: 1494 changed ------------------ success: function() { var status = this.getStatus(); return (status >= 200 && status < 300 && status != 0); <-------- works got a onFailure event, if server is down }, ------------------------------------------------------------------------ after this fix i have a correct onFailure event in FF, IE and Opera. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---