Author |
Topic |
|
asp_storm
Average Member
USA
787 Posts |
Posted - 14 July 2001 : 16:22:54
|
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
|
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?) |
|
|
asp_storm
Average Member
USA
787 Posts |
Posted - 14 July 2001 : 18:51:23
|
sorry, to make you do all that, i just figured it out! just use <Form method... TARGET"_blank"
[_____-asp_newbie-_____] (__Webmaster__) [-Newschoolskiing.com-] |
|
|
Spoon
Average Member
Ireland
507 Posts |
Posted - 15 July 2001 : 12:13:23
|
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?) |
|
|
|
Topic |
|
|
|