[Xerte] Re: Array length when none expected

Julian Tenney Julian.Tenney at nottingham.ac.uk
Wed Mar 14 10:37:47 GMT 2012


Length.

-----Original Message-----
From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Pat Lockley
Sent: 14 March 2012 10:37
To: Xerte discussion list
Subject: [Xerte] Re: Array length when none expected

is 1 length, or is 1 true

On Wed, Mar 14, 2012 at 10:30 AM, Dave Burnett <d_b_burnett at hotmail.com> wrote:
> 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); //blank
> debug(rarray); //blank
> debug(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.
>
>

_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte



More information about the Xerte mailing list