[jQuery] Re: IE6 - "Operation Aborted" - Any Ideas?

2007-10-07 Thread G[N]Urpreet Singh
Guys,
What I figured was that my jq code was trying to play with the parts of the
DOM which were not yet loaded (the accordion at the right bottom).

To fix it, I moved that bit of code further down in my document ready
function and havent the error ever again.

I guess you guys are correct, the document ready function does not work too
smoothly with IE.

g

On 10/4/07, wick <[EMAIL PROTECTED]> wrote:
>
>
>
> I've run into this a lot in the past, in IE6, & to a lesser extent
> IE7, using jQuery's document.ready function. It wasn't happening
> consistently & I never put in the time to make a test page. I was
> adding a lot of functions for DOM-modification plugins (rounded
> corners plugin, jtip, jcarousel, etc) & the Operation Aborted error
> seemed to be caused by all the DOM modification going on.
>
> I think this is the root cause:
> http://support.microsoft.com/default.aspx/kb/927917
>
> In the end I hacked a lame fix together by changing jQuery's
> document.ready behavior - It seemed from my testing that in the
> situation where IE was displaying a cached page, the "script defer"
> trick that jQuery uses for the IE document.ready handling fired too
> early, before the DOM was really ready, although it wasn't consistent.
> Commenting out the line for the script defer IE handling did the trick
> - the way jQuery is written (or was in 1.1.2, haven't checked newer
> versions), document.ready defaults to the window.onload event if no
> other event triggers it sooner.
>
> I haven't worked on any projects where this would have been an issue
> lately. My solution a bad fix that I don't recommend, but I couldn't
> find anything else. Anyone else have ideas/comments/solutions?
>
>
> On Oct 3, 6:49 pm, Guy Fraser <[EMAIL PROTECTED]> wrote:
> > G[N]Urpreet Singh wrote:
> > > Once every few times the page is loaded in IE6, it just fails. It says
> > > "Operation Aborted" and fails. Could anyone point me to why this is
> > > happening. And this did not happen at all while the site was on my
> > > local machine, it started when I put it up on a test server for client
> > > review.
> >
> > I've had that sometimes when I incorrectly tried modifying the DOM
> > before it was ready...
>
>


-- 
Gurpreet Singh


[jQuery] Re: IE6 - "Operation Aborted" - Any Ideas?

2007-10-04 Thread wick


I've run into this a lot in the past, in IE6, & to a lesser extent
IE7, using jQuery's document.ready function. It wasn't happening
consistently & I never put in the time to make a test page. I was
adding a lot of functions for DOM-modification plugins (rounded
corners plugin, jtip, jcarousel, etc) & the Operation Aborted error
seemed to be caused by all the DOM modification going on.

I think this is the root cause:
http://support.microsoft.com/default.aspx/kb/927917

In the end I hacked a lame fix together by changing jQuery's
document.ready behavior - It seemed from my testing that in the
situation where IE was displaying a cached page, the "script defer"
trick that jQuery uses for the IE document.ready handling fired too
early, before the DOM was really ready, although it wasn't consistent.
Commenting out the line for the script defer IE handling did the trick
- the way jQuery is written (or was in 1.1.2, haven't checked newer
versions), document.ready defaults to the window.onload event if no
other event triggers it sooner.

I haven't worked on any projects where this would have been an issue
lately. My solution a bad fix that I don't recommend, but I couldn't
find anything else. Anyone else have ideas/comments/solutions?


On Oct 3, 6:49 pm, Guy Fraser <[EMAIL PROTECTED]> wrote:
> G[N]Urpreet Singh wrote:
> > Once every few times the page is loaded in IE6, it just fails. It says
> > "Operation Aborted" and fails. Could anyone point me to why this is
> > happening. And this did not happen at all while the site was on my
> > local machine, it started when I put it up on a test server for client
> > review.
>
> I've had that sometimes when I incorrectly tried modifying the DOM
> before it was ready...



[jQuery] Re: IE6 - "Operation Aborted" - Any Ideas?

2007-10-04 Thread Wizzud


On a quick visual inspection, on suggestion is to make sure nothing
(jQuery-wise) is being called before the document is ready. You have the
following inline script...


$('#date-pick').calendar();


...and should probably wrap it in the ready function...


$(document).ready(function(){
$('#date-pick').calendar();
});


This *may* solve your problem.


G[N]Urpreet Singh wrote:
> 
> Hi,
> A strange thing is happening on a project that I am working on. The page
> has
> some JQuery code like a slide down form, an accordion (which I have coded
> by
> hand) and some other stuff.
> 
> Once every few times the page is loaded in IE6, it just fails. It says
> "Operation Aborted" and fails. Could anyone point me to why this is
> happening. And this did not happen at all while the site was on my local
> machine, it started when I put it up on a test server for client review.
> 
> Here is a link : http://www.codesutra.net/visionasia/
> 
> Will really appreciate some help.
> 
> Thanks,
> Gurpreet
> 
> 
> -- 
> Gurpreet Singh
> 
> 

-- 
View this message in context: 
http://www.nabble.com/IE6---%22Operation-Aborted%22---Any-Ideas--tf4561014s27240.html#a13034710
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: IE6 - "Operation Aborted" - Any Ideas?

2007-10-03 Thread kennydee

Big problems because at some times, this is js code we don't own that
triggers this error (Ad server etc ...) and jquery seems to be the
trigerrer of that !
Don't know how to bypass that.


When our code is guilty, add a $(document).ready over make it works,
but when this is not our code ... ?



[jQuery] Re: IE6 - "Operation Aborted" - Any Ideas?

2007-10-03 Thread Guy Fraser

G[N]Urpreet Singh wrote:
> Once every few times the page is loaded in IE6, it just fails. It says 
> "Operation Aborted" and fails. Could anyone point me to why this is 
> happening. And this did not happen at all while the site was on my 
> local machine, it started when I put it up on a test server for client 
> review.

I've had that sometimes when I incorrectly tried modifying the DOM 
before it was ready...