[Xerte] Re: Array length when none expected
Dave Burnett
d_b_burnett at hotmail.com
Wed Mar 14 10:58:52 GMT 2012
Should it matter? ;-)
unitData.sendAndLoad
<![CDATA[dave~fred]]>length reports 2
<![CDATA[dave]]>length reports 1
<![CDATA[]]>length reports 1
From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Wed, 14 Mar 2012 10:35:55 +0000
Subject: [Xerte] Re: Array length when none expected
How are you reading it in? From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 14 March 2012 10:30
To: Xerte list
Subject: [Xerte] Array length when none expected feedback_right is an XML CDATA node that is read in <RRIGHT x="50" y="200"> <![CDATA[]]> </RRIGHT> rarray = feedback_right.toString().split('~');debug(feedback_right); //blankdebug(rarray); //blankdebug(rarray.length); // 1 Why is it exhibiting length?
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/20120314/6e112509/attachment-0001.html>
More information about the Xerte
mailing list