<html><body><div style="color:; background-color:; font-family:arial, helvetica, sans-serif;font-size:13px"><div>Hi all.</div><div>I'm just looking for some examples of using javascript with mapserver without using html templates. <br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;">I know that there are some libraries around like OpenLayers, but i wanna see what happens in background first and then move to use these libraries.</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;">This is what i have written which does not works: (i get a error saying MS_DEFAULT_MAPFILE_PATTERN validation failed )</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style:
normal;"><html><br><head><br></head><br> <script language="JavaScript"><br> function zoom(){<br> document.forms['mapserv'].imgxy.value = "400 200";<br> document.forms['mapserv'].zoom.value = 2;<br> document.forms['mapserv'].submit();<br><br> }<br> </script><br><body><br><h1> A Dynamic Map </h1><br><p></p><br><h3> use form to make map dynamic + scripting </h3><br> <form name="mapserv" method="GET" action="/cgi-bin/mapserv.exe"><br> <input type="hidden" name="imgxy" value="400 200"><br> <input type="hidden" name="map" value="[map]" /><br>
<input type="hidden" name="imgext" value="[mapext]" /><br> <input type="hidden" name="imgxy" value="[center]" /><br> <input type="hidden" name="zoomsize" value="2" /><br> <br> <input type="image" name="img" src="http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/ms101/htdocs/ms101.map&layers=all&mode=map" onclick="zoom()"/><br><br> </form><br><br></body></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;">Thanks in advance<br><html></div></div></body></html>