[Mapbender-users] Mapbender and GetFeatureInfo

Marc Jansen jansen at terrestris.de
Wed Jan 20 08:56:20 EST 2010


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. Marc Jansen
  - Anwendungsentwickler -

  terrestris GmbH & Co. KG
  Irmintrudisstraße 17
  53111 Bonn

  Tel:    ++49 (0)228 / 96 28 99 -53
  Fax:    ++49 (0)228 / 96 28 99 -57

  Email:  jansen at terrestris.de
  Web:    http://www.terrestris.de

  Amtsgericht Bonn, HRA 6835
  Komplementärin:  terrestris Verwaltungsgesellschaft mbH
  vertreten durch: Hinrich Paulsen, Till Adams  




More information about the Mapbender_users mailing list