2
Why doesn’t it work? I say it shows twice my Alert and then to, being that the value of aux_count
is 17.
for(var i = aux_cont; i > 0; i++ ){
var eval_data = eval(obj_grafico[aux_cont].series);
alert(aux_cont);
alert(i);
$.ajax({
type:"POST",
url:"../../tmp/cria_json_pan_servidor.php",
data:{
montante_y:obj_grafico[i].montante_y,
tickInterval_y:obj_grafico[i].tickInterval_y,
min_y:obj_grafico[i].min_y,
max_y:obj_grafico[i].max_y,
min_x:obj_grafico[i].min_x,
max_x:obj_grafico[i].max_x,
tickInterval_x:obj_grafico[i].tickInterval_x,
filename:obj_grafico[i].filename,
},
cache:false
});
}
below how I define the values of my object:
obj_grafico[aux_cont] = {
montante_y: montante_y,
tickInterval: intervalo_y,
min_y: min_y,
max_y: max_y,
min_x: min_x,
max_x: max_x,
tickInterval: intervalo_x,
tickAmount: montante_x,
series: seriesOptions,
filename: hostname
}
You can change the image by the pf code?
– BrTkCa
@Lucascosta altered it
– Julio Henrique
I think if you’re wrong, it wouldn’t be
for(var i = 0; i < aux_cont; i++ ){
? And check the console for any error messages..– BrTkCa