The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Any HTML / DOM / JavaScript gurus? by FST7772007-07-27 03:56:32
  It'll reconstruct the DOM with the new text. by Arachnid2007-07-27 04:18:24
    OK, that's bad... by FST7772007-07-27 04:19:50
      Fixed it by FST7772007-07-27 04:41:25
        Curious. by Arachnid2007-07-27 05:00:35
          It gets worse by FST777 2007-07-27 06:13:20
If you add elements to the DOM in any other way but document.write (which doesn't work with XHTML) or innerHTML (which is clearly undesirable) you better be d4 sure that the page has finished loading, or IE will give you a royal spanking.

What happens is that with the page visible, Explorer returns an error (that it can't load the page). After clicking OK, the page is transformed into the standard IE-404 page.

It get's even worse. When trying to add the elements with a document.body.onload (which should trigger after the page has finished loading) feature, scripts are ignored again OR that error pops up. The only thing I could think of was using a setTimeout with a reasonable but short timeframe and hoping the page will have finished loading in that time.

I hate IE. From the bottom of my heart, I hate it. The error-message is clearly a bug, and it is know since the 4.0 days. Yet even IE7 will still trigger it.
[ Reply ]

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)