
26/01/2002, 17:24
|
| | Fecha de Ingreso: enero-2002
Mensajes: 74
Antigüedad: 23 años, 4 meses Puntos: 0 | |
Re: SUMIT & POPup a ver yo lo he hecho.. con javascript
<script language="JavaScript">
<!--
//esta funcion dispara el popup y envia el formul
function envia_formul(){
//abres el pop up
f_abrir_Popup('ventana que recibe del formulario','', 150, 170, 675, 350, 0, 0, 0, 1, 0);
//envias el formulario
document.nombre_formulario.submit()
}
//funcion que crea el popup
function f_abrir_Popup(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable){
toolbar_str = toolbar ? 'yes' : 'no';
menubar_str = menubar ? 'yes' : 'no';
statusbar_str = statusbar ? 'yes' : 'no';
scrollbar_str = scrollbar ? 'yes' : 'no';
resizable_str = resizable ? 'yes' : 'no';
window.open(url, name, 'left='+left+',top='+top+',width='+width+',height= '+height+',toolbar='+toolbar_str+', menubar='+menubar_str+',status='+statusbar_str+',s crollbars='+scrollbar_str+',resizable='+resizable_ str);
}
-->
</script>
en tu html
<form name="nombre_formulario" action="post" action="formul.htm" onSubmit="javascript:envia_formul();return&qu ot;>
Instrucciones de tu formulario
</form>
espero te sirva.. pero la cosa va por ahi...
manuel |