Need Help

Results 1 to 4 of 4

Thread: Need Help

  1. #1
    Kalyani Rammanohar Guest

    Default Need Help

    I have form which has 3 buttons. Post. Preview. Cancel.<BR><BR>When I click preview it should open up a new window and at the same time pass on the values from the form. <BR><BR>My code is:&#060;FORM ACTION="http://216.160.123.29/members/preview.asp" METHOD="POST" onSubmit = "return CheckForm();"&#062;<BR>&#060;INPUT TYPE="hidden" NAME="recipient" VALUE="jobpost@consumerexpert.org"&#062;<BR>&#060; INPUT TYPE="hidden" NAME="redirect" VALUE="http://&#060;%= Application("CommunityDomain") %&#062;/members/received.asp"&#062;<BR>&#060;INPUT TYPE="hidden" NAME="subject" VALUE="Job Posting"&#062;<BR><BR>&#060;TR&#062;<BR>&#060;TD&# 062;&#060;FONT SIZE="2" FACE="Arial"&#062;&#060;B&#062;Position:&#060;/B&#062;&#060;/FONT&#062;&#060;/TD&#062;<BR>&#060;TD&#062;&#060;INPUT TYPE="text" SIZE="27" NAME="position"&#062;&#060;/TD&#062;<BR>&#060;TD BGCOLOR="#FFFFFF"&#062;&#060;/TD&#062;<BR>&#060;/TR&#062;<BR><BR>&#060;TR&#062;<BR>&#060;TD&#062;&# 060;FONT SIZE="2" FACE="Arial"&#062;&#060;B&#062;Company:&#060;/B&#062;&#060;/FONT&#062;&#060;/TD&#062;<BR>&#060;TD&#062;&#060;INPUT TYPE="text" SIZE="27" NAME="company"&#062;&#060;/TD&#062;<BR>&#060;TD BGCOLOR="Silver"&#062;&#060;FONT SIZE="2" FACE="Arial"&#062;&nbsp;optional&#060;/FONT&#062;&#060;/TD&#062;<BR>&#060;/TR&#062;<BR><BR>&#060;TR&#062;<BR>&#060;TD&#062;&# 060;FONT SIZE="2" FACE="Arial"&#062;&#060;B&#062;Location (City):&#060;/B&#062;&#060;/FONT&#062;&#060;/TD&#062;<BR>&#060;TD&#062;&#060;INPUT TYPE="text" SIZE="27" NAME="city"&#062;&#060;/TD&#062;<BR>&#060;TD BGCOLOR="Silver"&#062;&#060;FONT SIZE="2" FACE="Arial"&#062;&nbsp;optional&#060;/FONT&#062;&#060;/TD&#062;<BR>&#060;/TR&#062;<BR><BR>&#060;TR&#062;<BR>&#060;TD&#062;&# 060;FONT SIZE="2" FACE="Arial"&#062;&#060;B&#062;Location (State):&nbsp;&nbsp;&#060;/B&#062;&#060;/FONT&#062;&#060;/TD&#062;<BR>&#060;TD&#062;&#060;SELECT NAME="state"&#062;<BR>&#060;!--#include virtual="/inc/state.inc" --&#062;<BR>&#060;/SELECT&#062;&#060;/TD&#062;<BR>&#060;TD BGCOLOR="#FFFFFF"&#062;&#060;/TD&#062;<BR>&#060;/TR&#062;<BR><BR>&#060;TR&#062;<BR>&#060;TD VALIGN="TOP"&#062;&#060;FONT SIZE="2" FACE="Arial"&#062;&#060;B&#062;Description:&#060;/B&#062;&#060;/FONT&#062;&#060;/TD&#062;<BR>&#060;TD&#062;&#060;TEXTAREA NAME="desc" ROWS="7" COLS="25" MAXCHAR="1000"&#062;&#060;/TEXTAREA&#062;&#060;/TD&#062;<BR>&#060;TD BGCOLOR="#FFFFFF" VALIGN="TOP"&#062;&#060;TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2"&#062;&#060;TR&#062;&#060;TD BGCOLOR="Silver"&#062;&#060;FONT SIZE="2" FACE="Arial"&#062;&nbsp;1000 Characters&nbsp;&#060;/FONT&#062;&#060;/TD&#062;&#060;/TR&#062;&#060;/TABLE&#062;&#060;/TD&#062;<BR>&#060;/TR&#062;<BR><BR>&#060;TR&#062;<BR>&#060;TD VALIGN="TOP"&#062;&#060;FONT SIZE="2" FACE="Arial"&#062;&#060;B&#062;Contact Info:&#060;/B&#062;<BR>(send app to)&#060;/FONT&#062;&#060;/TD&#062;<BR>&#060;TD&#062;&#060;TEXTAREA NAME="contact" ROWS="4" COLS="25" MAXCHAR="250"&#062;&#060;/TEXTAREA&#062;&#060;/TD&#062;<BR>&#060;TD BGCOLOR="#FFFFFF" VALIGN="TOP"&#062;&#060;/TD&#062;<BR>&#060;/TR&#062;<BR><BR>&#060;TR&#062;<BR>&#060;TD COLSPAN="3"&#062;<BR>&#060;HR SIZE="1" COLOR="Black"&#062;<BR>&#060;FONT SIZE="3" FACE="Arial"&#062;&#060;B&#062;Job Poster&#039s Information...&#060;/B&#062;&#060;/FONT&#062;&#060;FONT SIZE="2" FACE="Arial"&#062;(internal verification only)&#060;/FONT&#062;<BR>&#060;/TD&#062;<BR>&#060;/TR&#062;<BR><BR>&#060;TR&#062;<BR>&#060;TD VALIGN="TOP"&#062;&#060;FONT SIZE="2" FACE="Arial"&#062;&#060;B&#062;Contact Name:&#060;/B&#062;&#060;/FONT&#062;&#060;/TD&#062;<BR>&#060;TD&#062;&#060;INPUT TYPE="text" SIZE="27" NAME="PosterName"&#062;&#060;/TD&#062;<BR>&#060;TD BGCOLOR="Silver"&#062;&#060;FONT SIZE="2" FACE="Arial"&#062;&nbsp;required&#060;/FONT&#062;&#060;/TD&#062;<BR>&#060;/TR&#062;<BR><BR>&#060;TR&#062;<BR>&#060;TD VALIGN="TOP"&#062;&#060;FONT SIZE="2" FACE="Arial"&#062;&#060;B&#062;Contact Phone:&#060;/B&#062;&#060;/FONT&#062;&#060;/TD&#062;<BR>&#060;TD&#062;&#060;INPUT TYPE="text" SIZE="27" NAME="PosterPhone"&#062;&#060;/TD&#062;<BR>&#060;TD BGCOLOR="Silver"&#062;&#060;FONT SIZE="2" FACE="Arial"&#062;&nbsp;required&#060;/FONT&#062;&#060;/TD&#062;<BR>&#060;/TR&#062;<BR><BR>&#060;TR&#062;<BR>&#060;TD VALIGN="TOP"&#062;&#060;FONT SIZE="2" FACE="Arial"&#062;&#060;B&#062;Contact E-Mail:&#060;/B&#062;&#060;/FONT&#062;&#060;/TD&#062;<BR>&#060;TD&#062;&#060;INPUT TYPE="text" SIZE="27" NAME="PosterEmail"&#062;&#060;/TD&#062;<BR>&#060;TD BGCOLOR="#FFFFFF" VALIGN="TOP"&#062;&#060;/TD&#062;<BR>&#060;/TR&#062;<BR><BR>&#060;TR&#062;<BR><BR>&#060;TD&#06 2;&#060;/TD&#062;<BR><BR>&#060;TD&#062;&#060;CENTER&#062;&# 060;INPUT TYPE="Submit" NAME="Submit" VALUE="Submit Job"&#062;&nbsp;<BR>&#060;INPUT TYPE="Reset" NAME="Reset" VALUE="Clear Form"&#062;<BR>&#060;INPUT TYPE="Submit" NAME="Preview" VALUE="Preview Job" onClick="opennewwindow()"&#062;&nbsp;&#060;/CENTER&#062;<BR>&#060;/CENTER&#062;<BR>&#060;/TD&#062;<BR>&#060;TD&#062;&#060;/TD&#062;<BR>&#060;/TR&#062;<BR><BR>&#060;/FORM&#062;<BR> <BR>&#060;/TABLE&#062;<BR><BR><BR><BR>Guys, <BR>Ur help will be greatly appreciated. I just donot know how to integrate the javascript and ASP.<BR><BR>thanks Thanks thanks in advance<BR>Kalyani Rammanohar

  2. #2
    Join Date
    Dec 1969
    Posts
    119

    Default RE: Need Help

    &nbsp;<BR> Hi<BR> you don&#039t need to write any javascript b&#039cos your using<BR> submit type button so when u click ur post or preview u can<BR> get the values in the new window or form as u are passing<BR> the variables in hidden fields ...<BR><BR> you can remove onsubmit = "opennewwindow()" b&#039cos if u press<BR> submit it will go to the page which u specifed in the action<BR> tag with the hidden values....<BR><BR> i hope this will help<BR><BR> Arvind.

  3. #3
    Kalyani Guest

    Default RE: Need Help

    I need to customize the window without toolbar menu bar etc. I want a new browser window. Right now it has all toolbar items<BR><BR>Thanks,<BR>Kalyani

  4. #4
    Sathiya Guest

    Default RE: Need Help

    Without toolbar, menubar if u want to create a window use this script with script tag as javascript.<BR><BR>&#060;input type="Hidden" name="Target1" value="Some.asp"&#062;<BR>&#060;script language="javascript"&#062; <BR> Target1 = document.Test.Target1.value <BR> var targeturl1 = Target1 <BR> newwin1 = window.open("","","scrollbars") <BR> if (document.all)<BR> { <BR> newwin1.moveTo(0,0) <BR> newwin1.resizeToscreen.width,screen.height ) } <BR> newwin1.location=targeturl1 <BR><BR>but i think u can write a javascript inside a ASP script. So you should find a logic by which this code will be executed after executing ur ASP codes.<BR>


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •