Js5 calls test once in seconds. which of the following can help me with phpjs? & lt; inputname = & quot; send & quot; type = & quot; button & quot; id = & quot; send & quot; onclick = & quot; SendMa urgent, js5 calls test once in seconds. why does php js fail to be written? Can someone help me?
Js page
Function SendMail ()
{
}
Js5 calls test. php once in seconds
------ Solution --------------------
For reference only:
JScript code
Var xmlHttp; var timer = null; var timerRunning = false; var url; function createXMLHttpRequest () {if (window. XMLHttpRequest) {xmlHttp = new XMLHttpRequest ();} else if (window. activeXObject) {xmlHttp = new ActiveXObject ("Microsoft. XMLHTTP ") ;}} function statusStop () {if (timerRunning) {clearTimeout (timer) ;}timerrunning = true ;}/ * ------------------- interval query ------------------- */function autoDee P () {createXMLHttpRequest (); url = "map. php? Refresh = "+ Math. random (); method = "GET"; xmlHttp. open (method, url, true); xmlHttp. onreadystatechange = null; xmlHttp. send (null); timerRunning = false; timer = setTimeout ('autodeep () ', 5000); // execute once every 5 seconds} function statusBegin () {statusStop (); autoDeep ();} statusBegin ();