ciao a tutti,
devo passare dei valori ad una funzione, questi valori arrivano da un'latra funzione come posso fare
codice:
<html>
<head>
<title>combo box</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script>
function displayInfoSistema() {
var sistema_value = document.getElementById("sistema").value;
var sistema_label = document.getElementById("sistema");
var testo = sistema_label.options[sistema_label.selectedIndex].text;
var textsistema = document.getElementById("textsistema");
if(sistema_value != 00){
textsistema.value = sistema_value;
test_popup.value = testo;
alert(testo);
/// come scrivo adesso per richiamare questa funzione?
javascript:popImage('../public/img/testo.jpg','VISUALIZZA');
}
}
</script>
</head>
<body>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td>
<select name="sistema" id="sistema" onChange="displayInfoSistema()">
<option value="00"></option>
<option value="01">PRIMO</option>
<option value="02">SECONDO</option>
<option value="03">TERZO</option>
<option value="04">QUARTO</option>
<option value="05">QUINTO</option>
<option value="06">SESTO</option>
<option value="07">SETTIMO</option>
</select>
[img]../images/img/page.gif[/img]
</td>
</tr>
<tr>
<td>
<input name="textsistema" type="text" id="textsistema">
<input name="test_popup" type="text" id="test_popup">
</td>
</tr>
</table>
</body>
</html>
grazie :master: