Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 338
  • Last Modified:

IE: Operation Aborted Error

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
Steve_Mid
Asked:
Steve_Mid
  • 2
  • 2
1 Solution
 
Steve BinkCommented:
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
 
Steve_MidAuthor Commented:
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
 
Steve BinkCommented:
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
 
Steve_MidAuthor Commented:
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 does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now