Trying to call a funtion when ANY ajax response ends.
I'm trying to use jQuery to called a Function when ANY ajax call ends, is this possible?
The original ajax call may not have been created using jQuery.
Heres the story,
At my company we have a web package which displays a preview image of a document, and when you update the form, it automatically updates the preview.
I've managed to create some javascript which loads on the page, and hides the original preview, allowing me to display a NEW preview which i have more control over, eg, made into a background image so it can be cropped etc.
when the form updates the original image, it automatically updates the original image using an ajax call. its this ajax call that i need to, in a way, not intercept, but alert my script when it is complete, so that i can reload my image with the updates.
I hope i've explained that clearly.
if anyone can help, i'd appreciate it.
Thanks