Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Micha Hastrich on Nov 10, 2009 07:48
open dhtmlx forum
Editing Cells in DHTMLXGRID in iframe with IE7 (Version 2.5)

Hi,

I have a dhtmlx-Tabbar in which i open .jsp's in iframes:

For example:

var tabbar = dhxLayout.cells("b").attachTabbar();
tabbar.setImagePath("<%= dhtmlxPath %>/imgs/");
tabbar.setHrefMode("iframes-on-demand");
tabbar.setSkinColors("#FCFBFC","#F4F3EE");
tabbar.addTab("a1", "Allgemein", "100px");

tabbar.setContentHref("a1","/<%= projectId %>/osr9000_demo_allgemein.jsp?TWRKC=<%=twrkc%>&SORD=<%=sord%>&SCHICHT="+document.getElementById('SCHICHT').value);

In some of this jsp Sites a DHTMLX-Grid is used:

For Example:

mygrid = new dhtmlXGridObject('gridbox');
        mygrid.imgURL = "<%= dhtmlxPath %>/imgs/";
        mygrid.setHeader("Vorfall,Von,Bis,Zeitdauer,Stillstand [Y/N],Stillstand [h],Teil,Grund,Bemerkung,Status,Techniker");
        mygrid.setInitWidths("100,100,100,100,100,100,100,100,250,120,120");
        mygrid.setColAlign("left,left,left,left,left,left,left,left,left,left,left");
        mygrid.setColTypes("ro,ed,ed,ro,ch,ro,coro,coro,txt,coro,coro");
        mygrid.setColSorting("str,str,str,str,str,str,str,str,str,str,str");        
        mygrid.init();
        mygrid.enableAutoHeight(true,"150");
        mygrid.setSkin("light");
mygrid.loadXML("osr9000_demo_maschinenereignisse_xml.jsp?SORD="+parent.document.getElementById("sord").innerHTML+"&K2SCHT="+parent.document.getElementById("SCHICHT").value+"&TWRKC=<%=TWRKC%>",doAfterRefresh);

When i try to edit cells in FireFox it works fine.
But in IE it shows up following error:

Meldung: 'target' ist Null oder kein Objekt
Zeile: 395
Zeichen: 36
Code: 0
URI: http://localhost:8080/os/dhtmlx/dhtmlx.js

What am I doing wrong?
Answer posted by Alex (support) on Nov 10, 2009 08:07

Hello,

the issue wasn't reproduced locally. Please, provide the complete demo where we can recreate the issue (the sample can be also sent to support@dhtmlx.com).