Question

Document is null or not an object

Asked by: apwbe

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>

                                  
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
305:
306:
307:
308:
309:
310:
311:
312:
313:
314:
315:
316:
317:
318:
319:
320:
321:
322:
323:
324:
325:
326:
327:
328:
329:
330:
331:
332:
333:
334:
335:
336:
337:
338:
339:
340:
341:
342:
343:
344:
345:
346:
347:
348:
349:
350:
351:
352:
353:
354:
355:
356:
357:
358:
359:
360:
361:
362:
363:
364:
365:
366:
367:
368:
369:
370:
371:
372:
373:
374:
375:
376:
377:
378:
379:
380:
381:
382:
383:
384:
385:
386:
387:
388:
389:
390:
391:
392:
393:
394:
395:
396:
397:
398:
399:
400:
401:
402:
403:
404:
405:
406:
407:
408:
409:
410:
411:
412:
413:
414:

Select allOpen in new window

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-04-27 at 09:16:05ID24358768
Tags

null

,

not an object

Topic

JavaScript Frameworks

Participating Experts
1
Points
250
Comments
4

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. default.htm
    How does one use default.htm in Lotus Notes/Domino 4.6 to create a homepage with multiple frames (ie in which directory must it be located and how is it called)?
  2. JScript for/in and QueryString
    Why doesn't this bit of JScript output the name of each item in the QueryString collection? (NT4, SP6a) for (qsItem in Request.QueryString) { Response.Write('<br>qsItem: ' + qsItem); } Justin
  3. Replace - JScript Version
    I need someone to translate the following code (VBScript) to JScript <% Dim Address Address = Request.Form("Address") Address = Replace(Address, vbCrLf, "<BR>") Address = Replace(Address, " ", "&nbsp;") %> Tha...
  4. Microsoft JScript runtime (0x800A01B6)
    I keep on getting this error message. Any sugguestions on how to fix? Error Type: Microsoft JScript runtime (0x800A01B6) Object doesn't support this property or method /login/VerifyUser.asp, line 7 <% function LoadUserInfo(username_input) { var objConn = Serve...
  5. Microsoft JScript runtime error:is null or not an object
    Experts i am using a User control that has a label and a texbox button.Basically user control for search functionality.Iin another page named Transaction.aspx where i am using this ucl i want the textbox of the usercontrol to have focus when the page is loaded. So i added thi...
  6. JScript Error  "Microsoft Jscript runtime error: top.help…
    The company I work for recently bought an apartment complex that was set up to use wireless Mac Address filtering. Each apartment has their own wireless router. Now, what they have done is the created this little program which would allow anybody to add MAC addresses. All ...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: jwmcpeakPosted on 2009-04-27 at 10:50:10ID: 24243990

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

 

by: apwbePosted on 2009-04-27 at 13:05:03ID: 24245172

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";

 

by: jwmcpeakPosted on 2009-04-27 at 13:34:41ID: 24245414

It looks like the document's load event is firing before the table is written into the page. Remove the onload event hanlder from the opening body tag and call the setToolPic() function at the end of the script block within the body. Like this:

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>');
 
setToolPic(parent.MapFrame.modeBlurb); // call setToolPic()
</SCRIPT>

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:

Select allOpen in new window

 

by: apwbePosted on 2009-04-27 at 17:13:56ID: 31575037

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

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...