AJAX Server Down
AJAX Server Down
When my server is down, I make an jquery AJAX call in Firefox 3.6.3. Firebug reports the request has failed, but no function is called as defined in the jquery AJAX options. In IE 8, the timeout is reached, and then the error handler (loadError) is called. I have the following options defined. How can I have jquery call my loadError function in Firefox as it does in IE? Thanks in advance for your help.
- var options = {
success: loadSearch, // post-submit callback
type: "POST",
dataType: "json",
url: "../search.dat",
error: loadError,
- timeout: 5000
};