ciao a tutti
allora prendo i dati da php e vorrei passarli ad una combo box ho fatto cosi ma non si riempie
codice:
Ricerca.onRelease = function() {
myVars = new LoadVars();
myVars.path = this;
myVars.cerca = cerca.text;
myVars.onLoad = function(success) {
if (success) {
if (risultato="") {
errorMsg.text = "Nessun Risultato";
} else {
myVars = this.risultato.split("|");
for (i=0; i<myVars.length; i++) {
this.path.combo.addItem(myVars[i]);
riss.text = this.risultato; //qui i dati arrivano
}
}
}
};
myVars.sendAndLoad("http://localhost/search.php", myVars, "GET");
};
però i dati arrivano perchè li stampo su una variabile sulla root
Qualche consiglio??