Page does not reload after selecting a image layer (checkbox) which is suppose to run some javascript.

RESOLVED INCOMPLETE

Status

Tech Evangelism Graveyard
English Other
RESOLVED INCOMPLETE
14 years ago
3 years ago

People

(Reporter: Karl Wyman, Unassigned)

Tracking

Details

(URL)

(Reporter)

Description

14 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040123
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040123

This bug may be related to B#191495.

When you go to this site, you will see a map in the right frame with a legend
(set of clickable icons) at the bottom of the page.  The left hand frame will
have the Regions logo.  If you click on the icon 'Imagery' (right most icon --
may be hard to see, for some reason this page also does not render properly
either) the left frame will refresh and show a list of 'Regional Imagery'.  If
you click any of the check boxes it is suppose to refresh the 'map' frame and
draw it with the 'imagery' selected.  However on Mozilla 1.6/1.7 (running either
Linux or Windows XP) _or_ Firefox v1.0 (on Windows XP, haven't installed it yet
under linux) nothing will happen.  Using Konqueror (under linux) or IE (under
Windows XP) it refreshes the map and fills it in with the imagery you selected.

BTW:  I am not associated with the Region of Waterloo or the company that
produces this map data; just an annoyed user :)

Here is the left hand frame with the javascript:
<HTML>
<HEAD>
	<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
//start of locator.htm			
		var cmdString = document.location.search;
		var cmdString2 = cmdString.toUpperCase();
		var pos = cmdString2.indexOf("TITLE=");
		var startpos = 0;
		var endpos = 0; 
		var theTitle = "GIS Locator";
		if (pos!=-1) {
			startpos = pos + 6;
			endpos = cmdString.indexOf("&",startpos);
			if (endpos==-1) endpos = cmdString.length;
			theTitle = cmdString.substring(startpos,endpos);
			theTitle = replacePlus(theTitle);
			theTitle = unescape(theTitle);
			
		}
		document.writeln("<TITLE>" + theTitle + "</TITLE>");
		
		function doIt() {
			MapFrame.useJava=false;
			MapFrame.dbSQLurl = MapFrame.getPath(document.location.pathname) +
"arcims_process.asp";
			MapFrame.dbAccessType="ASP";
			MapFrame.checkParams();
			//ToolFrame.document.location="toolbar.htm";
		}
		function replacePlus(inText) {
			var pos=9;
			while (pos != -1) {
				pos = inText.indexOf('+');
				if (pos!=-1) {
					var lastpos = inText.length;
					var midend = pos;
					var midstart = pos + 1;
					var leftSide = inText.substring(0,midend);
					var rightSide = inText.substring(midstart,lastpos);
					inText = leftSide + "%20" + rightSide;
				}
			}
			return inText;
		}
		function reloadApp() {
				document.location = "Locator.htm";
		}	
	</SCRIPT>

<META NAME="keywords" content="Region of Waterloo,Locator,on-line maps,online
maps,GIS,
	City of Kitchener,City of Waterloo, City of Cambridge">
<META NAME="description" content="Region of Waterloo Locator provides on-line
maps displaying
	Parcel and road information as well as aerial photography.">

</HEAD>

<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
	var browser = navigator.appName;
	var moreStuff = 'onresize="reloadApp()"';
	var theSize = "11%";
	if (browser=="Netscape") {
		moreStuff = 'onresize="reloadApp()"';
		theSize = "9%";
	}
	document.writeln('<FRAMESET ROWS="' + theSize +',*,32,0,0" FRAMESPACING="0"
onload="doIt()" BORDER=0 ' + moreStuff + '>');
</SCRIPT>

	<FRAME NAME="TopFrame" SRC="top.htm" MARGINWIDTH="0" MARGINHEIGHT="0"
SCROLLING="No" FRAMEBORDER="0"  NORESIZE>
	<FRAMESET COLS="25%,*" FRAMEBORDER=0 FRAMESPACING="0" BORDER=5
bordercolor=RGB(0,70,119)>

<!--		<FRAMESET Rows="*" BORDER=10 bordercolor="#082984">
			<FRAME NAME="MenuFrame" src="Menu.htm" scrolling=no FRAMEBORDER="no" >-->
		<FRAME NAME="TextFrame" SRC="Text.htm" MARGINWIDTH="0" MARGINHEIGHT="0"
SCROLLING="Auto" FRAMEBORDER="no" RESIZE="YES">
<!--		</FRAMESET>-->
		<FRAME NAME="MapFrame" SRC="MapFrame.htm" MARGINWIDTH="0" MARGINHEIGHT="0"
SCROLLING="No" FRAMEBORDER="no" RESIZE="YES">
	</FRAMESET>
	<FRAMESET COLS="25%,*" FRAMEBORDER="0" BORDER=0 FRAMESPACING="0">
		<FRAME NAME="ModeFrame" SRC="blank.htm" MARGINWIDTH="0" MARGINHEIGHT="0"
SCROLLING="No" FRAMEBORDER="No" NORESIZE>
		<FRAME NAME="toolbarFrame" SRC="bottomright.htm" MARGINWIDTH="0"
MARGINHEIGHT="0" SCROLLING="no" FRAMEBORDER="No" NORESIZE>
	</FRAMESET>
	<FRAMESET COLS="*,*">

		<FRAME NAME="PostFrame" SRC="jsForm.htm" MARGINWIDTH="0" MARGINHEIGHT="0"
SCROLLING="No" FRAMEBORDER="0" NORESIZE FRAMESPACING="0" BORDER="0">
		<FRAME NAME="DBFrame" SRC="aspForm.asp" MARGINWIDTH="0" MARGINHEIGHT="0"
SCROLLING="No" FRAMEBORDER="0" NORESIZE FRAMESPACING="0" BORDER="0">
	</FRAMESET>
	<frameset cols="0,0">
		<frame name="HiddenFrame" src="blank.htm">
	</frameset>
</FRAMESET>

<BODY>

<NOFRAMES>

<P>
</NOFRAMES>

</BODY>
</HTML>


Reproducible: Always
Steps to Reproduce:
1.Go to the site 'http://locator.region.waterloo.on.ca/Locator.htm'
2.Click on the bottom right icon 'Imagery'
3.Select a 'Regional Imagery' in the left frame


Actual Results:  
Nothing; the page does not refresh nor does the selected imagery get overlayed
on the map.

Expected Results:  
The page should refresh and the selected imagery should get overlayed on the map.
no java involved -> dom
Assignee: ashuk → general
Component: Java APIs for DOM → DOM
QA Contact: avm → ian
This needs a minimal testase, but it looks like the usual -- referencing a
checkbox by raw name instead of document.formwhatever.name.
Keywords: qawanted
This is an automated message, with ID "auto-resolve01".

This bug has had no comments for a long time. Statistically, we have found that
bug reports that have not been confirmed by a second user after three months are
highly unlikely to be the source of a fix to the code.

While your input is very important to us, our resources are limited and so we
are asking for your help in focussing our efforts. If you can still reproduce
this problem in the latest version of the product (see below for how to obtain a
copy) or, for feature requests, if it's not present in the latest version and
you still believe we should implement it, please visit the URL of this bug
(given at the top of this mail) and add a comment to that effect, giving more
reproduction information if you have it.

If it is not a problem any longer, you need take no action. If this bug is not
changed in any way in the next two weeks, it will be automatically resolved.
Thank you for your help in this matter.

The latest beta releases can be obtained from:
Firefox:     http://www.mozilla.org/projects/firefox/
Thunderbird: http://www.mozilla.org/products/thunderbird/releases/1.5beta1.html
Seamonkey:   http://www.mozilla.org/projects/seamonkey/

Comment 4

13 years ago
seems to be the case
the locator page is missing <form> </form> tags, and lines such as #40 should be
changed from
   if (chkMEIS.checked)
to
   if (document.forms['FORMNAME'].chkMEIS.checked))

reporter (Karl), can you try and contact the web site about this problem?
Assignee: general → english-other
Component: DOM → English Other
Keywords: qawanted
Product: Core → Tech Evangelism
QA Contact: ian → english-other
Version: Trunk → unspecified

Updated

10 years ago
Status: UNCONFIRMED → NEW
Ever confirmed: true

Comment 5

8 years ago
INCOMPLETE due to lack of activity since the end of 2009.

If someone is willing to investigate the issues raised in this bug to determine whether they still exist, *and* work with the site in question to fix any existing issues, please feel free to re-open and assign to yourself.

Sorry for the bugspam; filter on "NO MORE PRE-2010 TE BUGS" to remove.
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → INCOMPLETE
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.