View Full Version : IE Mootools domready problem

06-18-2008, 12:18 PM
I'm having a problem with IE and a Mootools Calendar i'm implementing. Whenever I load the page in IE, i occasionally get the error "Internet Explorer cannot open the internet site http:....... Operation aborted". I've read a few posts and articles about this problem and it seems that issue can occur when trying to load events before the dom is ready. However, I'm using the mootools window Event 'domready' and i'm still getting the error message!

The page is at http://www.maguiresonline.co.uk/development/Touch%20of%20Class/

I'm adding events in two places, in contact.js as follows. This code is not causing the problem:

window.addEvent('domready', addOnClick);
window.addEvent('domready', ajaxContact);

The code which is causing the problem is when i instantiate my calendar, using the following in my index.php homepage:

<script type = "text/javascript">
window.addEvent('domready', function() { myCal = new Calendar({ departure_date: 'd/m/Y' }); });
window.addEvent('domready', function() { myCal = new Calendar({ return_date: 'd/m/Y' }); });

Thanks in advance for any help with this one!