[Laszlo-user] Setting the parent of a tag
Robin Sheat
robin at kallisti.net.nz
Tue Jul 10 21:07:05 PDT 2007
On Wednesday 11 July 2007 15:42:56 P T Withington wrote:
> There are two parent attributes:
> parent == lexical parent
> immediateparent == parent where the node was placed
Oh, duh, I knew that too, I just forgot it when it was important :)
Anyway, it still doesn't seem to work.
My actual code, this is in the edgedragger class:
<rightDragger timecode="${parent.timecode}" visible="false"
video="${parent.video}" numframes="${parent.numframes}"
placement="${parent.parent}" />
and then in the 'dragger' oninit (dragger being a superclass of rightDragger):
Debug.write("dragger.oninit:",this,parent,immediateparent);
gives me:
dragger.oninit: «rightDragger#0» «edgedragger#1| .edgedragger» «edgedragger#1| .edgedragger»
(where edgedragger is the lexical parent)
--
Robin <robin at kallisti.net.nz> JabberID: <eythian at jabber.kallisti.net.nz>
Hostes alienigeni me abduxerunt. Qui annus est?
PGP Key 0xA99CEB6D = 5957 6D23 8B16 EFAB FEF8 7175 14D3 6485 A99C EB6D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20070710/51cea235/attachment.bin
More information about the Laszlo-user
mailing list