Forums
This topic is locked
Advanced Window 3 - Form value submitted to window
Posted 20 Jul 2003 03:22:18
1
has voted
20 Jul 2003 03:22:18 Vernon Webb posted:
No form values submitted to popup window - Is this by design?I have a form that is being submitted to a popup window, but when the form is submitted and the window opens none of the values from any of the form elements are being submitted to that form.
Is this by design? I would imagine not, but since none of the form values will echo to the page I'm wondering what's wrong? Any ideas?
Thanks
Replies
Replied 21 Jul 2003 17:26:53
21 Jul 2003 17:26:53 Vernon Webb replied:
Does anyone know? I see people reading this message, but no one is responding. Is it even possible?
Someone told me elsewhere that I could use target='windowname' but that doesn't work.
Just to recap I need to have a form submitted to a results page. That results page I would like to open in a pop up window. If I cannot do this with Advanced Window 3, does anyone know of a way to do it?
Thanks
Someone told me elsewhere that I could use target='windowname' but that doesn't work.
Just to recap I need to have a form submitted to a results page. That results page I would like to open in a pop up window. If I cannot do this with Advanced Window 3, does anyone know of a way to do it?
Thanks
Replied 22 Jul 2003 12:08:06
22 Jul 2003 12:08:06 Patrick Woldberg replied:
I don't know if this is possible, but I will do some testing to see if I can get it working or maybe find an other solution for you
--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------
--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------
Replied 22 Jul 2003 13:23:41
22 Jul 2003 13:23:41 Patrick Woldberg replied:
I did some testing and research, there is no way you can pass form variables to a popup window.
I found a workaround, not the nicest but it works. In the <form> tag use the action attribute to submit to a new page and use target="_blank". On the page where you submit to put the Advanced Open Window on the body onLoad and give all the form variables which should be passed to the popup along with the path, so in asp it should become something like:
<body onLoad="GP_AdvOpenWindow('results.asp?<%= Request.Form("Name"
%>','Results','fullscreen=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,channelmode=no,directories=no',400,200,'center','ignoreLink','',0,'',0,1,5,'');return document.MM_returnValue">
--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------
I found a workaround, not the nicest but it works. In the <form> tag use the action attribute to submit to a new page and use target="_blank". On the page where you submit to put the Advanced Open Window on the body onLoad and give all the form variables which should be passed to the popup along with the path, so in asp it should become something like:
<body onLoad="GP_AdvOpenWindow('results.asp?<%= Request.Form("Name"

--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------
Replied 23 Jul 2003 16:27:14
23 Jul 2003 16:27:14 Vernon Webb replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
I did some testing and research, there is no way you can pass form variables to a popup window.
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
You are incorrect. I have goitten it to work. Using the taget="windowname" resolved it. I had an error on my end that caused it not to work where I was using GET instead of post and the result page was using GET. Anyway, for anyone looking for an answer to the issue the following will work:
<font color=red>
<form action="/searchresults.php" method="get" name="quicksearch" onSubmit="GP_AdvOpenWindow('/searchresults.php','Results','fullscreen=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,channelmode=no,directories=no',760,420,'center','','',0,'',0,1,5,'');return document.MM_returnValue" target="Results">
</font id=red>
I did some testing and research, there is no way you can pass form variables to a popup window.
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
You are incorrect. I have goitten it to work. Using the taget="windowname" resolved it. I had an error on my end that caused it not to work where I was using GET instead of post and the result page was using GET. Anyway, for anyone looking for an answer to the issue the following will work:
<font color=red>
<form action="/searchresults.php" method="get" name="quicksearch" onSubmit="GP_AdvOpenWindow('/searchresults.php','Results','fullscreen=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,channelmode=no,directories=no',760,420,'center','','',0,'',0,1,5,'');return document.MM_returnValue" target="Results">
</font id=red>