U
Une Bévue
say, i've an XHR request :
req=new XMLHttpRequest();
the response handler being specified that way :
req.onreadystatechange=requestHandler;
(effectively being importHandler) in the page
<http://thoraval.yvon.free.fr/Fixed_layout/import_nodes.xhtml> lines
43/56.
in the "requestHandler" first i've tried using 'this' as the receiver,
for example :
var importHandler=function(){
if (this.readyState==4){
----------^^^^
this was working fine with Safari 3.1.1, not at all with Firefox 2,
then, i had to use :
if (req.readyState==4){
----------^^^
req being a global var.
does it means i was lucky with Safari or Firefox is faulty ?
because with req as a global doesn't help me when i have to load two
files "simultaneously", for example, an xml one and an xsl to transform
it.
the second request could collapse the first (generally the xml file size
is greater than the xsl one) ???
req=new XMLHttpRequest();
the response handler being specified that way :
req.onreadystatechange=requestHandler;
(effectively being importHandler) in the page
<http://thoraval.yvon.free.fr/Fixed_layout/import_nodes.xhtml> lines
43/56.
in the "requestHandler" first i've tried using 'this' as the receiver,
for example :
var importHandler=function(){
if (this.readyState==4){
----------^^^^
this was working fine with Safari 3.1.1, not at all with Firefox 2,
then, i had to use :
if (req.readyState==4){
----------^^^
req being a global var.
does it means i was lucky with Safari or Firefox is faulty ?
because with req as a global doesn't help me when i have to load two
files "simultaneously", for example, an xml one and an xsl to transform
it.
the second request could collapse the first (generally the xml file size
is greater than the xsl one) ???