summaryrefslogtreecommitdiffstats
path: root/samples/grid/01_basic.html
diff options
context:
space:
mode:
Diffstat (limited to 'samples/grid/01_basic.html')
-rw-r--r--samples/grid/01_basic.html11
1 files changed, 8 insertions, 3 deletions
diff --git a/samples/grid/01_basic.html b/samples/grid/01_basic.html
index 65ac772..ae3c1ff 100644
--- a/samples/grid/01_basic.html
+++ b/samples/grid/01_basic.html
@@ -8,13 +8,18 @@
<script src="../dhtmlx/dhtmlx.js" type="text/javascript" charset="utf-8"></script>
-<script src="../dhtmlx/dhtmlxdataprocessor.js" type="text/javascript" charset="utf-8"></script>
-<script src="../../codebase/connector.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="../dhtmlx/dhtmlx.css" type="text/css" charset="utf-8">
</head>
<body>
<div id="gridbox" width="350px" height="550px" style="background-color:white;overflow:hidden"></div>
<script>
+
+ function myErrorHandler(type, desc, erData){
+ alert("GOT IT!");
+ return false;
+ }
+ // dhtmlxError.catchError("LoadXML", myErrorHandler);
+
mygrid = new dhtmlXGridObject('gridbox');
mygrid.setImagePath("../dhtmlx/imgs/");
mygrid.setHeader("Column A, Column B");
@@ -34,7 +39,7 @@
<div class='code'><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php
<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">require_once(</span><span style="color: #DD0000">"../config.php"</span><span style="color: #007700">);
-<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$res</span><span style="color: #007700">=</span><span style="color: #0000BB">mysql_connect</span><span style="color: #007700">(</span><span style="color: #0000BB">$mysql_server</span><span style="color: #007700">,</span><span style="color: #0000BB">$mysql_user</span><span style="color: #007700">,</span><span style="color: #0000BB">$mysql_pass</span><span style="color: #007700">);
+<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$res</span><span style="color: #007700">=</span><span style="color: #0000BB"> new PDO</span><span style="color: #007700">(</span><span style="color: #0000BB">$mysql_server</span><span style="color: #007700">,</span><span style="color: #0000BB">$mysql_user</span><span style="color: #007700">,</span><span style="color: #0000BB">$mysql_pass</span><span style="color: #007700">);
<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">mysql_select_db</span><span style="color: #007700">(</span><span style="color: #0000BB">$mysql_db</span><span style="color: #007700">);
<br />
<br />&nbsp;&nbsp;&nbsp;&nbsp;require(</span><span style="color: #DD0000">"../../codebase/grid_connector.php"</span><span style="color: #007700">);