[Xerte] array thing

Dave Burnett d_b_burnett at hotmail.com
Wed Jan 19 22:00:40 GMT 2011



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?
  
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110119/883c28b6/attachment.html>


More information about the Xerte mailing list