Having trouble with running a demo
Jie Tian
tian.jay at GMAIL.COM
Thu Jun 22 07:57:56 PDT 2006
> Hi friends,
>
> I am having trouble with running a demo. My working directory is
> C:\ms4w\Apache\htdocs\workshop. Detailed directory is shown in the
> attachment.
> All the data and the html files are in the folder 'workshop'. I am
> supposed to modify the index.hml file to get it work correctly.
> The html is like below:
>
>
> <html>
> <head>
> <title>MapServer Itasca Application</title>
> <script language="javascript">
> function submit_form() {
> var template = document.demo.map_web_template.options [
> document.demo.map_web_template.selectedIndex].value;
> if(template.indexOf("frame") != -1) document.demo.action = "
> frames.html";
> if(template.indexOf("dhtml") != -1) document.demo.action =
> "frames_dhtml.html";
> }
> </script>
> </head>
> <body bgcolor="#FFFFFF">
>
> <center><h2>MapServer Itasca Application</h2></center>
> <p><hr><p>
> This demonstration application will take you through various levels of
> complexity. Starting with a basic application that
> allows a user to pan/zoom and change layers we add:
> <ul>
> <li> dynamically configured scalebars
> <li> javascript-based panning
> <li> query results to a frame
> <li> and finally, a DHTML rubber-band zoom/query capabilty
> </ul>
> The base data is the old-reliable Itasca dataset that we know and
> love...
>
> <!-- EDIT THE FORM ACTION -->
> <form name="demo" method="GET" action="/cgi-bin/mapserv40"
> onSubmit="submit_form()">
>
> <input type="hidden" name="layer" value="lakespy2">
> <input type="hidden" name="layer" value="dlgstln2">
> <input type="hidden" name="zoomsize" value=2>
>
> <!-- EDIT THESE HIDDEN VARIABLES -->
> <input type="hidden" name="map"
> value="/usr/local/www/docs/mapserver_demos/workshop/itasca.map">
> <input type="hidden" name="program" value="/cgi-bin/mapserv40">
> <input type="hidden" name="root" value="/mapserver_demos/workshop">
> <input type="hidden" name="map_web_imagepath"
> value="/usr/local/www/docs/tmp/">
> <input type="hidden" name="map_web_imageurl" value="/tmp/">
>
> <select name="map_web_template" size="1">
> <option value="itasca_basic.html"> Basic Application
> <option value="itasca_adds_scalebar.html"> -- Adds
> second scalebar
> <option value="itasca_adds_pan.html"> -- Adds pan
> controls
> <option value="itasca_adds_frames.html"> -- Adds
> frames
> <option value="itasca_adds_dhtml.html"> -- Adds dhtml
> rubber-band box
> </select>
> <input type="submit" value="Initialize"></center>
>
> </form>
>
> <p><hr><p>
> </body>
> </html>
>
> I have tried all the ways to get it work. But I just couldn't get it right
> cuz I am not good at html. Hope I can get help from any of you.
> Thanks in advance.
>
>
> --
> Jie Tian
> Laboratory of Geographical Information & Spatial Analysis (LaGISA)
> Department of Geography, Queen's University
> Kingston, Ontario, Canada
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060622/1afeaeda/attachment.htm>
More information about the MapServer-users
mailing list