I am trying to load pages with ajax. My code runs really well in Firefox. However I got problem with IE. I can't load the page with <table></table> tag on it. IE can load the page with other tags <form>,<b>,<i>. .. with no problem. IE seems to ignore anything between <table></table> tag. I am using IE 8, and trying to load a page with <table> tag into a <div></div>. I don't get any problem with <table> tag in FireFox.
This is my js for ajax:
Thank you
This is my js for ajax:
Code:
function loadPage(url,pageLoaderDivID)
{
if (window.XMLHttpRequest)
{
xmlObj = new XMLHttpRequest();
}
else
{
xmlObj = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlObj.onreadystatechange=function()
{
if (xmlObj.readyState==4 && xmlObj.status==200) //4 = loaded, 200 = ok, 400 = fail
{
document.getElementById(pageLoaderDivID).innerHTML = xmlObj.responseText;
//document.getElementById("loadingCheck").innerHTML = '';
}
}
xmlObj.open("POST",url,true);
xmlObj.send();
}
Comment