高分请教请教 chenyg2000(icerain) 上次没有弄清楚的问题!
oXsl = new ActiveXObject("Microsoft.XMLDOM")
oXsl.async = false
oXsl.load("/mail/admin.nsf/iNotes/Proxy/?OpenDocument&Form=s_ReadViewEntries&PresetFields=FolderName;($Inbox)&Start=1&Count=-1");
objNodeList = oXsl.documentElement.selectNodes("//viewentry");
var unreadCounter = 0 ;
for (var i=0; i<objNodeList.length; i++) {
if(objNodeList.item(i).getAttribute("unread")=="true")
unreadCounter ++;
}
alert(unreadCounter)
alert(objNodeList.length);
为什么我这里总是提示oXsl.documentElement为空或不是对象?我的IE已经是6.0.28的版本了,而且我找过其他的机器试过,同样的问题(我把这段代码放在JSHeader里面),恳请指教!