Hi,

I'm trying to code a Navigation in Javascript with the DynApi.
All the scripts are held in the frameset (top).
The navigation should appear in the contentframe (<frame ... 
name="f_content"... ), so I used the following code from the tutorials 
to add the page in the content-frame to the DynApi-objects:

          content=new DynDocument(top.f_content);
          DynAPI.addChild(content);

This works fine if I load the frameset for the first time, but if I 
click a button in my navigation and load a new HTML-document into the 
content-frame the navigation-menu will not show again.

I already have a function which contains the same two lines of code as 
above, which is called at the onload-event of the new loaded page. This 
function will be executed - I've verified this by an 'alert()'.
Then I call a function, which should give the layers new positions 
(depending on which navigation-element was clicked last).
At last, I'm calling a function, which should add the layers to the 
DynApi-objects and adds the eventhandlers which reads:

        function addObjects() {
          for(i=0; i < layerArray.length; i++) {
            content.addChild(layerArray[i]);
            layerArray[i].addEventListener( EL_1 );
          }
          for(i=0; i < hlArray1.length; i++) {
            content.addChild(hlArray1[i]);
            hlArray1[i].addEventListener( EL_2 );
          }
        }

The layerdefinitions are all held in two static arrays which are 
generated in 'top' so I think they should still exist when I call the 
function to rebuild the navigationmenu in the new loaded page.

Can anyone please tell me why nothing happens and the navigationmenu 
will not reappear? The JS-console of Netscape reports no errors, so I 
don't have a clue why this happens.

Many thanks in advance and sorry for my weak english.


Regards

Heiko


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

Reply via email to