View Full Version : Images download problem

07-09-2006, 04:51 PM
I have a page with many links that call a javascript function to hide/show an image below this link. Tha page has lots of images, so it takes long time to download. The problem is that when the page is requested, the images start downloading, but if the user click on any link, the 'images download' aborts, so when the user click on some link, the image is not shown (as it was not downloaded). The user must right-click and select 'Show Picture'...
Is is a way to avoid the abort of the images download process, even if the user click on any link before all images were downloaded?

Thank in advance;

07-09-2006, 05:23 PM
A couple of thoughts
Are you willing to accept the delay involved in loading the image on demand?

The image will only be displayed if imageobj.complete is true.
This will result in the image not being displayed if !.complete but will display if called when complete.