Forums

This topic is locked

Submit form/New Browser Window/ Variables

Posted 25 Mar 2003 13:03:57
1
has voted
25 Mar 2003 13:03:57 jon perez posted:
I have a form and I would like it to open a new window but with predefined features like width, heigth, etc. I have been trying but no way to pass the variables.

Replies

Replied 25 Mar 2003 13:52:32
25 Mar 2003 13:52:32 Martha Graham replied:
You can apply the Open Window behavior to the submit button and let the follow up page for the form come up in the popup window.

Martha Graham
Replied 25 Mar 2003 15:00:54
25 Mar 2003 15:00:54 jon perez replied:
I have already tried this, but it doesn't send the variable. I tried with the onSubmit event too but nothing.
Replied 25 Mar 2003 15:02:32
25 Mar 2003 15:02:32 Martha Graham replied:
What programming language are you using?

Martha Graham
Replied 25 Mar 2003 15:16:27
25 Mar 2003 15:16:27 jon perez replied:
PHP in the form, Javascript for the Pop Up. Variables should go there via POST.
¿Do U want to see the code?
<script language="JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<form name="referencia" action="ficha.php" target="ficha">
<input type="text" name="varid" class="B">
<input type="button" value="Consultar" onClick="MM_openBrWindow('ficha.php','ficha','scrollbars=yes,width=650,height=550')">

Reply to this topic