Vincent van Beveren wrote:[color=blue][color=green]
> > How can I submit the form in a popup window and another page using a[/color]
> html[color=green]
> > link?[/color]
>
> You need to define the form in the following manner (note the target):
>
> <form action="savequote.asp" target="popup" name="quote">
> ... form data ..
> </form>
>
> The link like this
>
> <A HREF="javascript
:saveQuote();">Save Quote</A>[/color]
And then read this:
http://www.jibbering.com/faq/#FAQ4_24
[color=blue]
> And some script code
>
> <SCRIPT LANGUAGE="JavaScript">[/color]
<script type="text/javascript">
[color=blue]
> function saveQuote() {
>
> // first open window with right target
> popup = window.open("about
:blank", "popup", "etc..");
>
> // then submit form into this window
> document.quote.submit();[/color]
document.forms['quote'].submit();
[color=blue]
> }
>
>
> </SCRIPT>
>
> That should work.
>[/color]
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ -
http://jibbering.com/faq/