[Xerte] childNodes count?
Dave Burnett
d_b_burnett at hotmail.com
Thu Nov 18 20:52:40 GMT 2010
Here's the structure being read into templateData:
<brand>
<background graphic="intromen_ease.gif" x="0" y="0" w="100" h="200">
</background>
<navigation>
<back swf="btnBack_ease.swf" tooltip="Previous page Shortcut-key: Alt+Left" x="100" y="200" w="100" h="200"></back>
<next swf="btnNext_ease.swf" tooltip="Next page Shortcut-key: Alt+Right" x="200" y="200" w="100" h="200"></next>
<home swf="btnHome_ease.swf" tooltip="Unit home page Shortcut-key: Alt+Home" x="300" y="200" w="100" h="200"></home>
<open swf="btnOpen_ease.swf" tooltip="Open a unit Shortcut-key: Ctrl+O" x="400" y="200" w="100" h="200"></open>
<dict swf="btnDict_ease.swf" tooltip="Show the Dictionary" x="500" y="200" w="100" h="200"></dict>
<copy swf="btnCopy_ease.swf" tooltip="Copy text to your scrapbook" x="600" y="200" w="100" h="200"></copy>
</navigation>
</brand>
inspect(templateData.brand[0].navigation[0])
gives me 6 children:
copy : null
dict : null
open : null
home : null
next : null
back : null
debug(templateData.brand[0].navigation[0].childNodes.length);
gives me 4
fah.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20101118/69bce809/attachment.html
More information about the Xerte
mailing list