On 8 Dez., 23:26, 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: > > <input type="text" size="1" id="calendarDaily" value="" > readonly="readonly" /> > > 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.
I had a similiar problem when using the ready event with scripts at the bottom of the page - in that case the ready event isn't necessary and I just forgot to remove it. After removal the error in IE was gone. By the way, you don't really need to use eval there: parent.location = '/index.php?date=' + thedate; --Klaus