Hi All,
I have a web application that calls an AjaxMethod every 1min based on a javascript timer. It appears that every time I call this ajax method, IE uses more memory.
My function goes like..
[CODE=javascript]function ajaxFunction() {
var xmlHttp;
xmlHttp = new XMLHttpRequest( );
xmlHttp.open("G ET","./currentActivity Report.do?actio n=RefreshCurren tActivity&"+par ameter,true);
xmlHttp.onready statechange=fun ction() {
if(xmlHttp.read yState==4) {
var myspan = document.getEle mentById('myspa n');
var table = document.getEle mentById("Table ");
myspan.removeCh ild(table);
table = null;
var newspan = document.create Element('span') ;
newspan.setAttr ibute("id","Tab le");
myspan.appendCh ild(newspan);
document.getEle mentById("Table ").innerHTML=xm lHttp.responseT ext;
xmlHttp.onready statechange=fun ction() {};
xmlHttp.abort() ;
}
}
xmlHttp.send("" );
}[/CODE]
If any knows about the problem please let me know..
I have a web application that calls an AjaxMethod every 1min based on a javascript timer. It appears that every time I call this ajax method, IE uses more memory.
My function goes like..
[CODE=javascript]function ajaxFunction() {
var xmlHttp;
xmlHttp = new XMLHttpRequest( );
xmlHttp.open("G ET","./currentActivity Report.do?actio n=RefreshCurren tActivity&"+par ameter,true);
xmlHttp.onready statechange=fun ction() {
if(xmlHttp.read yState==4) {
var myspan = document.getEle mentById('myspa n');
var table = document.getEle mentById("Table ");
myspan.removeCh ild(table);
table = null;
var newspan = document.create Element('span') ;
newspan.setAttr ibute("id","Tab le");
myspan.appendCh ild(newspan);
document.getEle mentById("Table ").innerHTML=xm lHttp.responseT ext;
xmlHttp.onready statechange=fun ction() {};
xmlHttp.abort() ;
}
}
xmlHttp.send("" );
}[/CODE]
If any knows about the problem please let me know..
Comment