Problem with datatables duplicate itself
Problem with datatables duplicate itself
Hello.
I got a strange issu with datagrid or something wrong...
I have index.php, it's a simple file and I use require_once("includes/_pages/themeframe/frame_e.php");
frame_e.php file include the file mainbody.php and in this file I retreive the var that I set in the url and I do a switch that will select the proper body file.
include_once(_pages."modules/mainheader.php");
include_once(_pages."modules/mainbody.php");
I use this method because I may use different body and header for futur theming purpose.
for now everything is right.
here the code.
Index.php
[code]
<?php require_once("includes/initPHP.php"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
test site
<?php require_once("includes/initJS.php"); ?>
<?php
require_once("includes/_pages/themeframe/frame_e.php");
?>
[/code]
And the frame_e.php
[code]
<?php include_once(_pages."modules/mainheader.php"); ?>
<?php include_once(_pages."modules/mainbody.php"); ?>
[/code]
Here the mainbody.php
[code]
<?php
if (isset($_GET['section']))
{
$section = $_GET['section'];
}else
{
$section = "mainbody_cmd"; //default
}
switch($section)
{
case "mainbody_cmd":
include_once(_pages."modules/mainbody_cmd.php");
break;
case "mainbody_clients":
include_once(_pages."modules/mainbody_clients.php");
break;
}
$section = "";
?>
[/code]
Everything seem to work, only the datatable. here the url example.
http://debugger.ca/mc/mcadmin/ <- work right
if I include parameter
http://debugger.ca/mc/mcadmin/index.php?section=mainbody_cmd
http://debugger.ca/mc/mcadmin/index.php?section=mainbody_clients <- seem ok
in firefox the grid reload itself
in IE seem to work right
in Chrome do the same thing as FF
note that there's no postback, that make the grid repeat.
thanks for your help.
I got a strange issu with datagrid or something wrong...
I have index.php, it's a simple file and I use require_once("includes/_pages/themeframe/frame_e.php");
frame_e.php file include the file mainbody.php and in this file I retreive the var that I set in the url and I do a switch that will select the proper body file.
include_once(_pages."modules/mainheader.php");
include_once(_pages."modules/mainbody.php");
I use this method because I may use different body and header for futur theming purpose.
for now everything is right.
here the code.
Index.php
[code]
<?php require_once("includes/initPHP.php"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
test site
<?php require_once("includes/initJS.php"); ?>
<?php
require_once("includes/_pages/themeframe/frame_e.php");
?>
[/code]
And the frame_e.php
[code]
<?php include_once(_pages."modules/mainheader.php"); ?>
<?php include_once(_pages."modules/mainbody.php"); ?>
[/code]
Here the mainbody.php
[code]
<?php
if (isset($_GET['section']))
{
$section = $_GET['section'];
}else
{
$section = "mainbody_cmd"; //default
}
switch($section)
{
case "mainbody_cmd":
include_once(_pages."modules/mainbody_cmd.php");
break;
case "mainbody_clients":
include_once(_pages."modules/mainbody_clients.php");
break;
}
$section = "";
?>
[/code]
Everything seem to work, only the datatable. here the url example.
http://debugger.ca/mc/mcadmin/ <- work right
if I include parameter
http://debugger.ca/mc/mcadmin/index.php?section=mainbody_cmd
http://debugger.ca/mc/mcadmin/index.php?section=mainbody_clients <- seem ok
in firefox the grid reload itself
in IE seem to work right
in Chrome do the same thing as FF
note that there's no postback, that make the grid repeat.
thanks for your help.
This discussion has been closed.
Replies
I use in my index.php and when I specify
index.php it load the page and go back to the base et reload the page again and again.
topic close