Help with demo please II
Gary Watry
watry at COAPS.FSU.EDU
Thu Sep 29 13:15:07 PDT 2005
Okay it works in IE but not in Firefox, I will check netscape tomorrow but
here is my Index.html.
<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.select
edIndex].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 Test 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\mapserv.exe"
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="c:\inetpub\wwwroot\workshop\itasca.map">
<input type="hidden" name="program" value="\cgi-bin\mapserv.exe">
<input type="hidden" name="root" value="\workshop">
<input type="hidden" name="map_web_imagepath"
value="\inetpub\wwwroot\workshop\tmp\">
<input type="hidden" name="map_web_imageurl" value="\workshop\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 get a HTTP 404 error when I use Firefox, how do I make this site Universal
for all browsers?
______________________________________________________________
Gary L. Watry
GIS Coordinator
Center for Ocean-Atmospheric Prediction Studies
FSU / COAPS
Johnson Building, RM 215
2035 East Paul Dirac Drive
Tallahassee, Florida 32306-2840
E-Mail: watry at coaps.fsu.edu
-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On
Behalf Of Randy James
Sent: Thursday, September 29, 2005 3:49 PM
To: MAPSERVER-USERS at lists.umn.edu
Subject: Re: [UMN_MAPSERVER-USERS] Help with demo please II
I do not know about the other errors but this one i know a bit about:
> and the Page shows
> msLoadMap(): Unable to access file. (/workshop/itasca.map)
Windows uses \ for its directorys and you have / which is a unix thing.
Check
your your paths...
Randy
--- Gary Watry <watry at COAPS.FSU.EDU> wrote:
> When I run a File Monitor Program on the Win2003 Server, I get the
following
> using IE:
>
> 0.00030982 w3wp.exe:2412 IRP_MJ_CREATE
> C:\Inetpub\wwwroot\cgi-bin\mapserv.exe.Manifest NOT FOUND Options: Open
> Access: All
>
> 0.00007375 mapserv.exe:3684 FASTIO_QUERY_OPEN
> C:\Inetpub\wwwroot\cgi-bin\mapserv.exe.Local NOT FOUND Attributes: Error
>
> 0.00007236 mapserv.exe:3684 FASTIO_QUERY_OPEN
> C:\Inetpub\wwwroot\cgi-bin\mapserv.exe.Local\ NOT FOUND Attributes: Error
>
> 0.00009163 mapserv.exe:3684 FASTIO_QUERY_OPEN
> C:\Inetpub\wwwroot\cgi-bin\mapserv.exe.Local\ NOT FOUND Attributes: Error
>
> and the Page shows
> msLoadMap(): Unable to access file. (/workshop/itasca.map)
>
> Using Firefox, The file monitor shows
>
> 0.00028551 w3wp.exe:2412 IRP_MJ_CREATE
> C:\Inetpub\wwwroot\cgi-bin\mapserv.exe.Manifest NOT FOUND Options: Open
> Access: All
>
> 0.00006956 mapserv.exe:3984 FASTIO_QUERY_OPEN
> C:\Inetpub\wwwroot\cgi-bin\mapserv.exe.Local NOT FOUND Attributes: Error
>
> 0.00008968 mapserv.exe:3984 FASTIO_QUERY_OPEN
> C:\Inetpub\wwwroot\cgi-bin\mapserv.exe.Local\ NOT FOUND Attributes: Error
>
> 0.00009498 mapserv.exe:3984 FASTIO_QUERY_OPEN
> C:\Inetpub\wwwroot\cgi-bin\mapserv.exe.Local\ NOT FOUND Attributes: Error
>
> 0.00035479 w3wp.exe:2412 IRP_MJ_CREATE C:\Inetpub\wwwroot\favicon.ico NOT
> FOUND Options: Open Access: All
>
> and the Page shows
> msLoadMap(): Unable to access file. (/workshop/itasca.map)
>
> any Suggests?
>
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
More information about the MapServer-users
mailing list