I was trying to create an enable/disable button that works with AJAX.
So, when a user clicks the image link, it is automatically replaced with a validating.gif image. That image is shown until the $.post() request is completed.
But...the image isn't cached...it's re-downloaded every time for each link.
The image src is loaded as:
instead of just:
I did this is because whenever a new img src was changed to "validating.gif", any existing img src's that were set to "validating.gif" would reload/restart the animation when the change occurred.
Is there a way to fix this so that the animation remains uninterrupted and that the validating.gif image isn't re-downloaded for each link?