vaDheryMondohp
New Member
The code works in Chrome and Opera, but not Firefox. I read that this can happen when not using async, but in this case I am. Any other hints would be appreciated.Request code:\[code\] var self = this; var request = new XMLHttpRequest(); request.open("GET", Track.TRACK_DIR + this.name + ".xml", true); request.onreadystatechange = function() { if(request.readyState == 4 && request.status == 200) { console.log("XML data loaded."); self.xmlDoc = request.responseXML; self.prepare(); } }; request.send(null); \[/code\]Firebug log reports XML loaded:\[code\]GET ... 200 OK 1.55s\[/code\]I also tested with a log message in the first line of the \[code\]onreadystatechange\[/code\] function, which did not show in Firefox. This show the function code isn't run at all, opposed to the problem being with satisfying the if clause.