This is recursive function , once result displayed on browser i am calling tht function again for updation
I am unable to understand why i am getting stack overflow exception, sometimes it'll work good , is this is because of cache problem ,, ?
while debugging with alert boxes .i'll came to know that if i'll put multiple alert boxes it will work fine,
Code:
function retrieveURL(url)
{
if (window.ActiveXObject) { // Working on IE
req = new ActiveXObject("Microsoft.XMLHTTP");
if (req) {
req.onreadystatechange = processStateChange;
req.open("GET", url, true);
req.send();
}
}
}
function processStateChange() {
if (req.readyState == 4) {
var characters = document.getElementById("characters");
var result = req.responseText;
if(result.length > 50)
{
characters.value=result;
result=null;
req=null;
}
retrieveURL('CPUutil.do');
}
}
while debugging with alert boxes .i'll came to know that if i'll put multiple alert boxes it will work fine,
Comment