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:
validating.gif?id=1
validating.gif?id=2
validating.gif?id=3
etc.
instead of just:
validating.gif
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?
Code here:
http://forceflow.50webs.com/loading_test/loading_test.htm
Thanks