maddymadhans
Programmer
function updateStatus(){
tmpCount++;
if(tmpCount<=usersCount) {
var newName = "Some name";
statusVars.load("getUsrStatus.php?newName="+newName);
}
else {
tmpCount=0;
}
}
function showStatus(success) {
if(success) {
usrStatus=this["usrStatus"];
}
}
/*Main program*/
statusVars = new LoadVars();
statusVars.onLoad = showStatus;
var satusInterval = setInterval(updateStatus,5000);
The problem is i hav to run script call getUsrStatus.php for a time interval repeatedly, in which i am just simply passing the usrStatus which is the variable name of a dynamic text. when the showStatus function is called the usrStatus is not updated, even the previous content in the usrStatus is erased and left blank. The following is my php code,
<?php
include ('function.php');
$srchusr=$HTTP_GET_VARS['newName'];
$usrStatus =2;
echo"usrStatus=$usrStatus";//passing the parameter again to the flash.......
?>
plz solve this problem why its happening so....
Thank you
Madhan S
tmpCount++;
if(tmpCount<=usersCount) {
var newName = "Some name";
statusVars.load("getUsrStatus.php?newName="+newName);
}
else {
tmpCount=0;
}
}
function showStatus(success) {
if(success) {
usrStatus=this["usrStatus"];
}
}
/*Main program*/
statusVars = new LoadVars();
statusVars.onLoad = showStatus;
var satusInterval = setInterval(updateStatus,5000);
The problem is i hav to run script call getUsrStatus.php for a time interval repeatedly, in which i am just simply passing the usrStatus which is the variable name of a dynamic text. when the showStatus function is called the usrStatus is not updated, even the previous content in the usrStatus is erased and left blank. The following is my php code,
<?php
include ('function.php');
$srchusr=$HTTP_GET_VARS['newName'];
$usrStatus =2;
echo"usrStatus=$usrStatus";//passing the parameter again to the flash.......
?>
plz solve this problem why its happening so....
Thank you
Madhan S