Having it on your server helped diagnose. The url had [program] in it. If you replace the line below in the javascript it should work. Now it will know what program to call

document.location = "/cgi-bin/mapserv.exe?" + "program=/cgi-bin/mapserv.exe&zoomsize=2&layer=tidestations&layer=countries&layer=states&map=c:\inetpub\wwwroot\mapdocs\tester.map";

Richard C Orth


Gary Watry wrote:

Hi Rich

Here is where I am at, If you can give me any ideas.
The working site is http://indianocean.coaps.fsu.edu/httpdocs/indextest.html

If I use indextest.html to initialize tidestationtest.html with a mouse
click it all works

If I use test2.html(your script) I get further than I did in the past but
the only button that works is the help button, anywhere else and I get the
"The page cannot be found" error, I don't believe it is a IIS issue or the
first way should not work.
Am I missing something (like a var or piece of code) in the initialization
of tidestationtest.html that is in the Indextest.html but not present if I
try auto initialization.

______________________________________________________________
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: [EMAIL PROTECTED]


-----Original Message-----
From: Richard Orth - osmoGIS Incorporated [mailto:[EMAIL PROTECTED] Sent: Thursday, November 17, 2005 2:14 PM
To: Gary Watry; [email protected]
Subject: Re: [UMN_MAPSERVER-USERS] A little help please

It may be fouling because of the full path. Try using

map=mapdocs\tester.map

or the same path used for the template in your .map file.
I don't think its an IIS specific problem because I tested both on IIS

Hope this helps.

Richard C Orth

Gary Watry wrote:

I tried both the Javascript and Html only solution. The javascript works
better and it does open a image of the site but when I click on any of the
buttons I get
-----------------------------------------------------
The page cannot be found
The page you are looking for might have been removed, had its name changed,
or is temporarily unavailable.

Please try the following:

  * Make sure that the Web site address displayed in the address bar of
your browser is spelled and formatted correctly.
  * If you reached this page by clicking a link, contact the Web site
administrator to alert them that the link is incorrectly formatted.
  * Click the Back button to try another link.

HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)
----------------------------------------

I assume this is an IIS problem, any suggests?

On Mon, 7 Nov 2005 23:29:50 -0500, Richard Orth - osmoGIS Incorporated
<[EMAIL PROTECTED]> wrote:



An initialization string must come from somewhere. It tells the service
where to start, which map file to use, layers to start with, etc. For
auto-starting your map service you have at least two options.
1. A javascript redirector. just place the following code in its own file:
<pre>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<html>
<head>
<title>Welcome to ...</title>
<script type="text/javascript" language="JavaScript">
function DoMe() {
document.location = "/cgi-bin/mapserv.exe?" +
"zoomsize=2&layer=tidestations&layer=countries&layer=states&map=c:\inetpub
\wwwroot\mapdocs\tester.map";
}
</script>
</head>
<body onload="DoMe()">
<h1>One moment please...<br>Page Loading</h1>
</body>
</html>
</pre>

2. An HTML only solution. Just change the width and height values to fit
your service.
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<html>
<head>
<title>Welcome to ...</title>
</head>
<iframe width=600 height=400
src="/cgi-bin/mapserv.exe?zoomsize=2&layer=tidestations&layer=countries&la
yer=states&map=c:\inetpub\wwwroot\mapdocs\tester.map"></iframe>
</body>
</html>
</pre>
Hope this helps

Richard C Orth

Gary Watry wrote:

Here is a development site I am working on,

I have borrows button icons from Canada, and most of the borrowed code
comes from the tutorials, or is noted in the source code.

http://indianocean.coaps.fsu.edu/httpdocs/tester.html

The two issues are sort of related.

1. I would like to have just one page, so I don't have the
initialization page like I currently do. What is this done in and
where does the initialization code from tester.html go? Does it get
put into the tester1.html file?

2. I want to put the little clip or animation that tells people to
wait while the program maps are loading. For example like on the
Canadian site


http://atlas.gc.ca/site/english/maps/environment/naturalhazards/majorforest
fires


Any thoughts would be appreciated?

I am a GIS user/administrator getting into Open Source programming and
can use any help I can get

Thanks

______________________________________________________________

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: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>



Reply via email to