hi,
»» req.onreadystatechange = responseHandler;
»» req.open("GET", url, true);http://en.wikipedia.org/wiki/XMLHttpRequest#Reusing_XMLHttpRequest_Object_in_IE
To be able to reuse the XHR object properly, use the open method first and set onreadystatechange later.<
Kurz und schmerzlos:
req.open("GET", url, true); // first
req.onreadystatechange = responseHandler; // later
und es tut, danke nochmal :-)
Hotte
--
Wenn der Kommentar nicht zum Code passt, kann auch der Code falsch sein.
Wenn der Kommentar nicht zum Code passt, kann auch der Code falsch sein.