I have this for that will get all data "this.retorno += data.usuarios[i].descr;"
and "this.retorno += data.usuarios[i].valor;"
wanted to take these values and make an array with them, then get those values stored in the array in another page with javascript.
I thought of something like this:
var myarry = new Array();
for (i = 0; i < this.qtd; i++) {
if (i == (this.qtd - 1)) {
this.retorno += data.usuarios[i].descr;
this.retorno += data.usuarios[i].valor;
} else {
// this.retorno += data.usuarios[i].descr;
// this.retorno += data.usuarios[i].valor;
myarray[0] = this.retorno += data.usuarios[i].descr;
myarray[1] = this.retorno += data.usuarios[i].descr;
myarray[2] = this.retorno += data.usuarios[i].descr;
myarray[3] = this.retorno += data.usuarios[i].descr;
myarray[4] = this.retorno += data.usuarios[i].descr;
alert(myarray[0]);
}