pastorken
04-14-2006, 03:22 AM
I currently run a web site that uses a standard html type form to allow search of the mysql db
Typical set up
<FORM METHOD="POST" ACTION="returnlist.php">
<INPUT TYPE="HIDDEN" NAME="sort_by" VALUE="0">
<INPUT TYPE="HIDDEN" NAME="exact_match">
<SELECT NAME="CITY">
<OPTION VALUE="STATE">Texas</OPTION>
<INPUT TYPE="SUBMIT" VALUE="Submit Search"></FORM>
This results in a display of all Texas listlings on the db.
I want to use a FLASH US map.swf that is displayed with a common javascript enabled ISMAP to allow a person to mouseover the state and click to see the state listings.
Thus in the polygon's HREF field, what javascripting is needed to
load the variables and using onClick submit the form passing those variables properly?
The ismap is formulated like this
<script type="text/javascript">
<!--
function getImageMapXXXXXXX()
{
document.writeln('<map name="XXXXXXX" id="XXXXXX"><area shape="poly" coords="113,275,113,289,127,289,127,275,113,275" href="http://domainname.com/returnlist.php?sort_by=0?exact_match?state=HI"/>
How can I embed a javacript to handle the form sending of the variables ???
you answer will be most gratefully accepted.
ken
Typical set up
<FORM METHOD="POST" ACTION="returnlist.php">
<INPUT TYPE="HIDDEN" NAME="sort_by" VALUE="0">
<INPUT TYPE="HIDDEN" NAME="exact_match">
<SELECT NAME="CITY">
<OPTION VALUE="STATE">Texas</OPTION>
<INPUT TYPE="SUBMIT" VALUE="Submit Search"></FORM>
This results in a display of all Texas listlings on the db.
I want to use a FLASH US map.swf that is displayed with a common javascript enabled ISMAP to allow a person to mouseover the state and click to see the state listings.
Thus in the polygon's HREF field, what javascripting is needed to
load the variables and using onClick submit the form passing those variables properly?
The ismap is formulated like this
<script type="text/javascript">
<!--
function getImageMapXXXXXXX()
{
document.writeln('<map name="XXXXXXX" id="XXXXXX"><area shape="poly" coords="113,275,113,289,127,289,127,275,113,275" href="http://domainname.com/returnlist.php?sort_by=0?exact_match?state=HI"/>
How can I embed a javacript to handle the form sending of the variables ???
you answer will be most gratefully accepted.
ken