ajax document.write问题
responseXML已经成功返回
但是在IE打印不出来表格,只能打印出来一个<table border="1">
代码如下
if(xmlHttp.status==200)
{
var xmlobj=xmlHttp.responseXML;
var elemDoc=xmlobj.getElementsByTagName("Album_Table");
if(document.body.firstChild!=null)
{
document.body.removeChild(document.body.firstChild);
}
// document.write('<form id="form" name="form" method="post" action="">');
document.write('<table border="1">');
document.write('<tr>');
document.write('<td>ID</td>');
document.write('<td>文件名</td>');
document.write('<td>图片名</td>');
document.write('</tr>');
for(var i=0;i<elemDoc.length;i++)
{
var Album_Table=elemDoc[i];
document.write('<tr><input type="hidden" name="hiddenAlbum" value='+Album_Table.getElementsByTagName("ALBUM_ID")[0].firstChild.data+'>');
document.write('<td><input type="checkbox" name="checkbox" id="ID_List" onclick="javascript:b()"></td>');
document.write('<td>'+Album_Table.getElementsByTagName("ALBUM_NAME")[0].firstChild.data+'</td>');
document.write('<td>'+Album_Table.getElementsByTagName("FILE_NAME")[0].firstChild.data+'</td>');
document.write('</tr>');
}
document.write('</table>');
document.write('<input type="button" value="删除" onclick="formsubmit(2)">');
// document.write('</form>');
document.close();
}