Categories | Question details Back To List | ||||||||||||||
JS error when LoadXML error is caught IE7 ends up throwing an error here - return docObj.selectNodes(xpathExp)||new Array(0) The code is mangled, so here's the code surrounding this code that is crashing : docObj = this.xmlDoc;if (!docObj)dhtmlxError.throwError("LoadXML","Incorrect XML",[(docObj||this.xmlDoc),this.mainObject]);if(namespace!=null)docObj.setProperty("SelectionNamespaces","xmlns:xsl='"+namespace+"'");if(result_type=='single'){return docObj.selectSingleNode(xpathExp)}else{return docObj.selectNodes(xpathExp)||new Array(0)}}else{var nodeObj = docObj;if(!docObj){if(!this.xmlDoc.nodeName){docObj = this.xmlDoc.responseXML The Output from IE7 is : Microsoft JScript runtime error: Object doesn't support this property or method Answer posted by Support on Jun 11, 2008 09:54 Please provide more details - which data loading method are you using? The mentioned error occurs when grid not able to transform incoming data into valid XML object, but local tests works correctly for all supported datasources. Also, please try to use attached js file instead of original one ( this is latest build of dhtmlxgrid 1.6 standard edition ) , it has minor fix related to loading from XML islands in IE , which may resolve problem in your case. Attachments (1)
Answer posted by Tom Ince on Jun 11, 2008 11:32 With that updated file, the XML still fails to load, but I do not get this error. So this has fixed the error I mentioned above. BTW, I use AJAX to request XML for a grid, and I take the AJAX response and load then use the loadXMLString method. Thanks for the updated file, any change of getting a compressed version? Answer posted by Support on Jun 12, 2008 02:32 Compressed version attached ( the full package at http://www.scbr.com/docs/products/dhtmlx.com/download/dhtmlxGrid.zip already must contain mentioned fix as well ) Attachments (1)
Answer posted by Tom Ince on Jun 12, 2008 05:55 Thank you. I'd already had downloaded dhtmlXGrid 1.6, didn't realize there was a newer version of 1.6. |