Forums
This topic is locked
Using Hotspots to Submit?
Posted 06 Dec 2001 14:36:49
1
has voted
06 Dec 2001 14:36:49 Russell Marshall posted:
I have a search page that includes a form containing a drop down box to select areas of the country and a submit button to submit the form.What I would like to do is use an image of the country with areas defined by hotspots.
Is it possible to use the hotspots to submit the form and pass an area variable (EG "North west" to the results page.
Many thank in anticipation.
Davrus
Replies
Replied 06 Dec 2001 17:45:18
06 Dec 2001 17:45:18 Joel Martinez replied:
you will have to use javascript to accomlpish this. to pass the parameter,
1. place a hidden form field on your page
2. create the hotspot. the link should look like this<pre id=code><font face=courier size=2 id=code>javascript:document.formName.HiddenFieldName.value='NorthWest';document.formName.submit();</font id=code></pre id=code>change the value of the "HiddenFieldName" appropriately for every hotspot.
Joel Martinez [ ]
----------
E-Commerce Concepts with Ultradev...pre-order yours at
www.basic-ultradev.com/ecomm_concepts/
1. place a hidden form field on your page
2. create the hotspot. the link should look like this<pre id=code><font face=courier size=2 id=code>javascript:document.formName.HiddenFieldName.value='NorthWest';document.formName.submit();</font id=code></pre id=code>change the value of the "HiddenFieldName" appropriately for every hotspot.
Joel Martinez [ ]
----------
E-Commerce Concepts with Ultradev...pre-order yours at
www.basic-ultradev.com/ecomm_concepts/