[Xerte] Re: viewing data in array question
KnowledgeWare
knowledgeware at kccsoft.com
Wed Sep 14 18:31:50 BST 2011
Cool! Thank you sir!
RonM2
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: Wednesday, September 14, 2011 2:11 AM
To: Xerte discussion list
Subject: [Xerte] Re: viewing data in array question
inspect(rootIcon.trackingData, true);
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of KnowledgeWare
Sent: 14 September 2011 04:16
To: Xerte discussion list
Subject: [Xerte] viewing data in array question
I'd like to be able to view all the data inside the rootIcon.trackingData
array - but when I run it in 'debug' it just lists (object Object) six
times. I was expecting to see a list of all the objects and properties.I'd
just like a visual way to confirm all the data in the array during
development. Anyone know how I can do that?
rootIcon.trackingData = new Array();
for (i=0;i<numpages;i++){
rootIcon.trackingData[i] = new Object();
}
rootIcon.trackingData[1].score = 88;
rootIcon.trackingData[1].passmark = 100;
rootIcon.trackingData[1].name = 'Mickey Mouse';
rootIcon.trackingData[2].score = 22222;
rootIcon.trackingData[3].score = 3333333;
debug( rootIcon.trackingData ); //all I see here is (object Object)
six times - was expecting to see score, passmark, name properties, etc.
TIA
RonM2
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/20110914/787af316/attachment-0001.html>
More information about the Xerte
mailing list