Solved

IE: Operation Aborted Error

Posted on 2009-04-08
5
329 Views
Last Modified: 2013-11-18
Hi Experts,

I am currently experiencing a problem with a website I'm writing. I'm creating the site as a favour (for a friend of my Dad) so I didn't really want to spend a great deal of time on it, so I knocked something up in Dreamweaver and to give it the functionality he requested I used 3 free JavaScript scripts from the net:
One for the drop-down on the vertical menu, one for an image rotation effect and another to provide a lightbox to view images.

I cobbled it all together, and it's working fine in FireFox. so I then switched to IE (7) to see how it works and... *clunk* I'm getting an "Operation Aborted Error" (not every time, but normally the first time I go to the site. After a refresh it works fine)

I hit Google and found plenty of articles on this problem. Microsoft even acknowledge it:
http://support.microsoft.com/kb/927917
(I wasn't too keen on their favoured solution: ask everyone in the world to upgrade to IE8)

I have read lots of articles on the web about how to correct this, but I'm not able to apply these fixes to this site because I'm using somebody else's code + JavaScript is not my strong-point.

From reading-up, I'm guessing the problem is the section of <script>  code within the HTML body that actually creates the image rotation effect. I also suspect the problem is something to do with this script updating the DOM before the page has fully loaded (as well as the script being run from within a <div> that isn't a direct child of the <body>)

I won't embarrass myself by explaining all the straws I've grasped at to correct the problem, but I have pretty-much run out of ideas so thought I'd ask here.

The site is currently here: http://www.stevemid.co.uk/rasteau2009/

Thanks in advance,

Steve
0
Comment
Question by:Steve_Mid
  • 2
  • 2
5 Comments
 
LVL 50

Expert Comment

by:Steve Bink
ID: 24144216
The examples and fixes found at that MSKB link pretty much explain what needs to be done, aside from upgrading to IE8.  Go through your HTML, and make sure you move any javascript code so that it is not triggering the error.  You don't need to modify the javascript...you just need to move it.  The app may benefit from a little reworking, but the problem is created by the placement of the javascript code.
0
 

Author Comment

by:Steve_Mid
ID: 24148814
Thanks for the reply Routinet,

I think the "problem code" is the snippet that creates the image rotation effect. I need the result to be within the <div> it is triggered from so that the gallery appears in the correct place - if I move this JavaScript then the gallery appears somewhere else.

I hope that made sense - as I mentioned, JavaScript is not my strong-point.
0
 
LVL 50

Accepted Solution

by:
Steve Bink earned 500 total points
ID: 24154043
My skills in javascript are not what I would call noteworthy, either.  It looks like you're right, though...the way the script is wired, you need to have the entrance to it where it is.  I tried reproducing the error in IE7, but could not.  Everything looked and worked fine in my tests.

Another possible resolution for you is to use a different slideshow script.  Are you locked into this particular script?  I have one called xfade that is pretty light-weight, but it might need some editing to properly interface with your lightbox links.
0
 

Author Comment

by:Steve_Mid
ID: 24166445
Thanks R!

I had a look at xfade and (after a lot of fiddling about) I managed to get it working.

...then the lightbox failed.

But... I tried a different one and it seems to work! Thanks for the suggestion. This little episode has done nothing for my love of JavaScript (or IE).
:)

Thanks again.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now