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.../ > |