Y'all,
 
I'm trying to show/hide a popup layer in one frame, while controlling it by events fired in another frame.
I've tested the example shown in http://dynapi.sourceforge.net/doccenter/index.php?DynDocuments with succes.
 
However, the same setup doesn't work in my (huge) real project.
 
The main difference from the example is that I'm using DynAPI heavily in the target frame by itself.
So it might be a question of having several instances of DynAPI conflicting, but I'm unsure whether this can be/is the case.
 
The immidiate error occurs immidiately when I - in my "menu" frame page/document - attempt to attach my map frame page/document as a DynDocument object.
 
 var mapFrameDoc;
 DynAPI. () {
  mapFrameDoc = new DynDocument(parent.map);
  DynAPI.addChild(mapFrameDoc); // <-- yields an error: "An object is required" (or something of that sort)
  //...
}

I've tested whether the "mapFrameDoc" variable is defined, and it seems to be.
 
I've tried a work-around by defining the popup layer in the map page/document, and just attaching to it from the menu page/document, but that yields an error that indicates that the attached object isn't recognized as a DynLayer (I can use setHTML and setVisible methods on it). And I can't find any examples to support me in this approach :-(
 
Have anyone tried to do this ?
Can anyone shed some light on possible instance conflicts ?
 
Using 2.5.7
 
TIA
 
Best regards / Med venlig hilsen
Lars V. Nielsen
--------------------------------------------------------
Hvenegaard & Meklenborg
Rugaardsvej 55, DK-5000 Odense C
Denmark
http://www.hvm.dk

Reply via email to