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.

jQuery.getJSON("/resources/javascript/gettingstarted.json", function
(data) {}

But I can't figure out how to get the requested URL in the ajax error
function?

Is it possible?

Many thanks!
Paul.

Reply via email to