I have been browsing for a solution, I am using xmlHttpRequest to get a view using “readviewentries” latter to use it for Lucking the document according to Login Credential. This work correct in IE Browser, but issue with FireFox while debugging no value for “xmlHttpLO.status” and when opening the URL from FireFox browser getting exception (This XML file does not appear to have any style information associated with it. The document tree is shown below.)
Something found at forum to change {xmlHttpLO.overrideMimeType(‘text/xml’);} to over come style information issue but even those it’s not working, Hope some one can really pull me out. Thank’s in Advance!!!
getAJAXRequest();
function getAJAXRequest() {
var url = 'http://server/LockedDo-101316.nsf/locked?ReadViewEntries&StartKey=' + id + '&count=1';
if (window.XMLHttpRequest) {
xmlHttpLO = new XMLHttpRequest();
if(xmlHttpLO.overrideMimeType) { xmlHttpLO.overrideMimeType('text/xml');}
xmlHttpLO.open("GET", url, true);
xmlHttpLO.onreadystatechange = processAJAXReturn;
//xmlHttpLO.setRequestHeader("Content-Type", "text/xml; charset=utf-8");
//xmlHttpLO.setRequestHeader ("Content-Type", "application/x-www-form-urlencoded");
xmlHttpLO.send(null);
} else if (window.ActiveXObject) {
xmlHttpLO = new ActiveXObject("Msxml2.XMLHTTP");
if (xmlHttpLO) {
xmlHttpLO.onreadystatechange = processAJAXReturn;
xmlHttpLO.open("GET", url, true);
xmlHttpLO.send();
}
}
}
function processAJAXReturn() {
if (xmlHttpLO.readyState == 4) {
if (xmlHttpLO.status == 200) {
alert(xmlHttpLO.responseText);
} else {
alert("Issue retrieving the XML data:\n" + xmlHttpLO.statusText);
}
}
}