test of this class
test of this class
- Parameters
-
<?php
require_once NOALYSS_INCLUDE.'/lib/progress_bar.class.php';
$ajax=
$http->request(
"TestAjaxFile",
"string",
"no");
{
session_write_close();
$task=
$http->request(
"task_id");
sleep(1);
sleep(2);
sleep(1);
sleep(2);
sleep(5);
sleep(6);
return;
}
?>
<script>
function start_test()
{
var task_id='<?php echo uniqid()?>';
progress_bar_start(task_id);
new Ajax.Request("ajax_test.php",{
parameters:{
"TestAjaxFile":
"<?php echo __FILE__?>",gDossier:<?php echo
Dossier::id()?>,
'task_id':task_id}
});
}
</script>
<button onclick="start_test()"> Start progress</button>
static id()
return the 'gDossier' value after a check
Use one db for tracking progress bar value, the task id must be unique and let you follow the progres...