« Return to Thread: IE6 ASP.NET error from document.onload: 'this.events' is null

Re: IE6 ASP.NET error from document.onload: 'this.events' is null

by Jörn Zaefferer :: Rate this Message:

Reply to Author | View in Thread

Nicko Cadell schrieb:

> In IE 6 I am getting the following error when the page loads.
>
> ---------------------------
> Error
> ---------------------------
> A Runtime Error has occurred.
> Do you wish to Debug?
>
> Line: 913
> Error: 'this.events' is null or not an object
> ---------------------------
> Yes   No  
> ---------------------------
>
> This does not occur in FireFox, only in IE (6).
> I am using ASP.NET and I believe that this is caused by an interaction
> between jQuery and the way ASP.NET hooks the document onload event.
>
> To fix this issue I have added a test for this.events in the jQuery
> event handle function. This appears to resolve the problem and the
> jQuery ready event handlers are still run correctly.
>  
That seems to be more of a workaround then a solution. Could you provide
a testpage where the problem occurs (without your fix applied)?

-- Jörn

_______________________________________________
jQuery mailing list
discuss@...
http://jquery.com/discuss/

 « Return to Thread: IE6 ASP.NET error from document.onload: 'this.events' is null