[Xerte] Re: array thing

Dave Burnett d_b_burnett at hotmail.com
Wed Jan 19 22:14:24 GMT 2011



Doi.
Had that data grab inside the icon.built condition.

Thanks for making me look for the obvious. :-)



From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Wed, 19 Jan 2011 22:08:26 +0000
Subject: [Xerte] Re: array thing











the array probably works fine, it might be how you are populating it. Does tableData[0].QUERY change between the pages?
 


From: xerte-bounces at lists.nottingham.ac.uk [xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett [d_b_burnett at hotmail.com]

Sent: 19 January 2011 22:07

To: Xerte list

Subject: [Xerte] Re: array thing







Sure, I can make the arrays separate.



I'm just wondering why the code executes correctly in one direction, but not the other.

?












From: Julian.Tenney at nottingham.ac.uk

To: xerte at lists.nottingham.ac.uk

Date: Wed, 19 Jan 2011 22:02:43 +0000

Subject: [Xerte] Re: array thing





initialise it up front somewhere?
 
Or make it a property of some handy icon, myHandyIcon.tracking = new Array();
 


From: xerte-bounces at lists.nottingham.ac.uk [xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett [d_b_burnett at hotmail.com]

Sent: 19 January 2011 22:00

To: Xerte list

Subject: [Xerte] array thing







I have a proto and am trying to re-use an array in that proto





tbl_correct_array = new Array();

debug(tbl_correct_array); //shows blank



//load the array 

for (i = 0; i < tableData[0].QUERY.length; i++){ 

debug('new array');

   temp_array = tableData[0].QUERY[i].data.split(',');

  for (j = 0; j < temp_array.length; j++){ 

    tbl_correct_array.push(temp_array[j]);

  }

}







Now, I go to page 1, array loads correctly.



On to page 2, array loads correctly.



back to page 1, load loop says it's happening, but the array from page 2 persists.



Ideas?

  





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

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/20110119/981dd2e2/attachment.html>


More information about the Xerte mailing list