Hi people,
What i would like to do is send the return data from any ajax call and also have it avaiable in the ajaxComplete function.
So when i have a $.post
or $.get
or $.getJSON
and so on request like this:
$.post(url, options, function(DATA)
{
$('output').html(DATA);
});
i also want to get the same data into
$.ajaxComplete(function(event, XMLHttpRequest, ajaxOptions)
{
// do something with DATA that is returned by the ajax request
alert(DATA);
});
It means i want in the global ajaxComplete function also the same data which i get when i call one of the ajax functions.
Thanks for the replys.