Question
Loading variables
Hi it is possible that this will be very easy, but still:
I need function that loads variables from php via POST method and while variables are loading all other functions are stopped, as i will use this function often in script I think it is better that this function returns array of loaded variables, like
some code;
aArray = getVars("myPHP.php", aParamsArray);
some code vhere aArray is used;
the main problem I have is how to return variables if i am using setInterval because it calls another function, maybe there is some other way to stop script from runing until variables is loaded
I need function that loads variables from php via POST method and while variables are loading all other functions are stopped, as i will use this function often in script I think it is better that this function returns array of loaded variables, like
some code;
aArray = getVars("myPHP.php", aParamsArray);
some code vhere aArray is used;
the main problem I have is how to return variables if i am using setInterval because it calls another function, maybe there is some other way to stop script from runing until variables is loaded