I'm using XAJAX Grid which is an editable grid, my source code is entirely correct and on index page, i cannot see any data bounded to the grid, IE is showing a syntax error, anyone who knows abt AJAX, please help me out..
here is my index.php code
Code: Select all
<?PHP
session_start();
// If you have the PEAR PHP package, you can comment the next line.
ini_set('include_path',dirname($_SERVER["SCRIPT_FILENAME"])."/include");
//echo dirname($_SERVER["SCRIPT_FILENAME"])."/include";
//exit();
require_once ('common.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>GRID VIEW</title>
<link rel="stylesheet" href="css/style.css" type="text/css" />
<?php $xajax->printJavascript("include/")?>
</head>
<body>
<br>
<center>
<table width="90%" border="0" style="background: #F9F9F9; padding: 0px;">
<tr>
<td style="padding: 0px;">
<fieldset>
<div id="formDiv" class="formDiv"></div>
<div id="grid" align="center"> </div>
<script type="text/javascript">
xajax_showGrid(0,<?=ROWSXPAGE?>,'','','lastname');
</script>
</fieldset>
</td>
</tr>
</table>
</center>
</body>
</html>
<script type="text/javascript">
xajax_showGrid(0,<?=ROWSXPAGE?>,'','','lastname');
</script>
Many Thanks.