[Xerte] indexOf and arrays
Dave Burnett
d_b_burnett at hotmail.com
Thu Oct 21 17:52:19 BST 2010
Found it.
I thought an array of strings would be treated as such, but apparently not. :-)
attributeArray.toString().indexOf('graphic');
From: Patrick.Lockley at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Thu, 21 Oct 2010 17:38:17 +0100
Subject: RE: [Xerte] indexOf and arrays
Can only suggest searching the code, or waiting for Julian.
From:
xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 21 October 2010 17:31
To: Xerte list
Subject: [Xerte] indexOf and arrays
Can I check for an array value
I debug my array and get this:
graphic,text,index
But,
debug(attributeArray.indexOf('graphic')); //returns undefined.
indexOf not supported or my syntax stinks?
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/20101021/c95e9651/attachment.html
More information about the Xerte
mailing list