Turns out that xmlhttp.onreadystatechange is *write-only* in IE6, so
attempting to read it was causing the code to barf. (Probably ok in other
browsers but this particular work is in an IE6-only intranet)

Is there any other way to set up a custom handler for the onreadystatechange
event?
Would there be any harm in overwriting JQuery's onreadystatechange handler
with my own and going from there?

Cheers,

George


Klaus Hartl wrote:
> 
> George Adamson schrieb:
>> Thanks for the code Klaus. Nice idea...
>> 
>> When I tried this, the ajax call worked but the xhr.onreadystatechange is
>> 'undefined' so I cannot do anything with it. (I got the samer error when
>> trying to use a function in the 'beforeSend' ajax argument.)
>> 
>> Does Jquery definitely return the XMLHTTP object? Or something else?
>> 
>> Cheers,
>> 
>> George
> 
> It should be the XmlHttpRequest object. This tip worked for someone else 
> if I remember correctly. What does your code look like?
> 
> 
> -- Klaus
> 
> _______________________________________________
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Can-you-add-event-handler-to-XMLHttpRequest.onreadystatechange--tf3270003.html#a9150100
Sent from the JQuery mailing list archive at Nabble.com.


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

Reply via email to