Re: [jQuery] Retrieving the URL used in a getJSON call in an error function?

2009-11-10 Thread Michel Belleville
I didn't have to do that for now, but if I had to I'd use Firebug to inspect XMLHttpRequest in the dom view and see if there's an url, target, or location property or method that returns something looking like said url. Once you've installed Firebug (which is a great tool to debug JavaScript (espec

[jQuery] Retrieving the URL used in a getJSON call in an error function?

2009-11-10 Thread paul s
Hi folks, Is it possible to retrieve the URL used in a getJSON call in a generic ajax error handler? I do the following: jQuery.ajaxSetup({ error: showAjaxError }); with the function being: function showAjaxError(XMLHttpRequest, textStatus, errorThrown) {} ...and all our calls use getJSON i.e