Urgent urgency, js5 second call once test.php JS how to write not divided who help
JS Page
function SendMail ()
{
}
JS5 Second Call once test.php
------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 Autodeep () {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); 5 Seconds to execute} function Statusbegin () {statusstop (); Autodeep (); } statusbegin ();