|
|
Back to UserFriendly Strip Comments Index
|
Any HTML / DOM / JavaScript gurus? | by FST777 | 2007-07-27 03:56:32 |
|
It'll reconstruct the DOM with the new text. | by Arachnid | 2007-07-27 04:18:24 |
|
OK, that's bad... | by FST777 | 2007-07-27 04:19:50 |
|
Fixed it | by FST777 | 2007-07-27 04:41:25 |
|
Curious. | by Arachnid | 2007-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]
|
|