[Mapserver-users] Frames

Steve McCrone ms57 at streamyx.com
Mon Sep 8 21:56:40 EDT 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>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&lt;form method=GET name = "mapserv" 
action="/cgi-bin/mapserv.exe"&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>&lt;input type="hidden" name="map" 
value="C:\Inetpub\wwwroot\demo.map"&gt;<BR>&lt;input type="hidden" name="layer" 
value="roads"&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>&lt;input type="hidden" name="zoomsize" 
value=2&gt;<BR>&lt;input type="hidden" name="program" 
value="/cgi-bin/mapserv.exe"&gt;<BR>&lt;input type="hidden" 
name="map_web_imagepath" value="C:\inetpub\wwwroot\tmp\"&gt;<BR>&lt;input 
type="hidden" name="map_web_imageurl" value="/tmp/"&gt;</DIV>
<DIV>&lt;center&gt;&lt;input type="submit" 
value="Initialize"&gt;&lt;/center&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>And I have the file Demo.html - </DIV>
<DIV>&nbsp;</DIV>
<DIV>&lt;form method=GET action="[program]"&gt;<BR>&lt;INPUT NAME="img" 
TYPE="image" SRC="[img]" width=600 height=600 border=0&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>and a few other mapserver lines like - </DIV>
<DIV>&nbsp;</DIV>
<DIV>&lt;option value="roads" [roads_select]&gt; Roads<BR>&lt;INPUT NAME="ref" 
TYPE="image" SRC="[ref]" border="0"&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>etc.</DIV>
<DIV>&nbsp;</DIV>
<DIV>In my map file, I have - </DIV>
<DIV>&nbsp;</DIV>
<DIV>TEMPLATE Demo.html<BR>=====================================</DIV>
<DIV>Now, I created a Main.html that has two frames (Left and Right)</DIV>
<DIV>&nbsp;</DIV>
<DIV>&lt;FRAMESET cols="230,*"&gt; <BR>&nbsp; &lt;FRAME src="<A 
href="http://localhost/LeftFrame.html">http://localhost/LeftFrame.html</A>" 
name="Left" &gt; <BR>&nbsp; &lt;FRAME src="<A 
href="http://localhost/Demo.html">http://localhost/Demo.html</A>" 
name="Demo"&gt; <BR>&lt;/FRAMESET&gt; </DIV>
<DIV>&nbsp;</DIV>
<DIV>And changed the map file to - </DIV>
<DIV>TEMPLATE Main.html</DIV>
<DIV>==================================</DIV>
<DIV>&nbsp;</DIV>
<DIV>But this does not work. any help would be welcomed!</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks<BR><BR></DIV>
<DIV><BR>&nbsp;</DIV></FONT></FONT></DIV></BODY></HTML>

--Boundary_(ID_J6O43FzkIfrHrHpCc96GVQ)--



More information about the mapserver-users mailing list