[Xerte] Re: Location in the tree?

Paul Swanson Paul.Swanson at harlandfs.com
Fri Feb 15 15:38:27 GMT 2013

How about a for loop instead of inspect?

for ( i = 0; i < itemArray.length; i++) {

Paul Swanson
Internal Business Systems Analyst
Internal Business Intelligence
Harland Financial Solutions
(800) 274-7280 Ext. 2462
Paul.Swanson at harlandfs.com

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: Thursday, February 14, 2013 2:32 PM
To: Xerte list
Subject: [Xerte] Re: Location in the tree?

I have 3 pages named Main page hanging off Interface.

The code below is called from the entrypane off Interface.

itemArray = new Array();
itemArray = icon.parentNode.parentNode.parentNode.parentNode.findChildNodes('name','Main page');

2 : <PG id="ic26" name="Main page"><SCR name="[Untitled]"></SCR></PG>
1 : <PG id="ic25" name="Main page"><DIS name="[Untitled]" x="0" y="0" type="ext" url="FileLocation + "></DIS></PG>



So the length says there's 3 items in the array, inspecting the array shows me 2 (the last 2 of the 3 called Main page).


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20130215/f4aefc61/attachment-0001.html>

More information about the Xerte mailing list