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
    Jan 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Dynamic Images and download status

    Im using an <IMG> tag and am modifying the .src propertty to dynamically change the image on screen. I also make use of a timer to help update the <IMG> but at times downloading the image can take longer than the timer. Is there a way to check the load status of an image, that is, if it is currently downloading, completed downloading, or just plain failed?

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,030
    Thanks
    0
    Thanked 247 Times in 244 Posts
    <img src="image.gif" onload="alert('loaded!')" onerror="alert('error!')" />

    http://www.codingforums.com/showthre...816#post266237


  •  

    Posting Permissions

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