Hi

Your example helped me a lot, thank you! But the use of framsets results in
a problem with eventlisteners.
The following Code generates a small popup calendar layer. But when I add
the Eventlistener to let the window disapear on the onmouseout event, no
calendar is displayed. 
I tested this without the frame-solution (then parent.frames[0].document is
replaced by DynAPI.document) and everytthing works fine.
So how can I use eventlisteners with the mentioned framesolution?

function popupCalendar( x, y, country, month, year, aim)
{
   if(parent.frames[0].document.getAll()["popupCalendar"])
 
parent.frames[0].document.getAll()["popupCalendar"].deleteFromParent();
  
   myListener = new EventListener(parent.frames[0].document);
   myListener.onmouseout=function(e) 
   {
 
parent.frames[0].document.getAll()["popupCalendar"].deleteFromParent();
   }

   var myLayer = new DynLayer("popupCalendar",x,y-50,174,146,'darkgray');
   myLayer.addEventListener(myListener);
   myLayer.setHTML( createCalendar(month,year,country,type,aim));
   parent.frames[0].document.addChild(myLayer);
}

Another problem with events was that I had dropdownlists in a layer and want
to call a script function out of the frameset. Normally I could call
onchange="javascript:parent.myfunction()" but now I have to use
onchange="javascript:window.top.myfunction()" because parent is null. I dont
know if this has something to do with the other problem.

Marco

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Eytan
Heidingsfeld
Sent: Dienstag, 26. Juni 2001 14:06
To: [EMAIL PROTECTED]
Subject: RE: [Dynapi-Help] Dynapi layer problem with framset


I have not used this method for "cross framing" but if you look at richards
site under my name you will find an example that does just that. I have to
warn you though: for some reason I have experienced problems adding a
DynLayer from one frame to another when they were on different servers.

8an


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help


**********************************************************************
As you are aware, e-mails sent via Internet can easily be prepared or
manipulated by third persons, For this reason we trust you will understand
that, for your own and our protection, we rule out the legal validity of the
foregoing statements and comments. The applicable regulations of OVSoftware
on the legal validity of declarations of intent of a binding nature remain
unaffected.
This message is confidential. It may also be privileged or otherwise
protected by legal rules. It may be unlawful for you to read, copy or use it
in anyway. If you have received it by mistake please let us know by reply
and then delete it from your system.



_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to