PROBLEM
As discussed on p.18 of the PDF document 'Customizing ArcIMS - HTML Viewer,' it is possible to control the initial display of the HTML Viewer by passing specific parameters through the URL address. For example, the following URL will set the active layer when the map is initially loaded:
Code:
http://host_name/website/website_name?ActiveLayer=2
The map parameters in the URL are ignored if the default document of your Web site is index.htm instead of default.htm. When a browser connecting to the website loads index.htm, this file simply directs the browser to load default.htm. However, it does not redirect the URL parameters along with it.
Code:
function sendIt() {
// this just redirects browser to default.htm
// Necessary for servers that default to index.htm
var webParams = document.location.search;
document.location = "default.htm"+webParams;
}
Code:
http://host_name/website/website_name/default.htm?ActiveLayer=2
Get help from ArcGIS experts
Download the Esri Support App