[Xerte] Re: hitTest question
Julian Tenney
Julian.Tenney at nottingham.ac.uk
Wed Feb 2 10:04:13 GMT 2011
It is that way. xmlNode.duplicate(4) will create four new nodes from the original duplicated node, making five in total. I've done this so many times I know it works, so there must be another problem in the code somewhere if you only end up with four children. Need to debug each step, and see what's going on.
From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 01 February 2011 22:58
To: Xerte list
Subject: [Xerte] Re: hitTest question
Done it the other way dozens of times and it seems to work.
;-)
________________________________
Date: Tue, 1 Feb 2011 14:41:43 -0800
From: Paul.Swanson at harlandfs.com
To: xerte at lists.nottingham.ac.uk
Subject: [Xerte] Re: hitTest question
I think that is what it is supposed to do. From the Help file:
To create five pages on a framework that follows a script icon, and that has an initial prototypical page on it:
icon.nextSibling.firstChild.duplicate(5);
I think the prototype itself is not displayed, just the duplicates of it.
From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: Tuesday, February 01, 2011 2:16 PM
To: Xerte list
Subject: [Xerte] Re: hitTest question
Sorry, pilot error.
Missing semi-colon in 80 lines of code.
Now a new one.
I have the proto textfield set up and working, now I do a duplicate(4) and only get the last 4.
First one seems to be being destroyed or overwritten or something.
sigh
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
_______________________________________________ Xerte mailing list Xerte at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110202/2a963027/attachment.html>
More information about the Xerte
mailing list