Hello,
I am new to dhtmlx and am planning to use the dhtmlxscheduler, since I couldn’t get this to work with dhtmlxconnector and an oracle database I decided to try a simple example with dhtmlxgrid.
I am getting a dtmlXGridObjet is undefined error.
My code is shown below
<script>
var mygrid;
mygrid = new dhtmlXGridObject("gridbox");
mygrid.setImagePath("E:\ACS\dhtmlxSuite\dhtmlxGrid\codebase\imgs");
mygrid.setHeader("Column A,Column B, Column C, Column D");
mygrid.setInitWidths("100,*,*,*");
mygrid.setColTypes("ed,ed,ed,ed");
mygrid.setSkin("Modern");
mygrid.init();
mygrid.loadXML("E:\ACS\dhtmlxSuite\dhtmlxConnector\codebase\gridconn.php");
</script>
and the code in gidconn.php is
<?php require("E:\ACS\dhtmlxSuite\dhtmlxConnector\codebase\grid_connector.php"); require("E:\ACS\dhtmlxSuite\dhtmlxConnector\codebase\db_oracle.php"); include ("E:\ACS\dhtmlxSuite\system.inc.php"); $res = oci_connect($UID,$PWD,$SID); $grid = new GridConnector($res,"ORACLE"); $grid->render_table("tt_test2","event","start_time,end_time,module,room"); ?>Can anybody please tell me what is causing the error.
Thanks