
07/10/2009, 10:31
|
| | Fecha de Ingreso: septiembre-2008
Mensajes: 2
Antigüedad: 16 años, 5 meses Puntos: 0 | |
Respuesta: Enviar variables POST a un popup En tu java
function Mifuncion(Val)
{
document.getElementById('idinput').value = Val;
document.getElementById('formName').submit();
}
Agrega a tu formulario un target win... y te abrira un popup
<form name="formName" id="formName" action="Tupagina.php" method="post" target="WIN">
<input type="hidden" name="idinput" id="idinput" >
</form>
<input type="button" value="preview" onclick="Mifuncion(2)">
Esto te abre un popup y envias el parametro idinput con valor 2
Pruebalo a mi me funciono.. lo que todavia no se es con esta forma como agregarle propiedades al popup, como el width el scroll, si alguien sabe como pues, posteelo porfa.. |