• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Image maps and other form elements

New Here ,
Feb 08, 2007 Feb 08, 2007

Copy link to clipboard

Copied

I have a server side image map application that works quite well. I decided that I wanted to pass more user-generated information than the coordinates of the click, specifically to add a set of radio buttons. I'm not sure how to get the value of the radio button along with the other stuff. Here is my initial html file:

<title>Map database - Costa Rica point pick</title>
<h3> Clicking any point on the map will find all maps at that point.</h3><br>
<INPUT type="radio" name="fuzzc" value="0"> Very precise   
<INPUT type="radio" name="fuzzc" value="3" checked> Some tolerance   
<INPUT type="radio" name="fuzzc" value="5"> Much tolerance<br>;
<a href="../pointpick.cfm?hgt=510&prjn=EQ&wid=467&left=-86&right=-82.3646&botdeg=8&topdeg=11.909&lr=deg"><IMG src="../picpics/costa_rica.gif" ismap width=467 height=510></A>

When it gets to the code in pickpoint.cfm that tries to get the calue of the radio button, I get

Element FUZZC is undefined in FORMS.

The error occurred in D:\inetpub\wwwroot\mapsCatalog\test\pointpick.cfm: line 160

158 : <cfset botdeg = #fixparam(URL.botdeg)#>
159 : <cfset fuzzd = abs(topdeg - botdeg) * (fuzzp / hgt)>
160 : <cfset fuzzq = forms.fuzzc>

I understand that this is happening because I'm trying to mix 2 types of parameter passing, but don't know how to get around it.

TOPICS
Advanced techniques

Views

191

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Feb 08, 2007 Feb 08, 2007

Copy link to clipboard

Copied

Try going with FORM.fuzzc Singular not plural FORM

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 08, 2007 Feb 08, 2007

Copy link to clipboard

Copied

LATEST
Thanks for catching that, but unfortunately, it wasn't enough to fix the problem.
I now get essentially the same thing:

Element FUZZC is undefined in FORMS.

The error occurred in D:\inetpub\wwwroot\mapsCatalog\test\pointpick.cfm: line 162

160 : <cfset botdeg = #fixparam(URL.botdeg)#>
161 : <cfset fuzzd = abs(topdeg - botdeg) * (fuzzp / hgt)>
162 : <cfset fuzzq = form.fuzzc>
163 : <cfset left = #fixparam(URL.left)#>
164 : <cfset right = #fixparam(URL.right)#>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation