Just got hit with this error:
And regrettably I spent a lot of time searching through Javascript in mootools javascript, and the small 2 lines of javascript Wicket adds to the page. Finally, I decided to actually google the error (which I should have done immediately).
Low and behold, because I was inlining some Javascript for the mootools Tip plugin, Internet Explorer 6 and 7 were upset because I hadn’t given them the chance to render the entire HTML yet. Easy enough to fix, and actually cleans up the code real nice, was to either add it to the body onload, or use javascript. In my case I used mootools goodness:
window.addEvent(‘domready’, Site.start);
Gotta love Google. You can also check this site for some tips on avoiding the problem in the future (especially with GMaps).
UPDATE The site above seems to no longer be around, such is life. I’ve posted a quick update for several javascript libraries on how to ensure you are executing javascript when the DOM is finished loading.
Read more