Hey all you javascript masters,
Can someone clue in what I'm doing wrong? I am trying to take a comma separated list of data (4 values) and pass them to an existing function zoomToPlace().
The function itself works - I can do:
<a href="JavaScript:zoomToPlace(1,6,8,10)" target="mapFrame">Zoom to this feature</a>
with no problem. My problem arises when I try to pass other groups of comma seperated values to this function via a select box like the following...
<form name="form1" >
<select name="jumpmenu" onChange="JavaScript:zoomToPlace();">
<option>Jump to...</option>
<option value="2,5,7,9>Place 1</option>
<option value="4,7,3,11">Place 2</option>
</select>
</form>
I don't think I can show the function (it's copyrighted -- not by me), but i assure you that it is expecting 4 comma separated values.
I've looked and looked at faqs about this, but can't find anything on using multiple values.... Any thoughts?
Thanks!
gruvn
Can someone clue in what I'm doing wrong? I am trying to take a comma separated list of data (4 values) and pass them to an existing function zoomToPlace().
The function itself works - I can do:
<a href="JavaScript:zoomToPlace(1,6,8,10)" target="mapFrame">Zoom to this feature</a>
with no problem. My problem arises when I try to pass other groups of comma seperated values to this function via a select box like the following...
<form name="form1" >
<select name="jumpmenu" onChange="JavaScript:zoomToPlace();">
<option>Jump to...</option>
<option value="2,5,7,9>Place 1</option>
<option value="4,7,3,11">Place 2</option>
</select>
</form>
I don't think I can show the function (it's copyrighted -- not by me), but i assure you that it is expecting 4 comma separated values.
I've looked and looked at faqs about this, but can't find anything on using multiple values.... Any thoughts?
Thanks!
gruvn