ajax sql php in xml format ,ie error

hectorred

New Member
I have ajax code ,sql retrived using php code in xml format.I want to display xml using ajax request javascript code when the page loading .I have got this working on firefox,chrome, however on internet explorer gives this error:SCRIPT5007: Unable to get property 'documentElement' of undefined or null reference THIS error in line 2 of below function:\[code\]REQ.getRequest("getXML.php" , displayXMLOnl, true);function displayXMLOnl( data ){ var root = data.documentElement; // the error in this line }\[/code\]
 
Back
Top