Categories | Question details Back To List | ||
Grid's loadXMLString() method not loading rows in Opera/IE7 I'm loading rows via an XML string after a Grid has already been initialized. In Firefox 2.0, the rows are displayed. However, in Opera 9 and IE7, the rows don't appear and internal javascript errors occur. Below is some test code that creates a simple Grid. <div id="gridbox"></div> <script type="text/javascript"> mygrid = new dhtmlXGridObject('gridbox'); mygrid.setHeader("Column A, Column B"); mygrid.setInitWidths("100,100"); mygrid.setColAlign("left,left"); mygrid.setColTypes("ro,ed"); mygrid.setColSorting("int,str"); mygrid.init(); var s = '<rows>'; s += '<row><cell>x</cell><cell>y</cell></row>'; s += "</rows>"; mygrid.loadXMLString(s); </script> Using the code above, a Grid is created in Firefox 2.0, but not in Opera 9 or IE7 (it appears to work in IE6, though). Is my XML wrong? Answer posted by Support on Jan 14, 2008 08:37 Problem in case of Opera browser confirmed and fixed, fix will be released as part of next build ( if you need it asap, please contact us directly at support@dhtmlx.com ) |