ERROR
The following error message occurs after clicking the Back button in the Web browser."Unable to display MapService after hitting back in the browser"
The HTML Viewer uses a variable called URL to store the URL location of the last image it received as a response from the ArcIMS server. If the value of this variable is null, an error displays.
Code:
case 1:
//alert ("Received:\n\n" + theReply);
var theURL = "";
theURL = getURL(theReply);
//alert(theURL);
if (theURL != "") {
getXYs(theReply);
document.theImage.src = theURL;
afterMapRefresh();
//window.onerror=resetError;
if (toolMode==3) {
moveLayer("theMap",hspc,vspc);
clipLayer2("theMap",0,0,iWidth,iHeight);
window.setTimeout('showLayer("theMap");',1000);
if (hasLayer("theMapClicks")) {
moveLayer("theMapClicks",hspc,vspc);
clipLayer2("theMapClicks",0,0,iWidth,iHeight);
}
}
}
else {
if (debugOn>0) {
alert(msgList[14] + "\n" + theReply);
} else {
alert(msgList[14] + theError);
}
.
..
...
.....
Code:
//alert(msgList[14] + theError);
Code:
parent.document.location="http://www.yourwebsite.com/website/<your_client>/";
Code:
case 1:
//alert ("Received:\n\n" + theReply);
var theURL = "";
theURL = getURL(theReply);
//alert(theURL);
if (theURL != "") {
getXYs(theReply);
document.theImage.src = theURL;
afterMapRefresh();
//window.onerror=resetError;
if (toolMode==3) {
moveLayer("theMap",hspc,vspc);
clipLayer2("theMap",0,0,iWidth,iHeight);
window.setTimeout('showLayer("theMap");',1000);
if (hasLayer("theMapClicks")) {
moveLayer("theMapClicks",hspc,vspc);
clipLayer2("theMapClicks",0,0,iWidth,iHeight);
}
}
}
else {
if (debugOn>0) {
alert(msgList[14] + "\n" + theReply);
} else {
//alert(msgList[14] + theError);
parent.document.location="http://www.yourwebsite.com/website/<your_client>/";
}
}
Article ID:000006600
Get help from ArcGIS experts
Download the Esri Support App