Categories | Question details Back To List | ||
loadxml error Hi, i am getting loadXML error when running the below code in the IBM portal application in one of the portlets.. My code is .. mygrid = new dhtmlXGridObject('gridbox'); mygrid.selMultiRows = true; mygrid.setImagePath("/wps/imagegrid/icons_greenfoldersimages/"); mygrid.setHeader("First Name,Last Name,Country,Email,Role"); mygrid.setInitWidths("100,100,100,100,200"); mygrid.setColAlign("left,center,center,center,center"); mygrid.setColSorting("str,str,str,str,str"); mygrid.setColTypes("ro,ed,ed,ro,ro"); mygrid.enableCollSpan(true); mygrid.enableTooltips("false,false,false,false,false"); mygrid.enableMultiline(true); mygrid.enableEditEvents(true,true,true,true,true); mygrid.init(); mygrid.setSkin("modern"); mygrid.clearAll(); mygrid.loadXML("<?xml version='1.0' encoding='iso-8859-1'?><rows><row id='1'><cell>Pizza</cell> <cell>Pizza</cell><cell>Pizza</cell><cell>Pizza</cell><cell>Pizza</cell></row></rows>"); It is showing the headers correctly... but the data is not loading .... Pls help me . Thanks Answer posted by Support on Nov 10, 2008 01:59 loadXML command purposed to load data from remote URI, if you need to load data from JS string , you need to use mygrid.parse("<?xml version='1.0' encoding='iso-8859-1'?><rows><row id='1'><cell>Pizza</cell> <cell>Pizza</cell><cell>Pizza</cell><cell>Pizza</cell><cell>Pizza</cell></row></rows>"); |