Questo è il codice del popup lato client:
codice:
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script language="JavaScript" type="text/javascript">
<!--
function PassaValore(valore) {
window.opener.document.getElementById('campo1').innerHTML= valore;
window.opener.document.getElementById('campo1').focus();
self.close();
}
//-->
</script>
</head>
<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<h1>Lista</h1>
</td>
</tr>
<tr>
<td>
Primo valore
</td>
</tr>
<tr>
<td>
Secondo valore
</td>
</tr>
</table>
</body>
</html>
e questo l'estratto (tutta sarebbe troppo lunga) della pagina chiamante:
nel javascript:
codice:
function SelectCampo1(a) {
window.open("selezione.asp?codice="+a,"","width=400,height=220,top=10,left=10,scrollbars=yes")
}
e nel form:
codice:
<input type="text" name="campo1" id="campo1" value="">
?
Spero di aver messo tutto e che questo sia quello che volevi....
Grazie