Solved

IE: Operation Aborted Error

Posted on 2009-04-08
5
336 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 51

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 51

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

630 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