Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing hidden form values to new pop-up window?

Status
Not open for further replies.

HuskerMark

Programmer
May 21, 2001
4
US
I'm trying without success to pass hidden form values to a new pop-up window that I've created. I'm pretty new to this, and could be missing something obvious, or I might not have the correct understanding of the window.open concept. I appreciate any guidance that any of you might have to offer.

I've tried this several different ways, but following is the basic code that I have so far (which opens the new window, but doesn't carry the hidden values I need.):

<form method=&quot;post&quot; action=&quot;&quot; name=&quot;frmWord&quot; onSubmit=&quot;window.open('word_create.asp')&quot;>

<input type=&quot;hidden&quot; name=&quot;nmeInsured&quot; value=&quot;<%=nmeInsured%>&quot;>
<input type=&quot;hidden&quot; name=&quot;CashPrice&quot; value=&quot;<%=CashPrice%>&quot;>
<input type=&quot;hidden&quot; name=&quot;StampTax&quot; value=&quot;<%=StampTax%>&quot;>
<input type=&quot;hidden&quot; name=&quot;AppFee&quot; value=&quot;<%=AppFee%>&quot;>
<input type=&quot;hidden&quot; name=&quot;NumOfPmts&quot; value=&quot;<%=NumOfPmts%>&quot;>
<input type=&quot;hidden&quot; name=&quot;PmtAmt&quot; value=&quot;<%=PmtAmt%>&quot;>
<input type=&quot;hidden&quot; name=&quot;PolEffDate&quot; value=&quot;<%=PolEffDate%>&quot;>
<input type=&quot;hidden&quot; name=&quot;AnnualRate&quot; value=&quot;<%=AnnualRate%>&quot;>
<input type=&quot;hidden&quot; name=&quot;FinCharge&quot; value=&quot;<%=FinCharge%>&quot;>
<input type=&quot;hidden&quot; name=&quot;PmtOpt&quot; value=&quot;<%=PmtOpt%>&quot;>
<input type=&quot;hidden&quot; name=&quot;TotalPays&quot; value=&quot;<%=PmtTot%>&quot;>
<input type=&quot;hidden&quot; name=&quot;State&quot; value=&quot;<%=State%>&quot;>

<table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;50%&quot; align=&quot;Left&quot;>
<tr>
<td align=&quot;Center&quot;><input type=&quot;submit&quot; name=&quot;subbtn&quot; value=&quot;Client Quote Summary&quot;></td>
</tr>
</table>
</form>
 
Since you're not actually submitting the page to another page, you're only opening a popup window, you can't access the values like you normally would. However, you should be able to use window.opener.frmWord and the element name to get the values from the original page.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top