[Xerte] Re: set x values using relative path instead of ID
Julian Tenney
Julian.Tenney at nottingham.ac.uk
Tue Jan 3 09:50:41 GMT 2012
Give the DIS an ID? Otherwise give the FW_ENT an ID and you can do myFWENT.XMLElement.firstChild.clip()
Or I think there are some getChildByName that will return the XML Node for an icon known by name / ID, so you can do rootIcon.XMLElement.getChildByName();
Otherwise it's really too messy to do the icon.parentNode.parentNode.parentNode.previousSibling.firstChild, but you could do.
From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 01 January 2012 17:23
To: Xerte list
Subject: [Xerte] set x values using relative path instead of ID
Happy New Year!
Too much happiness actually, getting a brain lock.
<LO>
<IFC>
<FW_ENT>
<DIS> //set the x value of this display
<PG>
<INT>
<RS button>
<SCR> //from here, not knowing the ID of the DIS
something like icon._parent._parent.clip()._x etc???
I can't figure it out.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20120103/c2dfc2e3/attachment.html>
More information about the Xerte
mailing list