Categories | Question details Back To List | ||
XPath Support in IE (using 2.1 90226) causing errors Using Firefox 3.0.11 the following works as expected: endpoint = "/ajax/setProgramOpenClose.php" parms = "pgmId="+selectedRows; var loader = dhtmlxAjax.postSync(endpoint, parms); // loader.xmlDoc.responseText is: //<?xml version="1.0" encoding="ISO-8859-1"?> //<result> // <value>1</value> // <message>Changes sucessfully made.</message> //</result> var result = loader.doXPath("/result/message"); alert(result[0].textContent); In FF the last alert is "Changes sucessfully made". Howerver when running same in IE8 I get "undefined". I know there are documented problems with IEs xpath support. Am I running into IE limitations here? Answer posted by Alex (support) on Jun 25, 2009 07:44 textContent isn't supported by IE. You can try to use result[0].firstChild.data instead of it. |