[Xerte] Re: Location in the tree?

Julian Tenney Julian.Tenney at nottingham.ac.uk
Fri Feb 15 11:33:00 GMT 2013


Send me your file

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 15 February 2013 11:33
To: Xerte list
Subject: [Xerte] Re: Location in the tree?

I guess I could try, but there are instances in the archives of it being used, so I figured something that basic would have raised a hew and cry earlier.


________________________________
From: Julian.Tenney at nottingham.ac.uk<mailto:Julian.Tenney at nottingham.ac.uk>
To: xerte at lists.nottingham.ac.uk<mailto:xerte at lists.nottingham.ac.uk>
Date: Fri, 15 Feb 2013 09:13:14 +0000
Subject: [Xerte] Re: Location in the tree?
Have you tried debugging in the function in the engine to see what's happening there?

From: xerte-bounces at lists.nottingham.ac.uk<mailto:xerte-bounces at lists.nottingham.ac.uk> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 14 February 2013 22:32
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');
inspect(itemArray);


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>

debug(itemArray.length);

3

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).

What?




_______________________________________________ Xerte mailing list Xerte at lists.nottingham.ac.uk<mailto:Xerte at lists.nottingham.ac.uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20130215/6a080124/attachment-0001.html>


More information about the Xerte mailing list