I am having an issue where grid data is not showing up in IE 8, but does show up in Chrome. I have a layout that has two grids that are attached on the onclick event of a toolbar. This works fine in chrome, but does not work.
Here is my master.php page:
[code]
PhotographyBee Administrator<link rel="stylesheet" type="text/css" href="/js/dhtmlxSuite2.6/dhtmlxLayout/codebase/dhtmlxlayout.css">
<link rel="stylesheet" type="text/css" href="/js/dhtmlxSuite2.6/dhtmlxLayout/codebase/skins/dhtmlxlayout_dhx_skyblue.css">
<link rel="stylesheet" href="/js/dhtmlxSuite2.6/dhtmlxConnector/samples/common/dhtmlx.css" type="text/css" charset="utf-8">
<link rel="stylesheet" type="text/css" href="/js/dhtmlxSuite2.6/dhtmlxGrid/codebase/skins/dhtmlxgrid_dhx_skyblue.css">
<link rel="stylesheet" type="text/css" href="js/dhtmlxSuite2.6/dhtmlxGrid/codebase/dhtmlxgrid.css">
<link rel="stylesheet" type="text/css" href="js/dhtmlxSuite2.6/dhtmlxGrid/codebase/skins/dhtmlxgrid_dhx_skyblue.css">
<link rel="stylesheet" type="text/css" href="js/dhtmlxSuite2.6/dhtmlxToolbar/codebase/skins/dhtmlxtoolbar_dhx_skyblue.css">
<script src="js/dhtmlxSuite2.6/dhtmlxLayout/codebase/dhtmlxcommon.js"></script>
<script src="js/dhtmlxSuite2.6/dhtmlxLayout/codebase/dhtmlxlayout.js"></script>
<script src="js/dhtmlxSuite2.6/dhtmlxGrid/codebase/dhtmlxgrid.js"></script>
<script src="js/dhtmlxSuite2.6/dhtmlxGrid/codebase/dhtmlxgridcell.js"></script>
<script src="/js/dhtmlxSuite2.6/dhtmlxConnector/samples/common/dhtmlx.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/dhtmlxSuite2.6/dhtmlxConnector/codebase/connector.js" type="text/javascript" charset="utf-8"></script>
<script src="js/dhtmlxSuite2.6/dhtmlxToolbar/codebase/dhtmlxtoolbar.js"></script>
<script src="js/dhtmlxSuite2.6/dhtmlxLayout/codebase/dhtmlxcontainer.js"></script>
<div id="parentId" style="width: 100%; height: 100%; aborder: #B5CDE4 1px solid;"></div>
<script type="text/javascript" language="javascript">
var dhxLayout,
dhxToolbar,
dhxGrid;
dhxLayout = new dhtmlXLayoutObject("parentId", "2U");
dhxLayout.cells("a").setWidth(200);
dhxToolbar = dhxLayout.attachToolbar();
dhxToolbar.setIconsPath("/js/dhtmlxSuite2.6/dhtmlxToolbar/samples/common/imgs/");
dhxToolbar.loadXML("/_xml/toolbar_buttons.xml?" + new Date().getTime());
dhxToolbar.attachEvent("onClick", function(id){
if ( id == "useradmin") {
dhxLayout.cells("b").detachObject();
//dhxLayout.cells("b").view("userList").attachURL("../userList.php");
dhxLayout.cells("b").attachURL("../userList.php");
dhxLayout.cells("a").setText("User List");
//dhxLayout.cells("b").hideHeader();
//dhxLayout.cells("b").detachToolbar();
}
else if (id == "clients")
{ dhxLayout.cells("b").detachObject();
//dhxLayout.cells("b").progressOn();
//dhxLayout.cells("b").view("clientList").attachURL("../clientList.php");
dhxLayout.cells("b").attachURL("../clientList.php");
dhxLayout.cells("a").setText("Client List");
dhxLayout.cells("b").hideHeader();
}
});
</script>
<?php
echo $pagemaincontent;
?>
[/code]
here is one of the pages that has the grid definition referenced int he onclick handler. (userList.php):
[code]<script language="javascript" type="text/javascript">
//alert("here - user");
var dhxGridUser;
parent.dhxLayout.cells("a").setWidth(200);
dhxGridUser = parent.dhxLayout.cells("b").attachGrid();
dhxGridUser.setImagePath("/js/dhtmlxSuite2.6/dhtmlxGrid/codebase/imgs/");
dhxGridUser.setHeader("Username, Email Address, IP Address, Date, Active");
dhxGridUser.attachHeader("#connector_text_filter,#connector_text_filter,#connector_text_filter,#connector_text_filter,#connector_text_filter");
dhxGridUser.setInitWidths("100,*");
dhxGridUser.setColTypes("ro,ro,ro,ro,link");
dhxGridUser.setColSorting("connector,connector,connector,connector,connector");
dhxGridUser.enableSmartRendering(true);
dhxGridUser.enableMultiselect(true);
dhxGridUser.init();
dhxGridUser.loadXML("connectors/userAdmin.php");
var dp = new dataProcessor("connectors/userAdmin.php");
dp.init(dhxGridUser);
</script>[/code]