Hello Armin, On Mon, 12 Jun 2006 16:35:57 +0200 "Armin Burger" <armin.burger at gmx.net> wrote:
> > > > > This seems to work so far. I have created another popup-window where > > the layers can be selected. after submtting the $_SESSION-vars are > > updated inside the popup. > > > > But when I initiate a reloadMap() for the opener.window, the > > $_SESSION (printed in the main-window) does not contain any new > > dynlayer entries and the map/legend will not yet be updated. > > it might be possible that you forgot to pass the session id to the > pop up via the url. then this popup creates it's own session. I have checked this. The popup has the identical Session-ID as the opener-window. > > I am a bit lost in the xmlhttp.js for reloading the legend and the > > mapframe to show up the dynadded layers. > > > > I forgot that you also will have to rewrite the legend/toc. Try > running again 'initToc()' and a simple map refresh function like > reloadMap() without the 'resultlayer=remove'' at the end. I did the reloadMap()-stuff, which needs to be copied to my popup-script since it requires a modified loadObj. var loadObj = opener.document.getElementById("loading"); After some more fiddeling with other Js-problems I ended up adopting very js-function where a reference to the opener.document... stuff was inside. But, the new layer does not show up on the map, also the 'initToc()' throws js-errors: Error: defGroupList is not defined Source File: http://localhost/mapserver/pmapper2_w3c/javascript/toc.js Line: 34 I will continue to make the layers appear on my map. Thanks for your help. Stephan -- GDF Hannover - Solutions for spatial data analysis and remote sensing Hannover Office - Mengendamm 16d - D-30177 Hannover Internet: www.gdf-hannover.de - Email: holl at gdf-hannover.de Phone : ++49-(0)511.39088507 - Fax: ++49-(0)511.39088508