[Mapbender-users] Mapbender and GetFeatureInfo
Sven Böhme
boehme at supportgis.de
Wed Jan 20 10:21:15 EST 2010
Marc,
It works. Thank you!
Sven
Am 20.01.2010 14:56, schrieb Marc Jansen:
> Hi Sven,
>
> I suppose you control the HTML which is sent by the Server in response
> to the GetFeatureInfo-Request?
>
> If so, a link like:
>
> <a href="http://www.example.com/" onclick="return
> setOpenerLocation(this.href);">Click here for even more information</a>
>
> and a JavaScript-function:
>
> function setOpenerLocation( url ) {
> if (url && window.opener) {
> window.opener.location.href = url;
> return false;
> }
> return true;
> }
>
> *could* work. I am not 100% sure whether window.opener is the
> reference you need. It might be that you need to traverse more, e.g.
>
> window.opener.parent.frames[0] ...
>
> or something like that... that depends heavily on the structure and
> hierarchical position of the initial document that opened the popup.
>
> I could imagine even more problems if the GetFeatureInfo-HTML is
> istself the result of a HTTP-redirect, a technique I have seen in some
> GetFeatureInfo-solutions.
>
> Regards and good luck,
> Marc
>
> PS: Of course this is all untested.
>
>
>
> Sven Böhme wrote:
>> Hi List,
>>
>> I integrate Mapbender as iframe in a website. When I open the
>> GetFeatureInfo from one service (html), I like to link to antoher
>> homepage and close the page where Mapbender is intergated? Is this
>> possible?
>>
>> Sven
>>
>
>
--
--------------------------------------
Dipl.-Geogr. Sven Böhme
boehme at supportgis.de
--------------------------------------
CPA Systems GmbH
Grantham-Allee 2-8
D-53757 Sankt Augustin
Tel.: +49 (0) 2241 / 25 94 – 24
Fax.: +49 (0) 2241 / 25 94 - 29
www.cpa-systems.de
--------------------------------------
Handelsregister:
HRB 9706, Amtsgericht Siegburg
Geschäftsführer:
Dr.-Ing. habil. Christoph Averdung
Dr.-Ing. René Thiele
Dr.-Ing. Matthias Ellsiepen
More information about the Mapbender_users
mailing list