Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 17th, 2004, 06:03 PM
Authorized User
 
Join Date: Mar 2004
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to gmoney060 Send a message via MSN to gmoney060
Default Preview Button Problem:

If anyone why this is not working it would be great.

i am getting the values from the form on the first page, but i can not get it to be put into the new form.... I think that is why my problem is!

Code:
<script language="JavaScript" type="text/javascript">
<!--
function viewform()
{
document.viewform.message.value = window.opener.document.newtopic.message.value;
if (window.opener.document.newtopic.displaysignature){
    if (window.opener.document.newtopic.displaysignature.checked){
        document.viewform.displaysignature.value = "yes"
        }
    }
}
document.write(window.opener.document.newtopic.message.value)
</script>

<%
    Response.Write( "<script language=""JavaScript"" type=""text/javascript"">submitPreview();</script>" & vbNewLine & _
                    "<form name=""viewform"" method=""post"" action="""">" & vbNewLine & _
                    "    <input type=""hidden"" name=""displaymessage"" value="""">"  & vbNewLine & _
                    "    <input type=""hidden"" name=""displaysignature"" value="""">"  & vbNewLine & _
                    "</form>" & vbNewLine & _
                    "<script language=""JavaScript"" type=""text/javascript"">submitPreview();</script>")

    Response.Write( "<table width=""95%"" border=""1"" bordercolor=""white"" bgcolor=""#F8F8F8"" cellpadding=""0"" cellspacing=""0"" align=""center"">" & vbNewLine & _
                    "    <tr bgcolor=""#000099"">" & vbNewLine & _
                    "        <td align=""center""><strong>Message Preview</strong></a></td>" & vbNewLine & _
                    "    </tr>" & vbNewLine & _
                    "    <tr>"    & vbNewLine & _
                    "        <td>"&EditMessage(request.Form("message2"))&"</td>" & vbNewLine & _
                    "    </tr>" & vbNewLine & _
                    "    <tr>" & vbNewLine & _
                    "        <td align=""center""><input type=""button"" value=""Close Window"" onClick=""javascript:self.close();""></td>" & vbNewLine & _
                    "    </tr>" & vbNewLine & _
                    "</table>")
%>
 
Old August 17th, 2004, 06:11 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Which part of the code you want to look into? Where do you face the problem in this code?

_________________________
- Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
IE7 print preview problem nasirmunir HTML Code Clinic 1 June 25th, 2008 08:37 AM
print preview problem with IE7 nasirmunir CSS Cascading Style Sheets 1 June 25th, 2008 08:36 AM
Textbox problem print preview vs. print jenisageek Access 5 May 2nd, 2008 12:54 PM
Print Preview problem snanuwa Access 0 August 7th, 2006 09:26 AM
Print Preview problem aspadda Excel VBA 0 March 17th, 2004 10:37 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.