From: Raymond I. <xw...@ya...> - 2003-03-26 21:23:37
|
Please see my comments below: --- Kevin <ke...@ke...> wrote: > Please see my comments below: > > > Raymond Irving <xw...@ya...> wrote: > > 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. > > Yes I was thinking of setHTML(html,true) adding true > would getInnerHTML(). > > > The BlackBoard approach: > > > > lyr.setBlackBoard(b,x,y); > > Is the blackboard a cache of all nested HTML so what > do x,y relate to? The x,y arguments will allow the user to change the location of it's blackboard. By default the blackboard will be set to location 0,0 -- Raymond Irving > > 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? > > I quite like this idea. > > Kevin. > > > > -- > > Raymond Irving > > 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 |