prashcom
08-22-2006, 05:50 AM
Hi all
This is my code :
window.onload = winInit;
function winInit()
{
ping(1);
}
function ping(val)
{
xmlhttp.open('POST',"/ajax/test.php",false); xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
xmlhttp.send("call=ping&from="+user+"&pwd="+pass);
pingTimer = setTimeout("ping(0)",5000);
}
Its working fine in IE but in mozilla the browser is hanged when i am refreshing the page or click on any other link on that page for few second.
The strange problem is in ping function first 2 line is executing fine but i do't know why third line is causing the browser hanged....
will any one please help me out.
This is my code :
window.onload = winInit;
function winInit()
{
ping(1);
}
function ping(val)
{
xmlhttp.open('POST',"/ajax/test.php",false); xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
xmlhttp.send("call=ping&from="+user+"&pwd="+pass);
pingTimer = setTimeout("ping(0)",5000);
}
Its working fine in IE but in mozilla the browser is hanged when i am refreshing the page or click on any other link on that page for few second.
The strange problem is in ping function first 2 line is executing fine but i do't know why third line is causing the browser hanged....
will any one please help me out.