i don’t get it.
myLoadVars.sendAndLoad(“somePHPdoc.php?num=”+Math.random()*19999, “POST”);
what is the ‘num’ in the above statement?
i don’t get it.
myLoadVars.sendAndLoad(“somePHPdoc.php?num=”+Math.random()*19999, “POST”);
what is the ‘num’ in the above statement?
that num can be a variable that the php script receives (like if u want to send login information to php but you wouldn’t do that with query strings actually)
But in this case it’s just a random-named variable which’s value is set to a random value between 0 and 19999. The reason of this is not to load the php page from the browser’s chache. (Ya know if u go to www.kirupa.com and if u have visited it recently then it may take the page from the browser’s cache and therefore no updates that have been made in the mean time will not be displayed.
But if u go to www.kirupa.com?num=1 then u can be sure that this one is not from the browser’s cache. (actually the next time you have to change the variable or the value because now the “num=1” is in the cache too))
:: Copyright KIRUPA 2024 //--