By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,466 Members | 1,172 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,466 IT Pros & Developers. It's quick & easy.

How to make sure the dynamic image is loaded?

rizwan6feb
100+
P: 108
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.
May 28 '08 #1
Share this Question
Share on Google+
1 Reply


hsriat
Expert 100+
P: 1,654
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...
May 28 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.