Loading images using jquery and Ajax
- by fpz
I have an image tag that fires a jquery function using ajax, when clicked, to download images from another source to the server.
At the same time when the image is clicked it opens up a new tab and tries to load the image that is being downloaded. How can I make the link not open until the image is finished downloading to the server?
This is the html
<a target="_blank" href="link_to_full_image" \> <img src="link_to_thumbnail" border=0/></a>