By its very nature, it seems the development of Internet Explorer would be aptly named: Operation Aborted. However, of what I speak is the message, Internet Explorer cannot open the Internet site. Operation Aborted. There are a variety of circumstances that are believed to be the cause, but in the instance of using mootool’s tips class, the issue is one of the DOM not necessarily being ready.
To solve the issue, I downloaded a copy of mootools and included the Window class, which has a method called onDomReady. With such a method on hand, the solution is simply,
Window.onDomReady(function() {
var myTips = new Tips($$('.tips'), {
maxOpacity: 1,
className: 'tooltip'
});
});
More recent trunk versions of mootools include a more sophisticated implemention, but the above resolved my issue with Internet Explorer 6 on Windows 2000 SP4.
As a bonus, onDomReady allows you to place all manner of JavaScript in a separate library instead of inline with your JavaScript. Separating behavior is your friend.
anonymous said,
February 19, 2008 at 6:35 pm
I had the same issue, fixed it by moving it to the onload event. now I have most stuff in the domready event but it didn’t stop happening for me till I moved the automagic tool tips to onload
window.addEvent(’load’, function() {
//moving tips to onload to avoid “Internet Explorer cannot open the Internet site. Operation Aborted.”
SiteTips = new Tips($$(’.tip’), {
className: ’site’
});
});
Michael said,
April 4, 2008 at 9:56 am
Thanks! This solved the issue of “operation aborted” in IE. Worked fine in FF. I just had to move the Tips() function into window.addEvent(’domready’,function() { …Tips()… });