From: Andrew G. <an...@ph...> - 2005-08-15 23:02:14
|
In DynLayer, there is a method called "enableBlackboard". Can anyone tell me what its for? I can't find any documentation for it and I can't follow the code. I'd appreciate it if someone would give me a clue about its purpose. Just curious, Andrew. |
From: Leif W <war...@us...> - 2005-08-16 02:50:27
|
> From: "Andrew Gillett" <an...@ph...> > Sent: 2005 August 15 Monday 19:01 > > In DynLayer, there is a method called "enableBlackboard". Can anyone > tell me what its for? > I can't find any documentation for it and I can't follow the code. I'd > appreciate it if someone > would give me a clue about its purpose. > > Just curious, > > Andrew. I've seen it too and wondered. Searching the source I find a few references to m/blackboard/i. One comment in the template manager code reads: "// this will force a <layer> arround the inline html". To what end, I'm not sure. Check the following: ./docs/docs/quickref.dynlayer.html ./docs/docs/revision.html ./examples/dynapi.api.dynlayer-autosize.html ./examples/dynapi.api.dynlayer-blackboard.html ./src/api/dynlayer_dom.js ./src/api/dynlayer_ie.js ./src/api/dynlayer_ns4.js ./src/api/dynlayer_opera.js ./src/gui/button.flatstyle.js ./src/gui/button.imagestyle.js ./src/gui/button.style.js ./src/gui/tmplmgr.js http://sourceforge.net/mailarchive/message.php?msg_id=12535636 http://sourceforge.net/mailarchive/message.php?msg_id=12535638 http://sourceforge.net/tracker/?group_id=5757&atid=305757&func=detail&aid=716335 Can't seem to find anything in mailing lists, which is odd. It's probably in the dev list. Check that list prior to the CVS additions and modifications relating to blackboard. Leif |
From: <do...@cr...> - 2005-08-17 16:05:19
|
I haven't actually looked at the code yet but i do believe that enableBlackboard creates two child layers in your layer, one which covers the content and is transparent, and one which contains the content. The the various functions such as sethtml and gethtml are redirected to the "blackboard" layer (content layer) as well as setsize, ect, resulting in the containing layer, the cover layer and the blackboard layer being resized at the same time Basically it's to make a layer's content non-selectable and non-clickable without the devealoper having to do more than myLayer.enableBlackboard(); before EnableBlackboard() [myLayer]content[/myLayer] After EnabledBlackboard [myLayer] [TransparentCoverLayer] [BlackBoard] Content [BlackBoard] [TransparentCoverLayer] [myLayer] Cheers Leif W <war...@us...> said: > > From: "Andrew Gillett" <an...@ph...> > > Sent: 2005 August 15 Monday 19:01 > > > > In DynLayer, there is a method called "enableBlackboard". Can anyone > > tell me what its for? > > I can't find any documentation for it and I can't follow the code. I'd > > appreciate it if someone > > would give me a clue about its purpose. > > > > Just curious, > > > > Andrew. > > I've seen it too and wondered. Searching the source I find a few > references to m/blackboard/i. > One comment in the template manager code reads: "// this will force a > <layer> arround the inline html". > > To what end, I'm not sure. > > Check the following: > > ./docs/docs/quickref.dynlayer.html > ./docs/docs/revision.html > ./examples/dynapi.api.dynlayer-autosize.html > ./examples/dynapi.api.dynlayer-blackboard.html > ./src/api/dynlayer_dom.js > ./src/api/dynlayer_ie.js > ./src/api/dynlayer_ns4.js > ./src/api/dynlayer_opera.js > ./src/gui/button.flatstyle.js > ./src/gui/button.imagestyle.js > ./src/gui/button.style.js > ./src/gui/tmplmgr.js > > http://sourceforge.net/mailarchive/message.php?msg_id=12535636 > http://sourceforge.net/mailarchive/message.php?msg_id=12535638 > http://sourceforge.net/tracker/?group_id=5757&atid=305757&func=detail&aid=716335 > > Can't seem to find anything in mailing lists, which is odd. It's > probably in the dev list. Check that list prior to the CVS additions > and modifications relating to blackboard. > > Leif > > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help > -- |
From: <do...@cr...> - 2005-08-24 15:07:01
|
The wierdest things pop into your head when walking to work.. here it is.. the blackboard as described below is to allow you to add a child layer to a layer, and then later call sethtml on the parent layer without accidently deleting the child layers :-) Glad we got that sorted out. :-P do...@cr... said: > > > I haven't actually looked at the code yet but i do believe that > enableBlackboard creates two child layers in your layer, one which covers the > content and is transparent, and one which contains the content. > > The the various functions such as sethtml and gethtml are redirected to the > "blackboard" layer (content layer) as well as setsize, ect, resulting in the > containing layer, the cover layer and the blackboard layer being resized at > the same time > > Basically it's to make a layer's content non-selectable and non-clickable > without the devealoper having to do more than myLayer.enableBlackboard(); > > > before EnableBlackboard() > [myLayer]content[/myLayer] > > After EnabledBlackboard > [myLayer] > [TransparentCoverLayer] > [BlackBoard] > Content > [BlackBoard] > [TransparentCoverLayer] > [myLayer] > > Cheers > > Leif W <war...@us...> said: > > > > From: "Andrew Gillett" <an...@ph...> > > > Sent: 2005 August 15 Monday 19:01 > > > > > > In DynLayer, there is a method called "enableBlackboard". Can anyone > > > tell me what its for? > > > I can't find any documentation for it and I can't follow the code. I'd > > > appreciate it if someone > > > would give me a clue about its purpose. > > > > > > Just curious, > > > > > > Andrew. > > > > I've seen it too and wondered. Searching the source I find a few > > references to m/blackboard/i. > > One comment in the template manager code reads: "// this will force a > > <layer> arround the inline html". > > > > To what end, I'm not sure. > > > > Check the following: > > > > ./docs/docs/quickref.dynlayer.html > > ./docs/docs/revision.html > > ./examples/dynapi.api.dynlayer-autosize.html > > ./examples/dynapi.api.dynlayer-blackboard.html > > ./src/api/dynlayer_dom.js > > ./src/api/dynlayer_ie.js > > ./src/api/dynlayer_ns4.js > > ./src/api/dynlayer_opera.js > > ./src/gui/button.flatstyle.js > > ./src/gui/button.imagestyle.js > > ./src/gui/button.style.js > > ./src/gui/tmplmgr.js > > > > http://sourceforge.net/mailarchive/message.php?msg_id=12535636 > > http://sourceforge.net/mailarchive/message.php?msg_id=12535638 > > http://sourceforge.net/tracker/?group_id=5757&atid=305757&func=detail&aid=716335 > > > > Can't seem to find anything in mailing lists, which is odd. It's > > probably in the dev list. Check that list prior to the CVS additions > > and modifications relating to blackboard. > > > > Leif > > > > > > > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > > _______________________________________________ > > Dynapi-Help mailing list > > Dyn...@li... > > https://lists.sourceforge.net/lists/listinfo/dynapi-help > > > > > > -- > > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help > -- |
From: Leif W <war...@us...> - 2005-08-24 15:21:27
|
> From: <do...@cr...> > Sent: 2005 August 24 Wednesday 11:06 > > here it is.. the blackboard as described below is to allow you to add > a child > layer to a layer, and then later call sethtml on the parent layer > without > accidently deleting the child layers :-) >> before EnableBlackboard() >> [myLayer]content[/myLayer] >> >> After EnabledBlackboard >> [myLayer] >> [TransparentCoverLayer] >> [BlackBoard] >> Content >> [BlackBoard] >> [TransparentCoverLayer] >> [myLayer] Wow, excellent, thanks for that explanation and visual. Leif |
From: <do...@cr...> - 2005-08-24 17:46:03
|
More verbose.. also checked code to verfiy.. the part about a transparent coverlayer was just smoke (won't say what kind of smoke..) So.. As we know, if you add a child layer or widget to a layer, then set the html of that layer, the existing html (the child ler or widget) get's deleted. Obviously this can cause some issues if your coed expects said layer or widget to be there. The solution to this is to call enabledBlackBoard on the parent layer. Having done this, when you call setHTML() on a layer that has it's Blackboard enabled, the html that you specify is placed within the blackboard instead of replacing the html of your parent layer. Man reading the above just confuses me.. and i wrote it :-) new visual: case 1 (no blackboard) create a layer and add a widget: (result) [myLayer] [myWidget][/myWidget] [/myLayer] then call myLayer.setHTML("where's the widget?") (result: note the widget is gone) [myLayer] Where's the widget? [/myLayer] case 2 (with blackboard) create a layer, add a widget, enable blackboard [myLayer] [myWidget][/myWidget] [_blkBoardElm][/_blkBoardElm] [/myLayer] then call myLayer.setHTML("there's the widget!") [myLayer] [myWidget][/myWidget] [_blkBoardElm]there's the widget![/_blkBoardElm] [/myLayer] One thing i do notice while looking at the code is that we do not specifiy the Z-Order of the blackboard. This can cause a problem if the blackboard is added after a widget or childlayer has been added as the blackboard may overlap said child layers. notes: if blackboard is enabled after a sethtml call (or layer is created with default html in the new dynlayer() call) then the html will be transferred to the blackboard. Recommend specifying a largely negative Z-Order on the blackboard layer Cheers Leif W <war...@us...> said: > > From: <do...@cr...> > > Sent: 2005 August 24 Wednesday 11:06 > > > > here it is.. the blackboard as described below is to allow you to add > > a child > > layer to a layer, and then later call sethtml on the parent layer > > without > > accidently deleting the child layers :-) > > >> before EnableBlackboard() > >> [myLayer]content[/myLayer] > >> > >> After EnabledBlackboard > >> [myLayer] > >> [TransparentCoverLayer] > >> [BlackBoard] > >> Content > >> [BlackBoard] > >> [TransparentCoverLayer] > >> [myLayer] > > Wow, excellent, thanks for that explanation and visual. > > Leif > > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help > -- |
From: Raymond I. <xw...@ya...> - 2005-08-28 02:51:03
|
Hi everyone, Doug is correct about the functionality of the black board. That's exactly what it was design for. __ Raymond Irving --- do...@cr... wrote: > > > More verbose.. also checked code to verfiy.. the > part about a transparent > coverlayer was just smoke (won't say what kind of > smoke..) > > So.. > > As we know, if you add a child layer or widget to a > layer, then set the html > of that layer, the existing html (the child ler or > widget) get's deleted. > Obviously this can cause some issues if your coed > expects said layer or widget > to be there. > > The solution to this is to call enabledBlackBoard on > the parent layer. > Having done this, when you call setHTML() on a layer > that has it's Blackboard > enabled, the html that you specify is placed within > the blackboard instead of > replacing the html of your parent layer. > > Man reading the above just confuses me.. and i wrote > it :-) > new visual: > > case 1 (no blackboard) > create a layer and add a widget: > (result) > [myLayer] > [myWidget][/myWidget] > [/myLayer] > > then call myLayer.setHTML("where's the widget?") > (result: note the widget is gone) > [myLayer] > Where's the widget? > [/myLayer] > > case 2 (with blackboard) > create a layer, add a widget, enable blackboard > [myLayer] > [myWidget][/myWidget] > [_blkBoardElm][/_blkBoardElm] > [/myLayer] > then call myLayer.setHTML("there's the widget!") > [myLayer] > [myWidget][/myWidget] > [_blkBoardElm]there's the widget![/_blkBoardElm] > [/myLayer] > > One thing i do notice while looking at the code is > that we do not specifiy the > Z-Order of the blackboard. This can cause a problem > if the blackboard is added > after a widget or childlayer has been added as the > blackboard may overlap said > child layers. > > notes: > if blackboard is enabled after a sethtml call (or > layer is created with > default html in the new dynlayer() call) then the > html will be transferred to > the blackboard. > > Recommend specifying a largely negative Z-Order on > the blackboard layer > > Cheers > > Leif W <war...@us...> said: > > > > From: <do...@cr...> > > > Sent: 2005 August 24 Wednesday 11:06 > > > > > > here it is.. the blackboard as described below > is to allow you to add > > > a child > > > layer to a layer, and then later call sethtml on > the parent layer > > > without > > > accidently deleting the child layers :-) > > > > >> before EnableBlackboard() > > >> [myLayer]content[/myLayer] > > >> > > >> After EnabledBlackboard > > >> [myLayer] > > >> [TransparentCoverLayer] > > >> [BlackBoard] > > >> Content > > >> [BlackBoard] > > >> [TransparentCoverLayer] > > >> [myLayer] > > > > Wow, excellent, thanks for that explanation and > visual. > > > > Leif > > > > > > > > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software > Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * > Development Lifecycle Practices > > Agile & Plan-Driven Development * Managing > Projects & Teams * Testing & QA > > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > > _______________________________________________ > > Dynapi-Help mailing list > > Dyn...@li... > > > https://lists.sourceforge.net/lists/listinfo/dynapi-help > > > > > > -- > > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software > Conference & EXPO > September 19-22, 2005 * San Francisco, CA * > Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects > & Teams * Testing & QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help > |
From: Leif W <war...@us...> - 2005-08-28 10:01:01
|
> From: "Raymond Irving" <xw...@ya...> > Sent: 2005 August 27 Saturday 22:50 > > Hi everyone, > > Doug is correct about the functionality of the black > board. That's exactly what it was design for. Hi Raymond, good to hear from you! Thanks for the confirmation. And Doug, thanks for the visual, it helps a lot. I'd like to see a doc page for that, including the caveats noted (until they're resolved, pending testing and discussion as needed). If someone has the initiative, do it, otherwise I'll get to it eventually. :p Leif |