Re: XHR, responseXML and this



Martin Honnen <mahotrash@xxxxxxxx> wrote:

Firefox/Mozilla in my view is rather broken in that regard as it sets up
the function assigned to onreadystatechange as the 'this' object. That
will be fixed in Firefox 3 I think.

U're right, i did a quick test with Firefox 3.0.b4 it works with this
....
On the other hand with IE 5/6 and new ActiveXObject('Msxml2.XMLHTTP')
using the 'this' object in the onreadystatechange handler does not work
as expected either.

then, I'll stay with req :o

thanks !

--
Une Bévue
.



Relevant Pages

  • Re: Using XMLHttpRequest in Firefox
    ... > Trevor L. wrote: ... >> THIS ALERT DISPLAYS IN FIREFOX ... > request object is all that is different. ... it seems to indicate that onreadystatechange is not ...
    (microsoft.public.scripting.jscript)
  • Re: XHR, responseXML and this
    ... Une Bévue wrote: ... That will be fixed in Firefox 3 I think. ... On the other hand with IE 5/6 and new ActiveXObjectusing the 'this' object in the onreadystatechange handler does not work as expected either. ...
    (comp.lang.javascript)
  • Re: repeated XMLHttpRequest GETs and displaying result
    ... you are overwriting its onreadystatechange handler on ... calls in sequence seems to be what is wanted, ... subsequent request, for which a single XML HTTP request object would ...
    (comp.lang.javascript)
  • How do I include one HTML file in another?
    ... var texte; ... // For Safari, Firefox, and other non-MS browsers ... req = new XMLHttpRequest; ... "or Firefox for any system, ...
    (comp.lang.javascript)