Hi all,
I study from dhtmlxGrid: easy dealing with server-side and change some to fulfill my test_tgrid.htm. It show xml data on new window but not on grid when I tested this site.
The sample maybe have some problem, please help.
[url]Start DHTMLX Docs
test_grid.htm
<script src="dht/dhtmlx/dhtmlx.js" type="text/javascript" charset="utf-8"></script>
<script src="dht/dhtmlx/dhtmlxdataprocessor.js" type="text/javascript" charset="utf-8"></script>
<script src="dht/dhtmlx/connector.js" type="text/javascript" charset="utf-8"></script>
<div id="box" style="width:350px; height:160px; background-color:white;"></div>
<div id="box2" style="width:350px; height:100px; background-color:white;"></div>
data.php
<?php require_once("../dht/connector/codebase/grid_connector.php"); $res=mysql_connect("localhost","root","root");//connects to a server that contains the desired DB mysql_select_db("gfdb");// connects to the DB. 'tasks' is the name of our DB $conn = new GridConnector($res,"MySQL");// connector initialization $conn->render_table("www_user","userid","username,password,email,active,fullaccess");// data configuration ?>