JorgeJ2ee20 de Diciembre del 2004
PreguntaEstoy buscando un JavaScript para abrir un PopUp y que este pase valores de un formulario al servido, por ejempo un JSP, y se despliegen en el PopUP.
gracias
Tengo esto pero no abre un PopUp:
<form name="theForm" method="post" action="prueba.jsp">
<input type=text name="comentario">
<a href="javascript:document.theForm.submit();">Submit</a>
</form>
y este abre un PopUp pero no puedo pasar valores al servidor:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
// End -->
</script>
gracias
Tengo esto pero no abre un PopUp:
<form name="theForm" method="post" action="prueba.jsp">
<input type=text name="comentario">
<a href="javascript:document.theForm.submit();">Submit</a>
</form>
y este abre un PopUp pero no puedo pasar valores al servidor:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
// End -->
</script>
