Re: [jQuery] How to add event handler to XMLHttpRequest.onreadystatechange?

2007-02-26 Thread George Adamson
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

Re: [jQuery] How to add event handler to XMLHttpRequest.onreadystatechange?

2007-02-23 Thread Klaus Hartl
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

Re: [jQuery] How to add event handler to XMLHttpRequest.onreadystatechange?

2007-02-22 Thread George Adamson
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

[jQuery] How to add event handler to XMLHttpRequest.onreadystatechange?

2007-02-21 Thread George Adamson
Hi folks, Anyone know if it is possible to add a custom event handler for the onreadystatechange events of JQuery AJAX calls? I'm accessing a url that is slow to complete but does add to its output as it progresses. It would be nice to be able to catch each new fragment to inform the user of

Re: [jQuery] How to add event handler to XMLHttpRequest.onreadystatechange?

2007-02-21 Thread Benjamin Sterling
George, Have you tried looking the the timeout param? Not sure if it does what I think it does. -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] How to add event handler to XMLHttpRequest.onreadystatechange?

2007-02-21 Thread Klaus Hartl
George Adamson schrieb: Hi folks, Anyone know if it is possible to add a custom event handler for the onreadystatechange events of JQuery AJAX calls? I'm accessing a url that is slow to complete but does add to its output as it progresses. It would be nice to be able to catch each new