Thursday, June 21, 2007

Unknown runtime error

This message is one of the worst error messages that a browser(IE) can give you.

There are a lot of theories to try to understand why this error happens.The truth is not even Microsoft knows why it happens (just look at the error message).

The only thing certain about this error is that it happens when you are manipulating the html of a div with javascript using the innerHTML method.

The workaround for this error is create another div, put the html inside it and append it to the original div.Here is some code:

originalDiv= document.getElementById('myDiv');

var t = document.createElement('div');

t.innerHTML =html;


I think the only message worse than this is "Catastrophic failure".. and you

what's the worst error message that you saw?

Powered by ScribeFire.

1 comment:

All Blog Spots said...

nice blog