I have an ajax event that needs to fire once a image is completely loaded.
The image is a php file that sets a session variable and renders the image.
I need to wait until the session variable is set before firing the ajax event.
Is there a way to test that an image has completely loaded?