[Mapserver-users] Frames

Steve McCrone ms57 at streamyx.com
Mon Sep 8 18:56:40 PDT 2003


This is a multi-part message in MIME format.

--Boundary_(ID_J6O43FzkIfrHrHpCc96GVQ)
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: 7BIT

Hi All,

I've tried (with no luck) to implement a simple mapserver app. using frames, but since I am a novice in Javascript, I need your help.

I have a launching app called demo_init.html that contains - 

<form method=GET name = "mapserv" action="/cgi-bin/mapserv.exe">
<input type="hidden" name="map" value="C:\Inetpub\wwwroot\demo.map">
<input type="hidden" name="layer" value="roads">
<input type="hidden" name="zoomsize" value=2>
<input type="hidden" name="program" value="/cgi-bin/mapserv.exe">
<input type="hidden" name="map_web_imagepath" value="C:\inetpub\wwwroot\tmp\">
<input type="hidden" name="map_web_imageurl" value="/tmp/">
<center><input type="submit" value="Initialize"></center>

And I have the file Demo.html - 

<form method=GET action="[program]">
<INPUT NAME="img" TYPE="image" SRC="[img]" width=600 height=600 border=0>

and a few other mapserver lines like - 

<option value="roads" [roads_select]> Roads
<INPUT NAME="ref" TYPE="image" SRC="[ref]" border="0">

etc.

In my map file, I have - 

TEMPLATE Demo.html
=====================================
Now, I created a Main.html that has two frames (Left and Right)

<FRAMESET cols="230,*"> 
  <FRAME src="http://localhost/LeftFrame.html" name="Left" > 
  <FRAME src="http://localhost/Demo.html" name="Demo"> 
</FRAMESET> 

And changed the map file to - 
TEMPLATE Main.html
==================================

But this does not work. any help would be welcomed!

Thanks



 

--Boundary_(ID_J6O43FzkIfrHrHpCc96GVQ)
Content-type: text/html; charset=iso-8859-1
Content-transfer-encoding: 7BIT

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4134.600" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Hi All,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I've tried (with no luck) to implement a simple 
mapserver app. using frames, but since I am a novice in Javascript, I need your 
help.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have a launching app called demo_init.html that 
contains - </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><form method=GET name = "mapserv" 
action="/cgi-bin/mapserv.exe"></FONT></DIV>
<DIV><FONT face=Arial size=2><input type="hidden" name="map" 
value="C:\Inetpub\wwwroot\demo.map"><BR><input type="hidden" name="layer" 
value="roads"></FONT></DIV>
<DIV><FONT face=Arial size=2><input type="hidden" name="zoomsize" 
value=2><BR><input type="hidden" name="program" 
value="/cgi-bin/mapserv.exe"><BR><input type="hidden" 
name="map_web_imagepath" value="C:\inetpub\wwwroot\tmp\"><BR><input 
type="hidden" name="map_web_imageurl" value="/tmp/"></DIV>
<DIV><center><input type="submit" 
value="Initialize"></center></DIV>
<DIV> </DIV>
<DIV>And I have the file Demo.html - </DIV>
<DIV> </DIV>
<DIV><form method=GET action="[program]"><BR><INPUT NAME="img" 
TYPE="image" SRC="[img]" width=600 height=600 border=0></DIV>
<DIV> </DIV>
<DIV>and a few other mapserver lines like - </DIV>
<DIV> </DIV>
<DIV><option value="roads" [roads_select]> Roads<BR><INPUT NAME="ref" 
TYPE="image" SRC="[ref]" border="0"></DIV>
<DIV> </DIV>
<DIV>etc.</DIV>
<DIV> </DIV>
<DIV>In my map file, I have - </DIV>
<DIV> </DIV>
<DIV>TEMPLATE Demo.html<BR>=====================================</DIV>
<DIV>Now, I created a Main.html that has two frames (Left and Right)</DIV>
<DIV> </DIV>
<DIV><FRAMESET cols="230,*"> <BR>  <FRAME src="<A 
href="http://localhost/LeftFrame.html">http://localhost/LeftFrame.html</A>" 
name="Left" > <BR>  <FRAME src="<A 
href="http://localhost/Demo.html">http://localhost/Demo.html</A>" 
name="Demo"> <BR></FRAMESET> </DIV>
<DIV> </DIV>
<DIV>And changed the map file to - </DIV>
<DIV>TEMPLATE Main.html</DIV>
<DIV>==================================</DIV>
<DIV> </DIV>
<DIV>But this does not work. any help would be welcomed!</DIV>
<DIV> </DIV>
<DIV>Thanks<BR><BR></DIV>
<DIV><BR> </DIV></FONT></FONT></DIV></BODY></HTML>

--Boundary_(ID_J6O43FzkIfrHrHpCc96GVQ)--



More information about the MapServer-users mailing list