From: Doug M. <do...@cr...> - 2001-01-17 17:28:02
|
It would seem that we do indeed have a lady in the house.. :-) Doug Melvin ----- Original Message ----- From: "Patricia Fesser" <tec...@ca...> To: <dyn...@li...> Sent: Wednesday, January 17, 2001 9:21 AM Subject: [Dynapi-Dev] 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 > > |