Solved

IE: Operation Aborted Error

Posted on 2009-04-08
5
330 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
This article will show, step by step, how to integrate R code into a R Sweave document
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…

896 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

14 Experts available now in Live!

Get 1:1 Help Now