I think you're doing something DynAPI isn't supporting. The inline layers are already 
created in a non-nesting manner, and since they're not created as dynlayers they 
cannot be made childs of another object (inline layer as well as dynlayer) after it 
been added as child of another object - in this case the document. in short; you 
cannot overwrite the existing nestinglevel with a new one.

I might be wet on my feets here,  but I think that's the explaination... at least I'm 
pretty sure the addchild call of  homelayer into middlelayer is what's not working 
correctly. inline.js would need to overwrite the default method function - which it 
doesn't - to allow for this to work.

BTW did you get any Javascript error messages when running the page and what version 
are you running (2.5)?

Henrik Våglin [ [EMAIL PROTECTED] ]


----- Original Message ----- 
From: "Bober, Kyle" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 12, 2001 10:12 PM
Subject: [Dynapi-Dev] NS 4.76 Nested Layer Problem No Appearing Text


> To Whom it may concern,
> I am currently inlining a series of DIVs from my main html file. All
> Non-nested divs appear fine. In my Javascript I then set up a layer
> positioning using these inlined divs from the HTML file. I setup a div
> called middleLayer and then nest a div within it called homeLayer. The
> middleLayer appears fine but the other layer seems to be hidden. Nothing in
> the homeLayer shows up and all that it contains is text. F.Y.I.  I  set the
> position to absolute in all my divs in the html file. Also all the layers
> visibility properties are set to visible just for testing purposes using a
> javascript function call which also setsup all the positioning of the
> layers. Just to check I also set the middleLayer zindex to 1 and the
> homeLayer to 2. I am aware that NS has always had an issuse with nesting
> divs is this also an issue with DynAPI?  I have just started using the
> DynAPI and I am interested in what it has to offer in Cross browser platform
> support with DHTML. 
> 
> 
> Thanks,
> Kyle S. Bober
> 
> 
>  <<examp.html>> 
> 
> 
> 
> <html>
> <head><title>Example</title>
> <script language="Javascript" src="../src/dynapi.js"></script>
> <script language="Javascript">
>     DynAPI.setLibraryPath('../src/lib/');
>     DynAPI.include('dynapi.api.*');
>     DynAPI.include('dynapi.event.*')
>   DynAPI.include('dynapi.ext.inline.js')
> </script>
> <script language="Javascript">
> 
> DynAPI.onLoad=function()
> {
> 
>   //DynAPI.document.addChild(DynAPI.document.all["middleLayer"])
>  
> DynAPI.document.all["middleLayer"].addChild(DynAPI.document.all["homeLayer"]
> )
> 
>   DynAPI.document.all["middleLayer"].moveTo(300, 25)
>   DynAPI.document.all["middleLayer"].setSize(300, 300)
>   DynAPI.document.all["middleLayer"].setBgImage('images/middleback.gif')
>   DynAPI.document.all["homeLayer"].moveTo(25, 25)
>   DynAPI.document.all["homeLayer"].setSize(100, 100)
>   //DynAPI.document.all["homeLayer"].setBgColor('00CC99')
> 
> 
> }
> 
> 
> 
> 
> </script>
> </head>
> 
> <body bgcolor="#5E4695">
>   <div id="middleLayer" style="position:absolute; clip:rect(0, 300, 300,
> 0)">
>     <img src="images/middleback.gif" width="360" height="300" border="0">
>   </div>
>   <div id="homeLayer" style="position:absolute; visibility:visible;
> z-index:2;">
>   <p align="left">Stuff here Stuff here Stuff here Stuff here Stuff
> here
>   Stuff here Stuff here Stuff here Stuff here Stuff here Stuff here
> Stuff here
>   Stuff here Stuff here Stuff here Stuff here Stuff here Stuff here
> Stuff here
>   </p>
>   </div>
> 
> </body>
> </html>
> 


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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

Reply via email to