mi trovo in questa situazione:
sò che è scorretto ma almeno fa capire la mia intenzione...codice:function bgtab(id) { var img=readFile("background.php?filename=test.png&newxsize="+getWidth(id)+"&newysize="+getHeight(id)+"&bgred="+173+"&bggreen="+223+"&bgblue="+156); //alert('larghezza tabella è ' + getWidth(id)+ ' pixel'); //alert('altezza tabella è ' + getHeight(id)+ ' pixel'); document.write(img); }
var img=readFile("background.php?filename=test.png&new xsize="+getWidth(id)+"&newysize="+getHeight(id)+"& bgred="+173+"&bggreen="+223+"&bgblue="+156);
come posso incapsulare il valore restituito da quel file con quella string query nella variabile img?


Rispondi quotando