[thelist] onload event in IE Win

Christian Heilmann codepo8 at gmail.com
Fri Oct 7 10:31:58 CDT 2005


> Thanks for the prompt reply. The project is a standard HTML web
> gallery that allows the user to display a number of images as
> thumbnails that also click through to their larger counterparts. The
> twist is that each of the pages with the larger image on also
> contains a form that allows viewers to add their comments about the
> image. This data is stored locally in a cookie and can be extracted
> to fire off an e-mail to the originator by using a formatted mailto
> link (document.location = mailto: etc.).
> The idea of the flags on the thumbnail page is to show what images
> already have comments already defined. To do this the JS function
> looks for cookie data for the associated image and returns a boolean
> value to either set the flag or not.
> Everything appears to work perfectly apart from IE on Windows which
> wants to fire each image's onload event multiple times until the
> application simply dies!

What you do is simulate dead-easy server side functionality in a very
complex way on the client side. Just imagining the amount of cookies
going back and forth makes me dizzy. Personally I would never walk
that way. What about users without JavaScript? What about visitors
using a public computer or a colleague's machine? Should they send
mails from the other email client?


More information about the thelist mailing list