[Mapbender-users] redirect a template behind OWSPROXY
"Jäger, Frank (KRZ)"
F.Jaeger at KRZ.DE
Wed Dec 5 03:48:39 PST 2012
Couln't escape.
I Tried " window.open( )" alternative to " document.location.href " to get out of the Mapbender-iFrame and directly call the PHP-Script in a new Window.
This also is catched from OWSPROXY which destroys the $_REQUEST-Values.
The PHP-Script is located on the outer side and the request has not to pass throught the OWSPROXY but is redirected to it.
Any Ideas?
PS
Which javascript-Command can close the Mapbender-iFrame for WMS-FeatureInfo from inside after opening a new windows?
Frank
-----Ursprüngliche Nachricht-----
Von: mapbender_users-bounces at lists.osgeo.org [mailto:mapbender_users-bounces at lists.osgeo.org] Im Auftrag von "Jäger, Frank (KRZ)"
Gesendet: Montag, 3. Dezember 2012 16:13
An: Mapbender User (mapbender_users at lists.osgeo.org)
Betreff: [Mapbender-users] redirect a template behind OWSPROXY
Hallo,
i have a Problem: A simple HTML-Template can't show what I want to show.
So I redirect some [parameters] from a WMS-Feature-Info to a PHP-Script which generates the HTML-output using a database-connection.
Template:
<head>
<script language="Javascript">
function Init() {
var myProggi="http://server/path/prog.php?"
var myParms="&gkz=[gkz]&gid=[gid]&subart=[subart]"
document.location.href=myProggi + encodeURI(myParms); } </script> </head>
<body onload="Init()">
This works fine in Intranet. To bring the WMS to WWW I have to use Mapbender's OWSPROXY.
The PHP-script is at last called with:
http://server/mapbender/owsproxy/foo/bar?request=external&gkz=150&gid=69&subart=2012
This is redirected to my PHP-script but it cannot get the parameters via
$gkz=$_REQUEST['gkz'];
and so on.
What went wrong?
Frank Jäger
_______________________________________________
Mapbender_users mailing list
Mapbender_users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapbender_users
More information about the Mapbender_users
mailing list