how do I get rid of clicking the button and loading it my html? {Scanned} {Scanned}

Manfred Meier m.meier at SPIEKERMANN.DE
Thu Aug 3 12:18:19 EDT 2006


Hi Albert,

I think this solution of David with the onload routine is really good.

But if you want to try the URL approach you could try:

http://your-host/cgi-bin/mapserv?program=mapserv&
map=/home/mapdata/richland.map&
mapext=625173.309834 5085113.091715 718065.960556 5160035.212592&
layers=aerial richland boundary cities roads sections rivers lakes 
railroad parcels&
zoomsize=1

I did put together the informations from your html-code. You have to 
change the hostname. Then put this URL in one line into the address 
field of your browser. I hope, I made no mistakes and do not create 
confusion.

Manfred






Albert Anderson schrieb:

> 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 Yahoo! Mail Beta. 
> <http://us.rd.yahoo.com/evt=42297/*http://advision.webevents.yahoo.com/handraisers> 
> 



More information about the mapserver-users mailing list