How to make sure the dynamic image is loaded?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rizwan6feb
    New Member
    • Jul 2007
    • 108

    #1

    How to make sure the dynamic image is loaded?

    Hi girls and guys! I am dynamically loading an image on the click of a button. There is some code which makes use of that image, how can i make sure the image is loaded. i.e the code is to be executed after the image has been loaded by the browser.
  • hsriat
    Recognized Expert Top Contributor
    • Jan 2008
    • 1653

    #2
    Originally posted by rizwan6feb
    Hi girls and guys! I am dynamically loading an image on the click of a button. There is some code which makes use of that image, how can i make sure the image is loaded. i.e the code is to be executed after the image has been loaded by the browser.
    See if img's onload event makes you happy...

    Comment

    Working...