Categories
Web Development

Internet Explorer – Operation Aborted

Performing some elaborate JavaScript operations can cause IE to conk and display a message saying it cannot display the page – Operation Aborted.

Share

In one of my current assignments, I am working on creating a visual element in JavaScript. This involves dynamic generation of page elements through the page DOM. I attempted to attach the dynamically generated element to the body element, and then re-positioned it somewhere on the page.
This worked fine in Firefox (common theme, it also follows the DOM event model – while Internet Explorer does not). It did not work fine in Internet Explorer displaying the message:

Internet Explorer cannot open the Internet site http://example.com.
Operation aborted.

Microsoft knows about this and other issues but so far did nothing to correct it.

The solution – based on one mentioned on the afore-linked page – is to not call the DOM method appendChild() on the body element. Place an empty div and append the child elements to it instead.

Yaay hacky!

Share
Share