hello everyone
i was creating an ajax based file manager for managing remote files.
at home i have installed apache and php on windows and test my php scripts there
it is working fine on my pc at home
but when i uploaded to my hosting space it is causing some errors
to check the error i have put an alert statement:
Code:
var oXmlDom = zXmlDom.createDocument();
oXmlDom.loadXml(sResponseText);
alert(oXmlDom.childNodes[1]); // alerting 'null'
and here's the content of sResponseText:
Code:
<?xml version="1.0" encoding="utf-8"?>
<response>
<msg>bla bla bla</msg>
<cd>bla bla bla</cd>
<listing>
<item>
<name>.</name>
<size>[DIR]</size>
<perms>755</perms>
<path>/home/sumtin/public_html</path>
</item>
<item>
<name>..</name>
<size>[DIR]</size>
<perms>755</perms>
<path>/home/sumtin/public_html</path>
</item>
</listing>
</response>
again at home i'm testing on windows my server is probably linux
but i don't think this matters