I have a website that is not mine. There are lots of JavaScript functions that make ajax calls. I wonder if there is a possibility to modify those functions so after successful ajax request my JavaScript function is called. Maybe there is possibility to inject another handler of ajax queries result codes?
Update
Maybe I should add something more... This ajax calls are realised with use of xajax library. I have found such a piece of code:
<script type="text/javascript" charset="UTF-8">
/* <![CDATA[ */
try { if (undefined == xajax.config) xajax.config = {}; } catch (e) { xajax = {}; xajax.config = {}; };
xajax.config.requestURI = "xajax_loader.php";
xajax.config.statusMessages = false;
xajax.config.waitCursor = true;
xajax.config.version = "xajax 0.5 rc1";
xajax.config.legacy = false;
xajax.config.defaultMode = "asynchronous";
xajax.config.defaultMethod = "POST";
/* ]]> */
</script>
I do not know xajax library, but maybe there is a way to add something to config so requests after success calls JavaScript functions?