Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Images download problem

    Hi:
    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;
    Gus

  • #2
    Senior Coder
    Join Date
    Mar 2005
    Location
    Portsmouth UK
    Posts
    4,529
    Thanks
    3
    Thanked 511 Times in 498 Posts
    A couple of thoughts
    1)
    Are you willing to accept the delay involved in loading the image on demand?

    2)
    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.
    Vic

    God Loves You and will never love you less.

    http://www.vicsjavascripts.org/Home.htm

    If my post has been useful please donate to http://www.operationsmile.org.uk/


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •