Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Javascript
Problem loading an image from client side code
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="VK, post: 4942719"] Of course it does. This is from the "Top 10 of dummy errors in JavaScript" :-) Image loads and calls onload handler. Onload handler instructs to load another image instead of the current one. New image loads and calls onload handler. See the top... and so on... With all <layers>, <iframes> and <img> put in onload loop this way since 1997 one could make a mountain with its paramount in the stratosphere, so don't be ashamed - you are not the first and most definitely not the last. :-) out: in: if (objMapImage.src != objHiddenImage.value) { objMapImage.src != objHiddenImage.value; } P.S. More sophisticated ways with removing event listener on first call are also possible. Whatever you are doing with image load sequence seems very strange - but OK, it is your doing. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Javascript
Problem loading an image from client side code
Top