This problem caused in IE not because of jQuery bug, but because of IE bug.
IE doesn't allow to work with DOM untill it's fully downloaded and be ready.
This is why everything works fine inside $(document).ready()
there is 2 ways to fix it:
1. initialize everything in $(document).ready()
2. paste your script tags in head or directly in body tag. (i mean
there have to be no parent tags)

search for "Operation aborted"
http://channel9.msdn.com/wiki/default.aspx/Channel9.InternetExplorerProgrammingBugs


2007/12/12, Dan M <[EMAIL PROTECTED]>:
>
> Charles,
>
> I have a feeling you need to switch your $(document).ready() function
> to a $(window).load() function. Let me know if that works for you.
>
> Regards,
> Dan
>
> On Dec 8, 5:26 pm, Charles Johnson <[EMAIL PROTECTED]> wrote:
> > I believe this bug was supposed to have been fixed in the move from
> > jQuery Calendar to ui.datepicker, but I'm still seeing sporadic
> > "Operation Aborted" errors in Internet Explorer, both 6 and 7, when
> > the datepicker is initialized. Frustrating problem because it's very
> > intermittent.
> >
> > The code I'm using is pretty simple; in the HTML:
> >
> > &lt;input type="text" size="1" id="calendarDaily" value=""
> > readonly="readonly" /&gt;
> >
> > Then in the $(document).ready function, I instantiate the datepicker
> > with this:
> >
> > $('#calendarDaily').datepicker({
> >         showOn: 'button',
> >         speed: 'fast',
> >         buttonImageOnly: true,
> >         buttonImage: '/dailyarchives.jpg',
> >         buttonText: 'Calendar',
> >         minDate: new Date(2001, 2 - 1, 7),
> >         dateFormat: 'YMD-',
> >         onSelect: function(thedate) {
> >                 eval("parent.location='/index.php?date=" + thedate + "'");
> >         }
> >
> > });
> >
> > Works fine in all flavors of Mozilla/Firefox, and in Safari -- IE is
> > the only problem.
>


-- 
Максим Игоревич Гришаев,
AstroStar.ru

Reply via email to