Executing script from a form
I have a script that re-zooms the map that I can execute successfully
from a hyperlink:
<a href
="javascript:recenter(<%=rstemp("x")%>,<%=rstemp("y")%>,<%=rstemp("zoomlevel")%>,'map')"><%=rstemp("zoomspot")%></a>
I would also like to be able to execute the script from a drop-down
menu and I can't get it to go... In my code, I'm pulling records from a
database in vbscript and looping through the option values...
Can anybody see anything in my syntax that would cause this to fail?
<form method="POST" action="javascript:recenter">
<p><select size="1" name="D1">
<%do while not rstemp.eof %>
<option
value="(<%=rstemp("x")%>,<%=rstemp("y")%>,<%=rstemp("zoomlevel")%>,'map')">
<%=rstemp("street")&","&rstemp("city")%>
</option>
<%
rstemp.movenext
loop%>
</select><input type="submit" value="Submit" name="B1"></p>
</form>
0 Comments:
Yorum Gönder
<< Home