Hi all - I think I'm going insane!
All I wanted to do was read an XML file into HTML so I could use it to store info - I've done this in a flash/actionscript app and it was all fine. Now I'm trying to do it to HTML and multi-fail!
I've googled lots of sites and tried various things but I keep getting "null" when I try to spit out the xmlDoc I've loaded.
On this site
if I add the line
document.write(xmlDoc);
after the line
xmlDoc=xmlhttp.responseXML;
I get
[object Document]
but even copying that page contents and XML file to my own server and running it I still just get "null".
I'm about ready to jump out the window, so I'm hoping someone can find me a working load method (then I can worry about all the parsing, next). I haven't tried jquery methods yet as I've yet to use jquery.
_________________________________
Leozack
All I wanted to do was read an XML file into HTML so I could use it to store info - I've done this in a flash/actionscript app and it was all fine. Now I'm trying to do it to HTML and multi-fail!
I've googled lots of sites and tried various things but I keep getting "null" when I try to spit out the xmlDoc I've loaded.
On this site
if I add the line
document.write(xmlDoc);
after the line
xmlDoc=xmlhttp.responseXML;
I get
[object Document]
but even copying that page contents and XML file to my own server and running it I still just get "null".
I'm about ready to jump out the window, so I'm hoping someone can find me a working load method (then I can worry about all the parsing, next). I haven't tried jquery methods yet as I've yet to use jquery.
_________________________________
Leozack
Code:
MakeUniverse($infinity,1,42);