javascript: check if image src exists

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #16
    Originally posted by Plater
    Need to assign the handlers prior to setting the SRC.
    Sometimes it would do the SRC so fast (image is cached locally?) that it would complete before assigning event handlers.
    That would probably be the case. To avoid caching, you can add a random parameter or the date/time to get a unique request.

    Comment

    Working...