Categories | Question details Back To List | ||
updateFromXML not working in IE 7 hi, I am facing probelm in using updateFromXML. In case of Firefox is fine but Internet Explorer 7.0.5730.13 its not updating, not also giving any error here is my code: grid2 = new dhtmlXGridObject('ruleGrid'); grid2.setImagePath("skins/avm/images/grid/"); grid2.setHeader("Id,Rule Name"); grid2.setInitWidths("35,*"); grid2.setColumnHidden(0,true); grid2.setColTypes("ro,ro"); grid2.setColSorting("sort_link,sort_link"); grid2.setColAlign("left,left"); grid2.setSkin("light"); grid2.enableStableSorting(true); grid2.enableResizing("false,true"); grid2.setFiltrationLevel(-2); grid2.enableHeaderMenu(); grid2.enableDistributedParsing(true,30,300); grid2.loadXML("faces/AdapterServlet?assemblyname=pb.jar&adapterclass=Adapter&elemid=16a393ab8b454a12ab2038215eda6800&action=getrulelistdata",function(){ checkUrlForRule();}); grid2.init(); function handleDeleteAction(ruleId){ dlgProgress.show(); var url = "faces/AdapterServlet?assemblyname=pb.jar&adapterclass=Adapter&action=delete&ruleid=" + ruleId; doXhrGet(url ,function(type, data){ grid2.updateFromXML("faces/AdapterServlet?assemblyname=Adapter&elemid=16a393ab8b454a12ab2038215eda6800&action=getrulelistdata",true,true); dlgProgress.hide(); eval(type); },function(type, error){ var d = new dijit.Dialog({title: "Error", style: "width: 250px, height:300px"}); dojo.style(d.closeButtonNode, "visibility", "visible"); html = type.responseText; d.setContent(html); d.show(); },"50000", ""); } Please help. Answer posted by dhxSupport on Jun 30, 2009 01:44 updateFromXML() and enableDistributedParsing() are mutually exclusive funtionalities. There is no way use them together. As a workaround you can clear all rows in grid and load new one using load() method: function handleDeleteAction(ruleId){ .... grid2.clearAll(); grid2.load("faces/AdapterServlet?assemblyname=Adapter&elemid=16a393ab8b454a12ab2038215eda6800&action=getrulelistdata"); ... } Answer posted by ap on Jun 30, 2009 03:03 hi, I tried using clearAll() and load but still grid update is not working in IE 7 do i need to add anything else in grid settings? I also tried commenting enableDistributedParsing and updateFromXML but no change.each time i need to clear cache manually and do refresh. other thing is when i open url("faces/AdapterServlet?assemblyname=Adapter&elemid=16a393ab8b454a12ab2038215eda6800&action=getrulelistdata") in next tab and do refresh it shows data. i put alert and checked whether call is actaully made to backend or not. it does call server but data is not updated. Answer posted by dhxSupport on Jun 30, 2009 04:23 Please send us example where we can reproduce this issue including files which you are using to initialize grid. Please send example directly to the support@dhtmlx.com |