Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 New Window For Form
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

asp_storm
Average Member

USA
787 Posts

Posted - 14 July 2001 :  16:22:54  Show Profile  Visit asp_storm's Homepage  Send asp_storm an AOL message
Does Anyone Know How To Make It So That When You Click a "Submit" button, it passes the form values to a new window?

[_____-asp_newbie-_____]
(__Webmaster__)
[-Newschoolskiing.com-]

Spoon
Average Member

Ireland
507 Posts

Posted - 14 July 2001 :  18:21:15  Show Profile  Visit Spoon's Homepage  Send Spoon an ICQ Message
Why you wanna go and do something like that? :) i tried a few things to try and help you out, none worked, i dont know anyway you can do that, perhaps try putting your base target in your body tag as "_blank"

You could use javascipt though

edit it to your needs
stick this in your head tags on the form page
---------
---------
<script language="JavaScript">

function preview(){
VALUE = document.FORMNAME.TEXTBOX_NAME.value;
ANOTHERVALUE = document.FORMNAME.ANOTHER_TEXT_BOX_NAME.value;
preWindow=
open("","preWindow","status=no,toolbar=no,menubar=yes");
preWindow.document.open();
preWindow.document.write("<HTML><HEAD><TITLE>Your form contents</TITLE></HEAD><BODY>");
preWindow.document.write(VALUE);
prewindow.document.write(ANOTHERVALUE);
preWindow.document.close();
}
</script>

----------
----------

in your form have a submit link like this

---------
--------

<a href="javascript:preview()">SUBMIT</a>

---------
---------

-----------------------------------------------------------------------------------------
Or TRY THIS
-----------------------------------------------------------------------------------------

PUT THIS IN YOUR HEAD TAGS

--------------
-------------
<script Language="Javascript">

function OPENMYWINDOW(){
previewWin=window.open("collect.asp","","scrollbars=yes,width=800,height=300")
}
</script>

-----------
-----------

Then in you form have a link like so

-----------
----------
<a href="javascript:OPENMYWINDOW()">SUBMIT</a>
----------
---------

Then make a page called collect.asp and put this piece of code in it

--------
--------
<script language="JavaScript">
<!--//
document.write(window.opener.document.FORMNAME.TEXTBOX_NAME.value)
//-->
</script>

---------
---------

hope this helps you





Regards,

Spoon, (ya all love me right?)
Go to Top of Page

asp_storm
Average Member

USA
787 Posts

Posted - 14 July 2001 :  18:51:23  Show Profile  Visit asp_storm's Homepage  Send asp_storm an AOL message
sorry, to make you do all that, i just figured it out! just use
<Form method... TARGET"_blank"


[_____-asp_newbie-_____]
(__Webmaster__)
[-Newschoolskiing.com-]
Go to Top of Page

Spoon
Average Member

Ireland
507 Posts

Posted - 15 July 2001 :  12:13:23  Show Profile  Visit Spoon's Homepage  Send Spoon an ICQ Message
quote:

sorry, to make you do all that, i just figured it out! just use
<Form method... TARGET"_blank"


[_____-asp_newbie-_____]
(__Webmaster__)
[-Newschoolskiing.com-]



hmm, i tried that too, it didnt work for me,
No matter

Regards,

Spoon, (ya all love me right?)
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.39 seconds. Powered By: Snitz Forums 2000 Version 3.4.07