You are here: irt.org | About | Feedback | 4884 [ previous next ]
Feedback on:
irt.org FAQ Knowledge Base Q892
Sent by
dg on Saturday August 04, 2007 at 14:51:49
Worth:
Length:
Technical:
Comments:
warning: this will create an infinite loop when the image loads in the browser.
try it, you'll see the browser constantly hitting the server to refresh the image. use mac safari's activity window to watch the list of images accumulate... other browsers will show you the effect in their status bar.
it makes sense since each time the image loads it has to call "onLoad()" again. in the scenario i needed this trick for (refreshing a page that used an iframe to let the user upload a different picture that has the same name) i used this trick in an init() function called from the BODY's onLoad(). that way it only loads the images once.
Other feedback on 'irt.org FAQ Knowledge Base Q892' - show all