Link to home
Start Free TrialLog in
Avatar of apwbe
apwbeFlag for United States of America

asked on

Document is null or not an object

I have an application that is giving me a Microsoft jScript runtime error of " 'document.xxx' is null or not an object ". The xxx being the name of a function. The tool image is supposed to change depending on what is put here. During the error message, if I select OK and not to debug the application then runs fine until I load it again in my browser. Can anyone find a solution in my code?

The application can be seen at http://munimaps.muni.org/website/sweeping/default.htm

Browsers that have error checking turned off will probably not see the error.
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta http-equiv="imagetoolbar" content="false">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<HTML>
<HEAD>
	
	<SCRIPT LANGUAGE=JAVASCRIPT>
		var t = parent.MapFrame;
		document.writeln('<TITLE> </TITLE>');
		var lBreak = "<br>";
	   	var isSecond=true;
	   	var currModeName="zoomin";
	   	var version = navigator.appVersion;
		var browser = navigator.appName;
		//alert(browser);
		function revertToolPic() {
			// reset tool icons to non-set mode
			//alert(lastMode);
	   	    if (parent.MapFrame.useZoomIn) document.zoomin.src="images/zoominINT.gif";
			if (parent.MapFrame.useZoomOut) document.zoomout.src="images/zoomoutINT.gif";
			if (parent.MapFrame.useIdentify) document.identify.src="images/identify_1.gif";
			if (parent.MapFrame.usePan) document.pan.src="images/panINT.gif";
			if (parent.MapFrame.useMeasure) document.measure.src="images/measure_1.gif";
			if (parent.MapFrame.useSelect) {
				document.rect.src="images/select_rect_1.gif";
				document.line.src="images/select_1.gif";
			}
			if (parent.MapFrame.useBufferShape) document.buffershape.src="images/buffershape_1.gif";
			if (parent.MapFrame.useHyperLink) document.hyperlink.src="images/hotlink_1.gif";
			if (parent.MapFrame.useHyperLinkAny) document.hyperlink.src="images/hotlink_1.gif";
			if (parent.MapFrame.useIdentifyAll) document.identifyall.src="images/identifyall_1.gif";
	   }
	   function setToolPic(functName) {
	   		// set clicked button icon to set mode
	   		//if (functName!=parent.MapFrame.modeName) {
			   	revertToolPic();
				parent.MapFrame.focus();
				//alert(functName);
			  	if (functName=="Zoom In") {
					document.zoomin.src="images/zoominINTsel.gif";
				} else if (functName=="Zoom Out") {
					document.zoomout.src="images/zoomoutINTsel.gif";
				} else if (functName=="Identify") {
					document.identify.src="images/identify_2.gif";
				} else if (functName=="Pan") {
					document.pan.src="images/panINTsel.gif";
				} else if (functName=="Measure") {
					document.measure.src="images/measure_2.gif";
				} else if (functName=="Select Rectangle") {
					document.rect.src="images/select_rect_2.gif";
				} else if (functName=="Buffer Shape") {
					document.buffershape.src="images/buffershape_2.gif";
				} else if (functName=="Select Line/Polygon") {
					document.line.src="images/select_2.gif";
				} else if (functName=="HyperLink") {
					document.hyperlink.src="images/hotlink_2.gif";
				} else if (functName=="Identify All") {
						document.identifyall.src="images/identifyall_2.gif";
				}
			//}
		}
		
		function openGeoNetwork() {
			var Win1 = window.open("http://www.geographynetwork.com","","scrollbars,resizable,toolbar,width=750,height=580");
		}
	   
	</SCRIPT>
</HEAD>
<BODY background="images/blue_background.gif" TEXT="Black" LINK="blue" VLINK="black" LEFTMARGIN=0 TOPMARGIN=0 RIGHTMARGIN=0 ALINK="black" onload="setToolPic(parent.MapFrame.modeBlurb)">
	<DIV ALIGN="center">
		<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="CENTER" VALIGN="MIDDLE" BGCOLOR="ffffff" >
		
			<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript1.2">
				document.write('<tr>');	
				if ((parent.MapFrame.hasTOC) && (parent.MapFrame.aimsLegendPresent)) {
					// Legend toggle. . . requires aimsLegend.js
					document.write('<td align="center" valign="middle">');
					document.write('<img src="images/togglelegend.gif" width=16 height=16 hspace=1 vspace=0 border=0 alt=" ' + t.buttonList[14] + '" name="legend" onmousedown="parent.MapFrame.clickFunction(\'legend\');" onmouseover="window.status=\' ' + t.buttonList[14] + '\'">');
					isSecond = !isSecond;
					document.writeln('</td>');
					if (isSecond) document.write('</tr><tr>');
				}
				if (parent.MapFrame.hasOVMap) {
					// Overview Map toggle . . . requires overview map
					document.write('<td align="center" valign="middle">');
					document.write('<img src="images/overview_html.gif" width=16 height=16 hspace=1 vspace=0 border=0 alt=" ' + t.buttonList[15] + '" name="refmap" onmousedown="parent.MapFrame.toggleOVMap();" onmouseover="window.status=\' ' + t.buttonList[15] + '\'">');
					isSecond = !isSecond;
					document.writeln('</td>');
					if (isSecond) document.write('</tr><tr>');
				}
				if (parent.MapFrame.useZoomIn) {
					// Zoom In . . . requires aimsNavigation.js
					document.write('<td align="center" valign="middle">');
					document.write('<img src="images/zoominINT.gif" width="120" height="30" hspace="0" vspace="0" border="0" alt="Zoom In" name="zoomin" onmousedown="parent.MapFrame.clickFunction(\'zoomin\'); setToolPic(\'Zoom In\');" onmouseover="window.status=\' ' +  '\'">');
					isSecond = !isSecond;
					document.writeln('</td></tr><tr>');
					if (isSecond) document.write('</tr><tr>');
				}	
				if (parent.MapFrame.useZoomOut) {
					// Zoom Out . . . requires aimsNavigation.js
					document.write('<td align="center" valign="middle">');
					document.write('<img src="images/zoomoutINT.gif" width=120 height=30 hspace=0 vspace=0 border=0 alt="Zoom Out" name="zoomout" onmousedown="parent.MapFrame.clickFunction(\'zoomout\'); setToolPic(\'Zoom Out\');" onmouseover="window.status=\' ' +  '\'">');
					isSecond = !isSecond;
					document.writeln('</td></tr><tr>');
					if (isSecond) document.write('</tr><tr>');
				}	
				if (parent.MapFrame.useFullExtent) {
					// Full Extennt . . . requires amisLayers.js
					document.write('<td align="center" valign="middle">');	
					document.write('<img src="images/fullextentINT.gif" width=120 height=30 hspace=0 vspace=0 border=0 alt="See Entire Map" onmousedown="parent.MapFrame.clickFunction(\'fullextent\');" onmouseover="window.status=\' ' + t.buttonList[18] + '\'">');
					isSecond = !isSecond
					document.writeln('</td></tr><tr>');
					if (isSecond) document.write('</tr><tr>');
				}
 
				if (parent.MapFrame.usePan) {
					// Pan Button . . . requires aimsNavigation.js
					document.write('<td align="center" valign="middle">');
					document.write('<img <img src="images/panINT.gif" width=120 height=30 hspace=0 vspace=0 border=0 alt="Pan" name="pan" onmousedown="parent.MapFrame.clickFunction(\'pan\'); setToolPic(\'Pan\');" onmouseover="window.status=\' ' +  '\'">');
					isSecond = !isSecond
					document.writeln('</td>');
					if (isSecond) document.write('</tr><tr>');
					
				}		
					
				if (parent.MapFrame.useZoomActive) {
					// Zoom to Active Layer . . . requires aimsLayers.js
					document.write('<td align="center" valign="middle">');
					document.write('<img src="images/zoomactive_1.gif" width=16 height=16 hspace=1 vspace=1 border=0 alt=" ' + t.buttonList[19] + '" onmousedown="parent.MapFrame.clickFunction(\'zoomactive\');" onmouseover="window.status=\' ' + t.buttonList[19] + '\'">');
					isSecond = !isSecond
					document.writeln('</td>');
					if (isSecond) document.write('</tr><tr>');
				}	
				
				if (parent.MapFrame.useZoomLast) {
					// Zoom to previous extent . . . requires aimsLayers.js
					document.write('<td align="center" valign="middle">');
					document.write('<img src="images/zoomlast.gif" width=16 height=16 hspace=1 vspace=1 border=0 alt=" ' + t.buttonList[20] + '" onmousedown="parent.MapFrame.clickFunction(\'zoomlast\');" onmouseover="window.status=\' ' + t.buttonList[20] + '\'">');
					isSecond = !isSecond
					document.writeln('</td></tr><tr>');
					if (isSecond) document.write('</tr><tr>');
				}	
 
					
				if (parent.MapFrame.usePanNorth) {
					// Pan North . . . requires aimsNavigation.js
					document.write('<td align="center" valign="middle">');
					document.write('<img src="images/pan_north.gif" width=16 height=16 hspace=1 vspace=1 border=0 alt=" ' + t.buttonList[22] + '" onmousedown="parent.MapFrame.panButton(2);" onmouseover="window.status=\' ' + t.buttonList[22] + '\'">');
					isSecond = !isSecond
					document.writeln('</td>');
					if (isSecond) document.write('</tr><tr>');
						
				}
				
				if (parent.MapFrame.usePanSouth) {
					// Pan South . . . requires aimsNavigation.js
					document.write('<td align="center" valign="middle">');
					document.write('<img src="images/pan_south.gif" width=16 height=16 hspace=1 vspace=1 border=0 alt=" ' + t.buttonList[23] + '" onmousedown="parent.MapFrame.panButton(4);" onmouseover="window.status=\' ' + t.buttonList[23] + '\'">');
					isSecond = !isSecond
					document.writeln('</td>');
					if (isSecond) document.write('</tr><tr>');
				}	
					
				if (parent.MapFrame.usePanWest) {
					// Pan West . . . requires aimsNavigation.js
					document.write('<td align="center" valign="middle">');
					document.write('<img src="images/pan_west.gif" width=16 height=16 hspace=1 vspace=1 border=0 alt=" ' + t.buttonList[24] + '" onmousedown="parent.MapFrame.panButton(1);" onmouseover="window.status=\' ' + t.buttonList[24] + '\'">');
					isSecond = !isSecond
					document.writeln('</td>');
					if (isSecond) document.write('</tr><tr>');
				}
					
				if (parent.MapFrame.usePanEast) {
					// Pan East . . . requires aimsNavigation.js
					document.write('<td align="center" valign="middle">');
					document.write('<img src="images/pan_east.gif" width=16 height=16 hspace=1 vspace=1 border=0 alt=" ' + t.buttonList[25] + '" onmousedown="parent.MapFrame.panButton(3);" onmouseover="window.status=\' ' + t.buttonList[25] + '\'">');
					isSecond = !isSecond
					document.writeln('</td>');
					if (isSecond) document.write('</tr><tr>');
				}	
					// only one of these next two (useHyperLink or useHyperLinkAny) can be true - useHyperLink takes priority 
				if (parent.MapFrame.useHyperLink) {
					// HyperLink . . . requires aimsIdentify.js
					document.write('<td align="center" valign="middle">');
					document.write('<img src="images/hotlink.gif" width=16 height=16 hspace=1 vspace=1 border=0 alt=" ' + t.buttonList[26] + '" name="hyperlink" onmousedown="parent.MapFrame.clickFunction(\'hyperlink\'); setToolPic(\'HyperLink\');" onmouseover="window.status=\' ' + t.buttonList[26] + '\'">');
					isSecond = !isSecond
					document.writeln('</td>');
					if (isSecond) document.write('</tr><tr>');
				} 
				if (parent.MapFrame.useHyperLinkAny) {
					// HyperLink . . . requires aimsIdentify.js
					document.write('<td align="center" valign="middle">');
					document.write('<img src="images/hotlink.gif" width=16 height=16 hspace=1 vspace=1 border=0 alt=" ' + t.buttonList[26] + '" name="hyperlink" onmousedown="parent.MapFrame.clickFunction(\'hyperlinkany\'); setToolPic(\'HyperLink\');" onmouseover="window.status=\' ' + t.buttonList[26] + '\'">');
					isSecond = !isSecond
					document.writeln('</td>');
					if (isSecond) document.write('</tr><tr>');
				}	
					// only one of these next two (useIdentify or useIdentifyAll) can be true - useIdentify takes priority 
				if (parent.MapFrame.useIdentify) {
					// Identify . . . requires aimsIdentify.js
					document.write('<td align="center" valign="middle">');
					document.write('<img src="images/identify_1.gif" width=16 height=16 hspace=1 vspace=1 border=0 alt=" ' + t.buttonList[27] + '" name="identify" onmousedown="parent.MapFrame.clickFunction(\'identify\'); setToolPic(\'Identify\');" onmouseover="window.status=\' ' + t.buttonList[27] + '\'">');
					isSecond = !isSecond
					document.writeln('</td>');
					if (isSecond) document.write('</tr><tr>');
				}	
					
			    if (parent.MapFrame.useIdentifyAll) {
					// Identify All - identify on all visible feature layers. . . drill down
					document.write('<td align="center" valign="middle">');
					document.write('<img src="images/identifyall_1.gif" width=16 height=16 hspace=1 vspace=1 border=0 alt="' + t.modeList[20] + '" name="identifyall" onmousedown="parent.MapFrame.clickFunction(\'identifyall\'); setToolPic(\'Identify All\');" onmouseover="window.status=\'' + t.modeList[20] + '\'">');
					isSecond = !isSecond
					document.writeln('</td>');
					if (isSecond) document.write('</tr><tr>');
				}
					
				//if ((parent.MapFrame.useQuery) && (version.indexOf("MSIE 5")==-1)) {
				if (parent.MapFrame.useQuery) {
					// Query . . . requires aimsQuery.js
					// IE 5.0 has big problems with the query stuff
					document.write('<td align="center" valign="middle">');
					document.write('<img src="images/query_1.gif" width=16 height=16 hspace=1 vspace=1 border=0 alt=" ' + t.buttonList[28] + '" onmousedown="parent.MapFrame.clickFunction(\'query\'); setToolPic(\'ClearOut\');" onmouseover="window.status=\' ' + t.buttonList[28] + '\'">');
					isSecond = !isSecond
					document.writeln('</td>');
					if (isSecond) document.write('</tr><tr>');
				}	
					
				if (parent.MapFrame.useStoredQuery) {
					// Search . . . requires aimsQuery.js
					document.write('<td align="center" valign="middle">');
					document.write('<img src="images/search.gif" width=16 height=16 hspace=1 vspace=1 border=0 alt=" ' + t.buttonList[29] + '" onmousedown="parent.MapFrame.clickFunction(\'storedquery\'); setToolPic(\'ClearOut\');" onmouseover="window.status=\' ' + t.buttonList[29] + '\'">');
					isSecond = !isSecond
					document.writeln('</td>');
					if (isSecond) document.write('</tr><tr>');
				}	
					
				if (parent.MapFrame.useFind) {
					// Find . . . requires aimsQuery.js
					document.write('<td align="center" valign="middle">');
					document.write('<img src="images/find_1.gif" width=16 height=16 hspace=1 vspace=1 border=0 alt=" ' + t.buttonList[30] + '" onmousedown="parent.MapFrame.clickFunction(\'find\'); setToolPic(\'ClearOut\');" onmouseover="window.status=\' ' + t.buttonList[30] + '\'">');
					isSecond = !isSecond
					document.writeln('</td>');
					if (isSecond) document.write('</tr><tr>');
				}	
					
				if (parent.MapFrame.useMeasure) {
					// Measure
					document.write('<td align="center" valign="middle">');
					document.write('<img src="images/measure_1.gif" width=16 height=16 hspace=1 vspace=1 border=0 alt=" ' + t.buttonList[31] + '" name="measure" onmousedown="parent.MapFrame.clickFunction(\'measure\'); setToolPic(\'Measure\');" onmouseover="window.status=\' ' + t.buttonList[31] + '\'">');
					isSecond = !isSecond
					document.writeln('</td>');
					if (isSecond) document.write('</tr><tr>');
				}	
					
				if (parent.MapFrame.useSetUnits) {
					// Set Units
					document.write('<td align="center" valign="middle">');
					document.write('<img src="images/setunits.gif" width=16 height=16 hspace=1 vspace=1 border=0 alt=" ' + t.buttonList[32] + '" onmousedown="parent.MapFrame.clickFunction(\'setunits\');" onmouseover="window.status=\' ' + t.buttonList[32] + '\'">');
					isSecond = !isSecond
					document.writeln('</td>');
					if (isSecond) document.write('</tr><tr>');
				}	
			
				if (parent.MapFrame.useBuffer) {
					// Buffer . . . requires aimsBuffer.js
					document.write('<td align="center" valign="middle">');
					document.write('<img src="images/buffer_1.gif" width=16 height=16 hspace=1 vspace=1 border=0 alt=" ' + t.buttonList[33] + '" name="buffer" onmousedown="parent.MapFrame.clickFunction(\'buffer\'); setToolPic(\'Buffer\');" onmouseover="window.status=\' ' + t.buttonList[33] + '\'">');
					isSecond = !isSecond
					document.writeln('</td>');
					if (isSecond) document.write('</tr><tr>');
				}	
 
				if (parent.MapFrame.useSelect) {
					// Graphic Selection tools . . . requires aimsSelect.js
					document.write('<td align="center" valign="middle">');
					document.write('<img src="images/select_rect_1.gif" width=16 height=16 hspace=1 vspace=1 border=0 alt=" ' + t.buttonList[34] + '" name="rect" onmousedown="parent.MapFrame.clickFunction(\'selectbox\'); setToolPic(\'Select Rectangle\');" onmouseover="window.status=\' ' + t.buttonList[34] + '\'">');
					isSecond = !isSecond
					document.writeln('</td>');
					if (isSecond) document.write('</tr><tr>');
					document.write('<td align="center" valign="middle">');	
					document.write('<img src="images/select_1.gif" width=16 height=16 hspace=0 vspace=1 border=0 alt=" ' + t.buttonList[35] + '" name="line" onmousedown="parent.MapFrame.clickFunction(\'selectshape\'); setToolPic(\'Select Line/Polygon\');" onmouseover="window.status=\' ' + t.buttonList[35] + '\'">');
					isSecond = !isSecond
					document.writeln('</td>');
					if (isSecond) document.write('</tr><tr>');
				}	
				///*
				if (parent.MapFrame.useBufferShape) {
					// Buffer Shape. . . requires aimsSelect.js
					document.write('<td align="center" valign="middle">');
					document.write('<img src="images/buffershape_1.gif" width=16 height=16 hspace=1 vspace=1 border=0 alt="Buffer Shape" name="buffershape" onmousedown="parent.MapFrame.clickFunction(\'buffershape\'); setToolPic(\'Buffer Shape\');" onmouseover="window.status=\'Buffer Shape\'">');
					isSecond = !isSecond
					document.writeln('</td>');
					if (isSecond) document.write('</tr><tr>');
				}	
				//*/
			
				if (parent.MapFrame.useClearSelect) {
					// Clear selection . . . requires aimsIdentify.js
					document.write('<td align="center" valign="middle">');
					document.write('<img src="images/clearhighlight_1.gif" width=16 height=16 hspace=1 vspace=1 border=0 alt=" ' + t.buttonList[36] + '" onmousedown="parent.MapFrame.clearSelection();" onmouseover="window.status=\' ' + t.buttonList[36] + '\'">');
					isSecond = !isSecond
					document.writeln('</td>');
					if (isSecond) document.write('</tr><tr>');
				}
				if (parent.MapFrame.useGeocode) {
					// Geocode. . . requires aimsGeocode.js
					document.write('<td align="center" valign="middle">');
					document.write('<img src="images/geocode.gif" width=16 height=16 hspace=1 vspace=1 border=0 alt=" ' + t.buttonList[37] + '" onmousedown="parent.MapFrame.clickFunction(\'geocode\');" onmouseover="window.status=\' ' + t.buttonList[37] + '\'">');
					isSecond = !isSecond
					document.writeln('</td>');
					if (isSecond) document.write('</tr><tr>');
				}
				if (parent.MapFrame.usePrint) {
					// Print. . . requires aimsPrint.js
					document.write('<td align="center" valign="middle">');
					document.write('<img src="images/print_1.gif" width=16 height=16 hspace=1 vspace=1 border=0 alt=" ' + t.buttonList[38] + '" onmousedown="parent.MapFrame.clickFunction(\'print\');" onmouseover="window.status=\' ' + t.buttonList[38] + '\'">');
					isSecond = !isSecond
					document.writeln('</td>');
					if (isSecond) document.write('</tr><tr>');
				}
				if (parent.MapFrame.useExtract) {
					// Extract. . . zip and ship. . . requires aimsCustom.js
					document.write('<td align="center" valign="middle">');
					document.write('<img src="images/zipship.gif" width=16 height=16 hspace=1 vspace=1 border=0 alt=" ' + t.buttonList[39] + '" onmousedown="parent.MapFrame.clickFunction(\'extract\');" onmouseover="window.status=\' ' + t.buttonList[39] + '\'">');
					isSecond = !isSecond
					document.writeln('</td>');
					if (isSecond) document.write('</tr><tr>');
				}
				if (parent.MapFrame.allowOptions) {
					// Options. . . requiers aimsOptions.js... allowOptions is set to true in this file
					document.write('<td align="center" valign="middle">');
					document.write('<img src="images/wrench.gif" width=16 height=16 hspace=1 vspace=1 border=0 alt=" ' + t.buttonList[40] + '" onmousedown="parent.MapFrame.writeOptionForm();" onmouseover="window.status=\' ' + t.buttonList[40] + '\'">');
					isSecond = !isSecond
					document.writeln('</td>');
					if (isSecond) document.write('</tr><tr>');
				}
				if (parent.MapFrame.canLoad) {
					// Load MapService. . . requires aimsGeneric.js
					document.write('<td align="center" valign="middle">');
					document.write('<img src="images/open_1.gif" width=16 height=16 hspace=1 vspace=1 border=0 alt=" ' + t.buttonList[41] + '" onmousedown="parent.MapFrame.loadMapForm();" onmouseover="window.status=\' ' + t.buttonList[41] + '\'">');
					document.writeln('</td>');
				}
				//document.writeln('</tr>');
				//document.writeln('</TABLE>');
 
				
			</SCRIPT>	
<tr> 
      <td>
	     <p align="center"><br>
          <!-- ** legend graphic...comment out 1 of the 2 <img...> lines below for snow or sweeping -->
          <img src="images/legend_sweep.gif" width="125" height="50"> <br>
          <!--<img src="images/legend_snow.gif" width="92" height="50"> <br>-->
          
        <br><br>
		 <table width="99%" border="0" cellspacing="8" cellpadding="0" style="margin-left:10px;">
				  <tr>
            <td height="25" valign="top"><font face="Arial" size="2">
						<a href="http://webapps1.muni.org/pdpw/streetmaint/feedback/index.cfm" target="FormWindow"
						 onClick="window.open('http://webapps1.muni.org/pdpw/streetmaint/feedback/index.cfm','FormWindow','width=798,height=screen.availHeight,top=0,left=0,screenX=0,screenY=0,resizable,toolbar,scrollbars,status');return false;">
						 Feedback Form</a></font>						 
						 </td>
          </tr>
					
					<!--  ** Comment this <tr>....</tr> out for Plow Out, show link for Sweeping *only*  -->
		      <tr>					
            <td height="25" valign="top">
						<font face="Arial" size="2">
						<a href="http://www.muni.org/streets/SweepingProgram.cfm" target="_blank">
						Sweeping Program</a>
						</font>
						</td>
          </tr> 
					
          <tr>
            <td height="25" valign="top">
			<!-- ** Comment this out for Sweeping, show link for Plow Out only 
		  <font face="Arial" size="2"><a href="http://www.muni.org/streets/wintermaintenance.cfm" target="_new">
		  Winter Maintenance Maps & Info</a></font> -->
		  
		  
 
			 			<font face="Arial" size="2"><a href="contact_info.htm" target="_new">Contact Us</a> </font> </td>
          </tr>
        </table>  
		</p> 
        <table border="0" cellpadding="0" bordercolor="#808080" bordercolorlight="#C0C0C0" bordercolordark="#000000" align="center" width="95%">
          <tr>
 
<!-- ** legend text for SWEEPING map -->
          <td width="165" height="100">
		   	  <font face="Arial" size="1" color="#008080"> 
              The Municipality of Anchorage <a href="http://www.muni.org/streets" target="_top">Street Maintenance Division</a> Street Sweeping 
              Map provides the current status of sweeping. Street Maintenance 
              personnel update the map information as areas are swept.</font>
          </td>
 
<!-- ** legend text for SNOW PLOW OUT map
       		<td width="165" height="100"><font face="Arial" size="1" color="#008080"> 
						The Municipality of Anchorage Street Maintenance Plow Out 
						Map provides the current status of Plow Outs. Street Maintenance 
						personnel update the map as areas are cleared.</font>
           </td> -->
 
          </tr>
        </table>
      </td>
    </tr>
  </table>			
			
			
	</DIV>
</BODY>
</HTML>

Open in new window

Avatar of jwmcpeak
jwmcpeak
Flag of United States of America image

The methods aren't part of the document object. Instead of parent.MapFrame.document.pan() use parent.MapFrame.pan().
Avatar of apwbe

ASKER

jwmcpeak

This is the first line to error out. The code is in the first part of the "RevertToolPic()" function. How would you change this to reflect the code change you suggested? Or, would the change go somewhere else and if so where?

if (parent.MapFrame.useZoomOut) document.zoomout.src="images/zoomoutINT.gif";
ASKER CERTIFIED SOLUTION
Avatar of jwmcpeak
jwmcpeak
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of apwbe

ASKER

Thank you very much for your prompt solution to my problem. Keep up the good work.