Maybe you could solve this problem, by creating a remove function, which
completely removes the corepopup(s) (using deleteFromParent) BEFORE the
next page is loaded.. so possibly add an onBlur handler to the 'estado'
frame pages which calls a "remove" function in the 'margin' frame.
Hope that makes sence to you :-)
I think the problem is that the browser has the created layers for the popup
menu still in it's memory (or DOM) even though the actual page they were
created on is already gone.
Pascal Bestebroer
[EMAIL PROTECTED]
http://www.dynamic-core.net
> -----Oorspronkelijk bericht-----
> Van: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]Namens Patricia Fesser
> Verzonden: woensdag 17 januari 2001 18:22
> Aan: [EMAIL PROTECTED]
> Onderwerp: [Dynapi-Help] RV: corePopUp & Frames (forgot the attach in
> previous mail)
>
>
>
>
>
>
>
> I've been looking through the mailing lists and wasn't able to find an
> answer to my problem, so after trying around for three intensive days I'm
> posting it along with the example files in a Zip file (Pruebas.zip):
> I'm working with the new DynApi. I've a frames construction as follows:
> frame "margen" contains a page called margenJS.htm which contains
> all of the
> api libs and the DynApi.onload function. I've added a folder
> called "aries"
> into the dynacore folder, which contains all of my code, so I can use the
> include() method for those files also. Into that folder there are
> two files
> beeing used:
> menuAries.js: contains the DynDocument construction for the
> frames, and the
> corePopUp construction.
> frame "datos1"contains a page called margen_datos1.htm, which contanis an
> array of elements, which are the items that have to be added to the
> corePopUp.
> frame "estado" is the frame where the corePopUp is added.
> THE PROBLEM
> Everything works good as long as I don't load a different page into the
> frame "estado". When this is done, it won't send an error, but
> the CorePuoUp
> won't pop. So I tried to execute the addChild(myPopUp1) method
> again when a
> new page is loaded, and i got the message:
> "Attempt to add "'+child.id+'" to the document "'+this.dyndoc.id+'"
> failed.\n\nThe DynLayer already exists in that DynDocument.\n\nYou must
> remove the dynlayer from its parent first."
> So, I wonder why if everything exists, it doesn't show. Also I was writing
> alerts everywhere, and it will execute, the CorePopUp is set to
> visible, the
> z-index, etc. but it doesn't show....where the ! is it poping
> up?!!!!!!!!!!!!!!!!!!
> ------------------------------------------------------------------
> ----------
> ------------------------------------------------------------------
> ----------
> ---------
> another problem I had
> (by the way!)
> When I started using this Construction in the beginnning,
> everything was the
> same it is now, but the corePopUp coonstruction.
> Now I'm puting all the "myPopUp1.add()" sentences into a function called
> cargaMenu(). I'm calling that function from the DynApi.onload=
> function(){}.
> I made it this way, because otherwise, the myPopUp1.add() method
> was working
> only the first time I executed it after the computer was started,
> and never
> again! ONLY after the computer was restarted, if i restarted only the user
> session it wouldn't work neither. The corePopUp was working, but it wasn't
> adding the items.
> P.D.: I'm a designer who is working with JavaScript since a couple of
> months, so I'm not that skilled yet.
> Thanks a lot.
> Pat
>
>
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help