help me with document.XMLDocument error
Hi, We have a web application that has written for IE...and it has got following function...I dont find any good way to rewrite this function with my limited javascript skills so that this works with firefox ...
function doPromptMessage(){
var rc = document.XMLDocument.documentElement.selectSingleNode("/RESPONSE/STATUS/RCODE");
var source = document.XMLDocument.documentElement.selectSingleNode("/RESPONSE/STATUS/SRC").nodeTypedValue;
if(rc.nodeTypedValue != 0){
rc = document.XMLDocument.documentElement.selectSingleNode("/RESPONSE/STATUS/DESC").nodeTypedValue;
document.getElementById("div1").textContent = "Error";
document.getElementById("div2").textContent = rc;
}else{
if(source == COMPOSEMSGSERVLET){
var replyValueArray = getCookieValue("ReplyCookie");
var forwardValueArray = getCookieValue("ForwardCookie");
var win1 = window;
if(replyValueArray != "" && replyValueArray[0] != "false" ||
forwardValueArray != "" && forwardValueArray[0] != "false"){
setCookieValue("ReplyCookie", new Array("false"));
setCookieValue("ForwardCookie", new Array("false"));
try{
if(window.opener.parent.middle.document.all.menuTitle.value == "MESSAGE"){
window.opener.parent.main.Summary();
}
}catch(e){
}finally{
}
window.close();
}else{
try{
if(window.opener.parent.middle.document.all.menuTitle.value == "MESSAGE"){
window.opener.parent.main.Summary();
}
}catch(e){
}finally{
}
window.close();
}
}
}
}
can someone please hep me rewriting this function
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks