loading other message for other div in xajax
require_once("xajax_core/xajax.inc.php");
$xajax = new xajax();
// SEE file list below!
$xajax->setFlag("debug", false);
function callScript($oRequest)
{
$response = new xajaxResponse();
$value = "this is a string duoc tra ve";
for($i=0;$i<1000;$i++){
for($j=0;$j<10000;$j++){}
}
$response->assign($oRequest, "innerHTML", nl2br(print_r($value."0 - ".$i." - ".$j." - ".$oRequest, true)));
return $response;
}
$xajax->registerFunction("callScript");
$xajax->processRequest();
?>
"http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>xajax Tests
$xajax_files = array();
$xajax_files[] = array("xajax_js/xajax_core.js", "xajax");
// $xajax_files[] = array("xajax_js/xajax_debug.js", "xajax.debug");
$xajax->printJavascript("", $xajax_files)
?>
<script type="text/javascript">
<body>
<div id="loading0" style="display:none; color:#000033;">Global Loading0, please wait a moment...
$xajax = new xajax();
// SEE file list below!
$xajax->setFlag("debug", false);
function callScript($oRequest)
{
$response = new xajaxResponse();
$value = "this is a string duoc tra ve";
for($i=0;$i<1000;$i++){
for($j=0;$j<10000;$j++){}
}
$response->assign($oRequest, "innerHTML", nl2br(print_r($value."0 - ".$i." - ".$j." - ".$oRequest, true)));
return $response;
}
$xajax->registerFunction("callScript");
$xajax->processRequest();
?>
"http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>xajax Tests
$xajax_files = array();
$xajax_files[] = array("xajax_js/xajax_core.js", "xajax");
// $xajax_files[] = array("xajax_js/xajax_debug.js", "xajax.debug");
$xajax->printJavascript("", $xajax_files)
?>
<script type="text/javascript">
<body>
<div id="loading0" style="display:none; color:#000033;">Global Loading0, please wait a moment...
<div id="loading1" style="display:none; color:#000033;">Global Loading1, please wait a moment...