IE has a problem replacing the contents of TBODY with innerHTML. The above jQuery works; if you are not using jQuery, another solution should have <div id='helper' style='visibility:hidden'/> somewhere on the page - when the answer arrives, put the value with the surrounding <table> in the hidden div, then use DOM to remove old content from your visible tag and insert elements from the hidden 1 by 1 tag:
var a=document.getElementById("dealdata"); while(a.firstChild!=null) a.removeChild(a.firstChild); var b=document.getElementById("helper"); b.innerHTML="<table>"+this.responseText+"</table>"; while(b.tagName!="TR") { if(b.tagName==null) b=b.nextSibling; else b=b.firstChild; } for(;b!=null;b=b.nextSibling) a.appendChild(b);
source share