IE ‘operation aborted’ error

One of the most underrated practice for a web developer is to constantly check the web page on all the browsers and make sure everything is rendering as you expect it to. It becomes more important for dynamic content pages such as blogs where new scripts, widgets can irk a specific browser. More often it is with IE and the problem is widespread since many web developers prefer Macs (and really very few people have IE on macs), Mozillas and Safaris; often ignoring IE. However, the bottom line is to do frequent browser checks to catch the error before a reader does.

ie-error

One of the common IE bugs that creeps in is the ‘Internet Explorer cannot open the website …..; Operation aborted!’ error. Lately, it had surfaced in my blog because of an embedded CNN video that used javascript inside body tag.

The reason for this error is that javascript interferes with the loading of page by trying to load elements before the page has been fully parsed. The common solutions are to move the script outside the body etc. However, in blogs where the page is dynamically generated and I don’t want to put in too fancy hacks, the easier work around is to do a conditional browser check for IE and load the script only if it is a non-IE browser else display a simple link.

For eg.

<![if !IE]>
<script .. /> /* let the script load if non IE browser */
<![endif]>
<!--[if IE]> /* only IE will parse this and display a normal link */
see this <a href="">link</a>
<![endif]-->

For more information on browser checks, follow this.

This will, of course, work only if you are fine with not embedding the culprit video in IE. I hate having to tweak my pages for IE but then, I hate seeing the pages break too and would rather put in that extra effort for ensuring wider browser compatibility because we are far from witnessing IE getting extinct anytime soon. The javascript issue can be caused by videos, google maps etc. So, keep an eye when you publish a new post with js content enabled.

P.S. – A good tool to check how your design renders on various browsers without having all the browsers installed is Browser-Shots. It has a multitude of browsers to select from and should do a quick job for you.

Share and Enjoy:
  • Digg
  • Facebook
  • Google Bookmarks
  • email
  • Twitter
This entry was posted in web design and tagged , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

4 Comments

  1. KnightRider
    Posted May 27, 2009 at 11:42 pm | Permalink

    Your IE reader.. finally sees the blog.
    Good job, figuring it out :)

  2. moz
    Posted May 28, 2009 at 7:06 pm | Permalink

    oh shush, IE is the best!

  3. Webbster
    Posted July 10, 2009 at 2:39 pm | Permalink

    Found this entry after a google.

    Thanks for posting this, I’ve implemented it on affected sites and used it to hide the javascripts that so offends IE.

    I know it’s not a fix, just a sort of workaround, but until those dumbasses at Micro$oft can fix theip POS browser – or better yet – if everyone switches to Firefox or Chrome then I will not have to waste any more of my afternoons !

  4. Posted July 15, 2009 at 12:56 pm | Permalink

    You’re welcome. The differences between browsers is definitely a pain for the developers, I hope they agree upon some standard way of doing it.

Post a Comment

Your email is never published nor shared.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting