I'm wondering if there is a good way to resend an ajax request if it has produced an error. The example below isn't something I would be doing obviously but should be enough to convey what I'm talking about.
$().ajaxError(function(event, request, settings, error) { request.resend(); }); The 'request' parameter above is an XMLHttpRequest object so this isn't really jQuery related unless there is a jQuery hook of which I'm not aware. If I try calling send() on the request nothing happens as I think the object needs to be re-opened... Google is not responding kindly to 'resend ajax request' or 'resend xmlhttprequest' so this may not even be possible.