Thanks for the files. They work fine in an earlier CVS
version but not in my new one. I best check I haven't
made a mistake.

There is a typo in dynlayer_ns4.js: p.getOuterHTML()
-if(this._psition!='absolute') tag='ilayer';
+if(this._position!='absolute') tag='ilayer';
Will the ilayer be OK with a position of fixed? 

I can't see a reason to create relative layers after the
page loads but yes for fixed and absolute.

-
Kevin

"Raymond Irving" <[EMAIL PROTECTED]> wrote:
> Please see below:
> 
> --- Benoit Marchant <[EMAIL PROTECTED]> wrote:
> > 
> > On Wednesday, April 2, 2003, at 09:37  AM, Kevin
> > wrote:
> > 
> > > See comments below:
> > >
> > > "Raymond Irving" <[EMAIL PROTECTED]> wrote:
> > >> Hello,
> > >>
> > >> I've managed to create the setPosition(p)
> > function
> > >> which supports absolute, relative and fixed
> > positions.
> > >
> > > Yes this looks like what I had in mind. I'll need
> > time to
> > > work through it.
> > >
> > >> The insertChild() function was also modified from
> > >> insertChild(c,usebp) to insertChild(c,pos, usbp).
> > For
> > >> Example:
> > >>
> > >> dynapi.document.insertChild(lyr,'relative');
> > >>
> > >> Please see the attached file for the new changes.
> > >>
> > >> I can't get ns4 to work relative positions, could
> > >> someone take a look at the code to see if they
> > can
> > >> help?
> > >
> > > I had put together a raw example to show what I
> > meant
> > > as I thought Raymond and Benoit were talking only
> > about
> > > fixing an element in the window no matter what the
> > scroll
> > > bar is..
> > >
> > > This example uses an <ilayer> to give the relative
> > container
> > > and the normal <layer> for the absolute positioned
> > children
> > > in ns4. Any ideas how this could this be used with
> > the new
> > > setPosition()?
> > >
> > The example is working great. What Raymond did
> > should work, as long as 
> > getOuterHTML is updated for NS4 to output an iLayer
> > if the position is 
> > relative.
> 
> Many thanks for the feedback. I've implemented the
> <ilayer> tag as suggested and it worked great.
> 
> Please see the attached file for the updates to
> dynlayer_ns4.js
> 
> > Also, in  _create for NS4, we could to test the
> > position. If the 
> > position is relative, then the code would do a
> > document.write() of the 
> > getOuterHTML
> 
> I can't see why we should do a document.write() after
> the page has been loaded. Relative layers should/can
> only be created before the page loads, correct? Would
> it be of any value to create relative laters after the
> page loads?
> 
> --
> Raymond Irving
> 
> 
> 
> 
>  
> > Benoit
> > 
> > 
> > > Kevin
> > >
> > >>
> > >> --
> > >> Raymond Irving
> > >>
> > >>
> > __________________________________________________
> > >> Do you Yahoo!?
> > >> Yahoo! Tax Center - File online, calculators,
> > forms, and more
> > >> http://tax.yahoo.com
> > > <relative1.zip>
> 
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - File online, calculators, forms, and more
> http://tax.yahoo.com



-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/[EMAIL PROTECTED]/

Reply via email to