From: Raymond I. <xw...@ya...> - 2003-04-02 04:05:36
Attachments:
test.zip
|
Hello, I've managed to create the setPosition(p) function which supports absolute, relative and fixed positions. 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? -- Raymond Irving __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com |
From: Kevin <ke...@ke...> - 2003-04-02 17:38:18
Attachments:
relative1.zip
|
See comments below: "Raymond Irving" <xw...@ya...> 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()? - Kevin > > -- > Raymond Irving > > __________________________________________________ > Do you Yahoo!? > Yahoo! Tax Center - File online, calculators, forms, and more > http://tax.yahoo.com |
From: Benoit M. <mar...@ma...> - 2003-04-02 19:02:09
|
On Wednesday, April 2, 2003, at 09:37 AM, Kevin wrote: > See comments below: > > "Raymond Irving" <xw...@ya...> 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. 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 Benoit > Kevin > >> >> -- >> Raymond Irving >> >> __________________________________________________ >> Do you Yahoo!? >> Yahoo! Tax Center - File online, calculators, forms, and more >> http://tax.yahoo.com > <relative1.zip> |
From: Raymond I. <xw...@ya...> - 2003-04-02 20:44:59
Attachments:
dynlayer_ns4.zip
|
Please see below: --- Benoit Marchant <mar...@ma...> wrote: > > On Wednesday, April 2, 2003, at 09:37 AM, Kevin > wrote: > > > See comments below: > > > > "Raymond Irving" <xw...@ya...> 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 |
From: Benoit M. <mar...@ma...> - 2003-04-02 21:55:18
|
See below On Wednesday, April 2, 2003, at 12:44 PM, Raymond Irving wrote: > Please see below: > > --- Benoit Marchant <mar...@ma...> wrote: >> >> On Wednesday, April 2, 2003, at 09:37 AM, Kevin >> wrote: >> >>> See comments below: >>> >>> "Raymond Irving" <xw...@ya...> 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? Good point ! You're right, except appending something at the end of the document, or add a child layer that would be inline, I don't see either ! Benoit > > -- > 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<dynlayer_ns4.zip> |
From: Kevin <ke...@ke...> - 2003-04-02 21:59:40
|
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" <xw...@ya...> wrote: > Please see below: > > --- Benoit Marchant <mar...@ma...> wrote: > > > > On Wednesday, April 2, 2003, at 09:37 AM, Kevin > > wrote: > > > > > See comments below: > > > > > > "Raymond Irving" <xw...@ya...> 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 |
From: Kevin <ke...@ke...> - 2003-04-03 17:13:00
|
"Raymond Irving" <xw...@ya...> wrote: > Many thanks for the feedback. I've implemented the > <ilayer> tag as suggested and it worked great. I saw the <ilayer> idea in dynapi2. Though I'm not sure if it's 'inflow' code worked. > Please see the attached file for the updates to > dynlayer_ns4.js I've found that all children get an <ilayer> tag too. Can we specify 'relative' as below: -if(this._psition!='absolute') tag='ilayer'; +if(this._position!='relative') tag='ilayer'; - Kevin > -- > Raymond Irving |
From: Raymond I. <xw...@ya...> - 2003-04-03 22:33:21
|
--- Kevin <ke...@ke...> wrote: > > "Raymond Irving" <xw...@ya...> wrote: > > > Many thanks for the feedback. I've implemented the > > <ilayer> tag as suggested and it worked great. > > I saw the <ilayer> idea in dynapi2. Though I'm not > sure if it's 'inflow' code worked. > > > Please see the attached file for the updates to > > dynlayer_ns4.js > > I've found that all children get an <ilayer> tag > too. > Can we specify 'relative' as below: > > -if(this._psition!='absolute') tag='ilayer'; > +if(this._position!='relative') tag='ilayer'; This has been fixed. I upload it to cvs real soon. -- Raymond Irving > - > Kevin > > > -- > > Raymond Irving > > > > > > > ------------------------------------------------------- > 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 > Dyn...@li... > http://www.mail-archive.com/dyn...@li.../ __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com |