Scusa, ma io la chiamata la faccio subito dopo aver dichiarato la funzione:
function srlImg() {
Img = [];
carica = new LoadVars();
link = "http://127.0.0.1/srlImg.php?cat=" + cat;
//questo serve per evitare problemi di cache
carica.sendAndLoad(link, carica, "POST");
carica.onLoad = function() {
for (i in this) {
Img.push(this[i]);
}
};
carica = null;
}
srlImg();
Non vengono eseguite a cascata le operazioni?