[jQuery] Re: Simple Question about ajax request timeout

2007-06-15 Thread Rob Desbois
The code I gave sets the global error handler using $.ajaxSetup() - best is to use that and set the error handler when you set the timeout. If you only wish to set it for a single request though then you need to pass the 'error' parameter to $.ajax() instead. --rob On 6/15/07, joomlafreak <[EMA

[jQuery] Re: Simple Question about ajax request timeout

2007-06-15 Thread joomlafreak
Cool.. This is work, not tried yet but I am hopeful. I have one concern though. I have the above described situations at many places in my application http://feed.joomlaprodigy.com/ and all are prone to the situation I described in my post above. Is there a way I can do it globally. By the abov

[jQuery] Re: Simple Question about ajax request timeout

2007-06-15 Thread Rob Desbois
Does this catch a timeout condition? If so you could do the slideUp() from there. $.ajaxSetup({ error: function() { // ... } }); --rob On 6/15/07, joomlafreak <[EMAIL PROTECTED]> wrote: Many times the ajax request gets timeout and the show/hide or slideup/ down function gets