Having trouble with running a demo

Daniel Goetz madprof at GMX.CH
Fri Jun 23 00:47:17 PDT 2006


Hi Jie,

in my opinion you have to do the following:

at first you have to repalce "mapserv40" by "mapserv.exe" everywhere it appears in the index.html.

then you have to change "/usr/local/www/docs/mapserver_demos/workshop/itasca.map" in "/ms4w/apache/htdocs/workshop/itasca.map".

Also change "/mapserver_demos/workshop" in "/workshop"

Then create a directory called "tmp" in  c:/ms4w/apache/htdocs.

After you have done that change "/usr/local/www/docs/tmp/" in "/ms4w/apache/htdocs/tmp/".

Save your changes in the index.html, run your browser and go to http://localhost/workshop/index.html

Now the demo should work fine.

regards

Daniel


-------- Original-Nachricht --------
Datum: Thu, 22 Jun 2006 10:57:56 -0400
Von: Jie Tian <tian.jay at GMAIL.COM>
An: MAPSERVER-USERS at LISTS.UMN.EDU
Betreff: [UMN_MAPSERVER-USERS] Having trouble with running a demo

> >  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
> >

-- 


Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer



More information about the MapServer-users mailing list