how do I get rid of clicking the button and loading it my html? {Scanned} {Scanned}
David Lowther
dlowther at COORDINATESOLUTIONS.COM
Thu Aug 3 08:41:07 PDT 2006
Albert,
If you end up frustrated with the URL approach then try adding an ID to your
form and adding a body onload event to submit the form:
<html>
<body onload=javascript:document.f.submit();>
<form id=f name=f method=get action="/cgi-bin/mapserv">
<!-- form elements here -->
</form>
</body>
</html>
David Lowther
_____
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Albert Anderson
Sent: Thursday, August 03, 2006 10:23 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] how do I get rid of clicking the button
and loading it my html? {Scanned} {Scanned}
Hi Manfred,
Yup your right with the button. Here is the code for the initializa button
<html>
<head><title>Mapserver Richland County</title></head>
<body>
<form method=GET action="/cgi-bin/mapserv">
<input type="submit" value="Richland County MapServer">
<input type="hidden" name="program"
value="mapserv">
<input type="hidden" name="map"
value="/home/mapdata/richland.map">
<input type="hidden" name="mapext"
value="625173.309834 5085113.091715 718065.960556
5160035.212592">
<input type="hidden" name="layers"
value="aerial richland boundary cities roads sections rivers
lakes railroad parcels">
<input type="hidden" name="zoomsize"
size="1" value="1">
<input type="hidden" name="qstring" value="">
<input type="hidden" name="qlayer" value="">
<input type="hidden" name="qitem" value="">
<input type="hidden" name="savequery" value="">
</form>
</body>
</html>
I would like the map to load up when I go to the url right away. So right
when you type it in the address box and html page load that the map would
too.
Thanks for you time.
Albert
Manfred Meier <m.meier at SPIEKERMANN.DE> wrote:
Hi Albert,
if I understand right, you have a page with an initialize button and
when you click it you get a page with a map and this works fine, ok?
So send us the html-code of your page with the button. Perhaps we can
"create" an example url for you which you can put in the adress field of
the browser.
> You must pass the name of your map file.
> For example:
> http://your.server/cgi-bin/mapserv.exe?map=path/to/your/file.map
> Where do I put that example at? Also I look at map context support
It could be helpful, if you explain to us, how you want to load the map:
- do want to load it from a menu or from a link?
- or should your map be part of an html-page and and shall sit in a div
or an iframe?
Manfred
Albert Anderson schrieb:
> hi,
>
> Where do I put that example at? Also I look at map context support
> through cgi and I dont understand it. The site is
> http://mapserver.gis.umn.edu/docs/reference/cgi/mapcontext
> Could you help me.
>
> Albert
>
> Siki Zoltan wrote:
>
> Hi Albert!
>
> You can pass parameters through the url.
> You must pass the name of your map file.
> For example:
> http://your.server/cgi-bin/mapserv.exe?map=path/to/your/file.map
>
> Zoltan
>
> There aremany parameters you can set through the url, see the cgi
> mapserver reference.
>
> On Wed, 2 Aug 2006, Albert Anderson wrote:
>
> > Hi,
> >
> > I am using intializing button as a submit button. The html
> template is using the get method. I would like to know how to get
> rid of the submit button. Just have the mapserver auto load into the
> html without clicking the intializing and get the information from
> the mapserver. Thanks
> >
> > Albert
> >
> > Manfred Meier wrote: I don't know your application and so don't
> know which initialzing button
> > you mean. But if there is a button then it is most likely a submit
> > button of a form. Look at the source code of the html page in your
> > browser and try to find out, to what url the action property in
> the form
> > tag points.
> >
> > If there are no other hidden or visible input tags, try to point
> your
> > browser to the url in the action property. If there are input
> tags, try
> > to append the neccessary values to the url.
> >
> > I don't know if that works in your case. But its a often used
> method to
> > circumvent the manual filling of forms.
> >
> > Manfred
> >
> >
> >
> >
> > Albert Anderson schrieb:
> >
> > > Hi List,
> > >
> > > My question is how do I get my page to load auto like without
> using
> > > initialzing button. I dont want to use the button. I just want
> to page
> > > just load. Is there a way around this? I'm using a linux
> machine with
> > > mapsever 4. Could someone help me?
> > >
> > > Thanks,
> > > Albert
> > >
> > >
> ------------------------------------------------------------------------
> > > Do you Yahoo!?
> > > Next-gen email? Have it all with the all-new Yahoo! Mail Beta.
> > >
> > >
> >
> >
> >
> > ---------------------------------
> > Groups are talking. We´re listening. Check out the handy changes
> to Yahoo! Groups.
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
_____
Do you Yahoo!?
Everyone is raving about the all-new
<http://us.rd.yahoo.com/evt=42297/*http:/advision.webevents.yahoo.com/handra
isers> Yahoo! Mail Beta.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060803/713e3c32/attachment.htm>
More information about the MapServer-users
mailing list