[mapserver-users] [Fwd: ASP Template]
woodbri at mediaone.net
Tue Oct 23 19:21:41 EDT 2001
You could work around this problem by sending to the client (browser)
an HTTP header "Location: http://....\n\n" which will cause the browser
to load the "http://...." url without the user seeing the intermediate
send the following page that will cause most all broswer (except some
very old ones) to load the url in the refresh.
<meta http-equiv="refresh" content="0;url=http://....">
<p>You are being transfered to the page you requested. Click <a
href="http://....">HERE</a> if the transfer isn't automatic.</p>
In both these cases the "http:/...." is an absolute path to the url of
your choosing. You can pass GET parameters in the URL and it can be an
ASP or other page. The first is more transparent and the intermeadiate
page is not used. The second does a client pull of the page, but it's a
pain to "BACK" over it, but for most browsers the intermediate page is
not seen and infact the body can be blank.
The first requires you to be able to send out the HTTP headers.
Brian Fischer wrote:
> Ualfrido Del Carlo Jr,
> Answer to question 1.
> I am pretty sure the reason why your .asp page is not working is because
> mapserv (the CGI program) does not send the results back to the server.
> It sends the results straight to the client, so your asp code never gets
> processed by the server. If I am wrong please speak up. This same
> question came up a few months ago on the listserv, but I could not seem
> to find the original posting and response. I do not know a way around,
> besides using MapScript/PHP.
> I have gotten around this by using an intermediate page to send to the
> client that contains a link to the ASP page. Take a look at this web
> page I am working on, it uses ASP to interact with the database. Query
> a permit and you will see the intermediate page that contains the link
> to the ASP page. http://www.houstoneng.com/projects/sandhill/
> This is one of the reasons I am trying to get away from using ASP and
> trying to learn MapScript/PHP.
> Hope this helps,
> -----Original Message-----
> From: Jamie Smedsmo [mailto:jsmedsmo at gis.umn.edu]
> Sent: Tuesday, October 23, 2001 1:45 PM
> To: mapserver-users at lists.gis.umn.edu
> Cc: Ualfrido Del Carlo Jr
> Subject: [mapserver-users] [Fwd: ASP Template]
> -------- Original Message --------
> Subject: ASP Template
> Date: Tue, 23 Oct 2001 16:32:55 -0200
> From: Ualfrido Del Carlo Jr <ualfrido at engecorps.com>
> To: "'mdp at lists.gis.umn.edu'" <mdp at lists>
> Question 1:
> I´m trying to open a ASP file at the query mode with the template comand
> in the map file, but it doesn´t work. Is there a limitation on Mapserv
> with ASP? The asp alone work fine, but not when I call it by the query
> mode. Can anyboby help me?
> Question 2:
> I need to select one City from a ComboBox or a TextBox and then show the
> polygon that matchs the name and center at the map. I have trying a
> couple of months but still without results.
> I´m using Mapserv 3.5.
> Ualfrido Del Carlo Jr
More information about the mapserver-users