From: Raymond I. <xw...@ya...> - 2003-03-26 14:25:06
|
Hello everyone, Sometime ago some of our users had a problem with setHTML(). Whenever setHTML() was called after you added a child layer it would erase the child and overwrite the html content. The BlackBoard approach: lyr.setBlackBoard(b,x,y); Once the blackBoard is setup (before the layer is created) you can then call setHTML() and if will not erase the child layers but overwrite the html content. This will make it easier for us to create things like the button widget: lyr.setBlackBoard(true); lyr.addChild(new DynLayer(),'_lyrCover'); dynapi.document.addChild(lyr); lyr.setHTML('Click Here'); lyr._lyrCover.setAnchor({left:0,top:0,stretchH:'100%',stretchV:'100%'}); .... lyr.setHTML('Ok'); Any comments? -- Raymond Irving __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com |
From: Doug M. <do...@cr...> - 2003-03-26 20:03:55
|
I like very much. Should it be an extension? I think it would be best as a native functionality (imho) Basically, are we looking at a seconf layer to hold HTML (or children?)? Or would we simply cause the re-rendering of child layers from the children array? Note: that if we are talking re-rendering the layers you will run *SMACK* into the netscape 4.x memory leak. ----- Original Message ----- From: "Raymond Irving" <xw...@ya...> To: "DynAPI-Dev" <dyn...@li...> Sent: Wednesday, March 26, 2003 6:23 AM Subject: [Dynapi-Dev] New BlackBoard concept for DynAPI 3.0 > Hello everyone, > > Sometime ago some of our users had a problem with > setHTML(). Whenever setHTML() was called after you > added a child layer it would erase the child and > overwrite the html content. > > The BlackBoard approach: > > lyr.setBlackBoard(b,x,y); > > Once the blackBoard is setup (before the layer is > created) you can then call setHTML() and if will not > erase the child layers but overwrite the html content. > This will make it easier for us to create things like > the button widget: > > lyr.setBlackBoard(true); > lyr.addChild(new DynLayer(),'_lyrCover'); > dynapi.document.addChild(lyr); > lyr.setHTML('Click Here'); > lyr._lyrCover.setAnchor({left:0,top:0,stretchH:'100%',stretchV:'100%'}); > .... > lyr.setHTML('Ok'); > > Any comments? > > -- > Raymond Irving > > __________________________________________________ > Do you Yahoo!? > Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! > http://platinum.yahoo.com > > > ------------------------------------------------------- > This SF.net email is sponsored by: > The Definitive IT and Networking Event. Be There! > NetWorld+Interop Las Vegas 2003 -- Register today! > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://www.mail-archive.com/dyn...@li.../ > |
From: Raymond I. <xw...@ya...> - 2003-03-26 21:36:45
|
--- Doug Melvin <do...@cr...> wrote: > I like very much. > Should it be an extension? > I think it would be best as a native functionality > (imho) I'm also of the opinion that it should be a native function. > Basically, are we looking at a seconf layer to hold > HTML (or children?)? > Or would we simply cause the re-rendering of child > layers from the children > array? Yes. A layer (not a DynLayer) will be used to store the HTML content. In DOM browsers I was looking at using a <table> object, but I think I might use a <div>. And for NS4 I'll use a <layer> I'm also looking at adding a two new features to the dynapi.document object. These are as follows: dynapi.document.writeln(html,key) and dynapi.document.deleteln(key) These will allow a user to write/append html content to the document even after the page has been loaded. The deleteln(key) will also the user to delete html content from the document once the page is loaded. These two new functions will enable us to dynamically download (inline) portions of a huge app, append the content to the document and then create the object use blueprint/inline create features. What do you all thing? -- Raymond Irving > Note: that if we are talking re-rendering the layers > you will run *SMACK* > into the netscape 4.x > memory leak. > ----- Original Message ----- > From: "Raymond Irving" <xw...@ya...> > To: "DynAPI-Dev" <dyn...@li...> > Sent: Wednesday, March 26, 2003 6:23 AM > Subject: [Dynapi-Dev] New BlackBoard concept for > DynAPI 3.0 > > > > Hello everyone, > > > > Sometime ago some of our users had a problem with > > setHTML(). Whenever setHTML() was called after you > > added a child layer it would erase the child and > > overwrite the html content. > > > > The BlackBoard approach: > > > > lyr.setBlackBoard(b,x,y); > > > > Once the blackBoard is setup (before the layer is > > created) you can then call setHTML() and if will > not > > erase the child layers but overwrite the html > content. > > This will make it easier for us to create things > like > > the button widget: > > > > lyr.setBlackBoard(true); > > lyr.addChild(new DynLayer(),'_lyrCover'); > > dynapi.document.addChild(lyr); > > lyr.setHTML('Click Here'); > > > lyr._lyrCover.setAnchor({left:0,top:0,stretchH:'100%',stretchV:'100%'}); > > .... > > lyr.setHTML('Ok'); > > > > Any comments? > > > > -- > > Raymond Irving > > > > __________________________________________________ > > Do you Yahoo!? > > Yahoo! Platinum - Watch CBS' NCAA March Madness, > live on your desktop! > > http://platinum.yahoo.com > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: > > The Definitive IT and Networking Event. Be There! > > NetWorld+Interop Las Vegas 2003 -- Register today! > > > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en > > _______________________________________________ > > Dynapi-Dev mailing list > > Dyn...@li... > > > http://www.mail-archive.com/dyn...@li.../ > > > __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com |
From: Doug M. <do...@cr...> - 2003-03-26 21:52:37
|
See below: > I'm also looking at adding a two new features to the > dynapi.document object. These are as follows: > > dynapi.document.writeln(html,key) and > dynapi.document.deleteln(key) > > These will allow a user to write/append html content > to the document even after the page has been loaded. > The deleteln(key) will also the user to delete html > content from the document once the page is loaded. > > These two new functions will enable us to dynamically > download (inline) portions of a huge app, append the > content to the document and then create the object use > blueprint/inline create features. > > What do you all thing? I thing it's a greate idea!! This would have come in very handy when I built figure8's site as I would have allowed be to load only portions of the tree at a time. (800+ nodes can take a VERY long time to download, never mind rendering) |
From: Raymond I. <xw...@ya...> - 2003-03-26 22:40:26
|
--- Doug Melvin <do...@cr...> wrote: > See below: > > > I'm also looking at adding a two new features to > the > > dynapi.document object. These are as follows: > > > > dynapi.document.writeln(html,key) and > > dynapi.document.deleteln(key) > > > > These will allow a user to write/append html > content > > to the document even after the page has been > loaded. > > The deleteln(key) will also the user to delete > html > > content from the document once the page is loaded. > > > > > These two new functions will enable us to > dynamically > > download (inline) portions of a huge app, append > the > > content to the document and then create the object > use > > blueprint/inline create features. > > > > What do you all thing? > I thing it's a greate idea!! > This would have come in very handy when I built > figure8's site as > I would have allowed be to load only portions of the > tree at a time. > (800+ nodes can take a VERY long time to download, > never mind rendering) > Well these two functions will require a lot of testing, but I think it's possible after many sleepless nights :) -- Raymond Irving > > ------------------------------------------------------- > This SF.net email is sponsored by: > The Definitive IT and Networking Event. Be There! > NetWorld+Interop Las Vegas 2003 -- Register today! > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://www.mail-archive.com/dyn...@li.../ __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com |
From: Doug M. <do...@cr...> - 2003-03-27 07:23:18
|
Raymond: Let us know when you have the blackboard code and example in cvs.. I will need it to create the DynButton, otherwise I need to add two layers (plus itself = 3 layers) to make the 3d effect work. Once the button is done, I will re-implement the scrollbar and we will be back on track. So note to Raymond: making blackboard a priority would be prety cool.. hehe.. :-) Still hammering out the specs for the new tree widget or, DynTree.. I'll post the specs as soon as I've got them. ----- Original Message ----- From: "Raymond Irving" <xw...@ya...> To: "DynAPI-Dev" <dyn...@li...> Sent: Wednesday, March 26, 2003 2:40 PM Subject: Re: [Dynapi-Dev] New BlackBoard concept for DynAPI 3.0 > > --- Doug Melvin <do...@cr...> wrote: > > See below: > > > > > I'm also looking at adding a two new features to > > the > > > dynapi.document object. These are as follows: > > > > > > dynapi.document.writeln(html,key) and > > > dynapi.document.deleteln(key) > > > > > > These will allow a user to write/append html > > content > > > to the document even after the page has been > > loaded. > > > The deleteln(key) will also the user to delete > > html > > > content from the document once the page is loaded. > > > > > > > > These two new functions will enable us to > > dynamically > > > download (inline) portions of a huge app, append > > the > > > content to the document and then create the object > > use > > > blueprint/inline create features. > > > > > > What do you all thing? > > I thing it's a greate idea!! > > This would have come in very handy when I built > > figure8's site as > > I would have allowed be to load only portions of the > > tree at a time. > > (800+ nodes can take a VERY long time to download, > > never mind rendering) > > > > Well these two functions will require a lot of > testing, but I think it's possible after many > sleepless nights :) > > -- > Raymond Irving > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: > > The Definitive IT and Networking Event. Be There! > > NetWorld+Interop Las Vegas 2003 -- Register today! > > > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en > > _______________________________________________ > > Dynapi-Dev mailing list > > Dyn...@li... > > > http://www.mail-archive.com/dyn...@li.../ > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! > http://platinum.yahoo.com > > > ------------------------------------------------------- > This SF.net email is sponsored by: > The Definitive IT and Networking Event. Be There! > NetWorld+Interop Las Vegas 2003 -- Register today! > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://www.mail-archive.com/dyn...@li.../ > |