[Xerte] Re: Location in the tree?
Julian Tenney
Julian.Tenney at nottingham.ac.uk
Fri Feb 15 16:31:32 GMT 2013
Have you eyeballed the xml diretly in a text editor? Does it all look OK?
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 16:25
To: Xerte list
Subject: [Xerte] Re: Location in the tree?
Yes.
The findChildNodes fills the array correctly.
It's bizarre.
________________________________
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 16:13:11 +0000
Subject: [Xerte] Re: Location in the tree?
So it blows up if you execute two erase() calls, but only after a block comment? If you strip the comment it works?
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: 15 February 2013 16:05
To: Xerte list
Subject: [Xerte] Re: Location in the tree?
Tried all sorts of combinations.
That second erase() line kills it for some odd reason.
Don't spend any time on it.
I'm just going to remove all those comments and see what we get.
________________________________
From: Paul.Swanson at harlandfs.com<mailto:Paul.Swanson at harlandfs.com>
To: xerte at lists.nottingham.ac.uk<mailto:xerte at lists.nottingham.ac.uk>
Date: Fri, 15 Feb 2013 15:44:51 +0000
Subject: [Xerte] Re: Location in the tree?
Maybe mixing multi-line comments with c-style single-line comments (#) causes problems? Try all single-line comments, or just the multi-line comments. I tend to use the // style.
Paul Swanson
Internal Business Systems Analyst
Internal Business Intelligence
Harland Financial Solutions
(800) 274-7280 Ext. 2462
Paul.Swanson at harlandfs.com<mailto:Paul.Swanson at harlandfs.com>
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: Friday, February 15, 2013 7:27 AM
To: Xerte list
Subject: [Xerte] Re: Location in the tree?
Narrowed it down to this:
I have hundreds of script icons like so:
/*This was an Erase icon with these properties:
#AWAffectedArea: #changingAreaOnly
#AWEraseDuration:
#AWEraseSmoothness:
#AWPreventFade: 0
#AWPreserveIcons: 0;*/
i68804.erase();
i68803.erase();
etc up to 10 erases
==================================
If I remove the /* */ block, it works.
If I leave the block and have a single erase() line, it works.
If I leave the block and have more than a single erase() line, it blows up (first findChild reult of array is blank)
Anything jump out at anyone?
________________________________
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
_______________________________________________ Xerte mailing list Xerte at lists.nottingham.ac.uk<mailto:Xerte at lists.nottingham.ac.uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
_______________________________________________ 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/55ea18eb/attachment-0001.html>
More information about the Xerte
mailing list