Ciao a tutti!
Risco ad importare in un campo di testo dinamico i dati salvati su MYSQL (tramite php). Come posso fare per poter selezionare un singolo dato?
Mi spiego meglio: nel campo di testo mi vengono elencati i vari cognomi degli utenti, vorrei poter selezionare (cliccare) un cognome per caricare il testo "biografia" (inerente la persona selezionata) in un altro campo di testo dinamico...
Questo é lo script che uso per caricare in flash i dati:
System.useCodepage = true;
_root.nome.html = true;
_root.cognome.html = true;
_root.datanascita.html = true;
stop();
{
loader = new LoadVars();
loader.load("script.php");
loader.onLoad = function(success) {
if(success)
{
if(this.ok)
{
_root.nome.htmlText = "";
_root.cognome.htmlText = "";
_root.datanascita.htmlText = "";
for(var j = 1; j <= this.i; j++)
{
_root.nome.htmlText += eval("this.nome" + j);
_root.cognome.htmlText += eval("this.cognome" + j);
_root.datanascita.htmlText += eval("this.datanascita" + j);
}
_root.output.text = "ok";
}
else
{
_root.nome.htmlText = "";
_root.cognome.htmlText = "";
_root.datanascita.htmlText = "";
_root.output.text = "error";
}
}
}
}
Potete aiutarmi?
Grazie a tutti!
Ciao
Nando

Rispondi quotando