This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > June 2004 > Submit Form to Popup - Not Seeing Variables





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Submit Form to Popup - Not Seeing Variables
Bill Unger

2004-06-11, 7:15 pm

I have been googling for about an hour and half and can't seem to find the
answer to this one - though I know it is a pretty common thing...

I have a form in my main page called Join - when the user clicks the Join
( submit ) button, the email field should be validated ( this part works
like a champ ) and then a new popup window ( need to use popup instead of
_blank target to control window size ) should open. The new popup window
simply makes a "Request" call to get the value from the email field and then
does some processing.

The validation works like a champ AND the popup window opens... but I am not
retrieving any values when I issue a Request against any of the form's
contents. Here is some snips of my code ( I left out the validation
tuff ).

Any thoughts would be greatly appreciated!!


function pop()
{
var newWin;
newWin
=window.open("joinConfirm.asp","joinConfirm",'resizable=no,scrollbars=no,wid
th=550,height=148,toolbar=no')
}
//-->
</script>


<form action="#" method="post" name="Join" target="newWin" onSubmit='pop()'>
Enter your email address and click Submit. You will then be notified of
site updates
and related news.
<input name="email" type="text"><br>
<input name="Join" type="submit"
onClick="MM_validateForm('email','','RisEmail');return
document.MM_returnValue" value="Join">
</form>


E Michael Brandt

2004-06-11, 11:14 pm

Have you tried using GET rather than POST for your form and then retrieving
the values from the Querystring?

--
E. Michael Brandt
www.valleywebdesigns.com


"Bill Unger" <billu@nospam.com> wrote in message
news:10ck1ooo642la9c@corp.supernews.com...
> I have been googling for about an hour and half and can't seem to find the
> answer to this one - though I know it is a pretty common thing...
>
> I have a form in my main page called Join - when the user clicks the Join
> ( submit ) button, the email field should be validated ( this part works
> like a champ ) and then a new popup window ( need to use popup instead of
> _blank target to control window size ) should open. The new popup window
> simply makes a "Request" call to get the value from the email field and

then
> does some processing.
>
> The validation works like a champ AND the popup window opens... but I am

not
> retrieving any values when I issue a Request against any of the form's
> contents. Here is some snips of my code ( I left out the validation
> tuff ).
>
> Any thoughts would be greatly appreciated!!
>
>
> function pop()
> {
> var newWin;
> newWin
>

=window.open("joinConfirm.asp","joinConfirm",'resizable=no,scrollbars=no,wid
> th=550,height=148,toolbar=no')
> }
> //-->
> </script>
>
>
> <form action="#" method="post" name="Join" target="newWin"

onSubmit='pop()'>
> Enter your email address and click Submit. You will then be notified

of
> site updates
> and related news.
> <input name="email" type="text"><br>
> <input name="Join" type="submit"
> onClick="MM_validateForm('email','','RisEmail');return
> document.MM_returnValue" value="Join">
> </form>
>
>



Sponsored Links


Copyright 2003 - 2009 forum4designers.com  Software forum  Computer Hardware reviews