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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form Submit in Frameset

Status
Not open for further replies.

tleal

MIS
Apr 26, 2002
1
US
My application has a print selection page which is not in a frameset. After the user selects all the print options, they click my Create Report link. The Report Page is then displayed in a FrameSet (The top frame contains some hidden form fields - plus some text explaining the displayed report in the lower frame. It also contains a link to return to the Print Selection Page). (The lower frame contains the PDF report).
The code to return to the Print Selection Page is "top.window.location" which working fine, It returns to the Print Selection Page (which has no frames) but I loose all my form hidden values. Any ideas on how to do this?
tleal@pietechnet.com
 
you mean :
- you are on print page
- you click a link and go to the frameset page
- you click a link in the upper frame and then go back to the print page (using top.....)
- and then all your values are lost
am i right ?

if yes the fix is easy :
on the upper frame, enclose your hidden fields between <form> tags, and to return to the print page, SUBMIT the form
this is how to do so :
<form name=&quot;whatever&quot; method=&quot;post or get&quot; action=&quot;print.htm&quot; target=&quot;_top&quot;>
.. here goes your hidden fields ...
<input type=submit value=&quot;return to the previous page (print page)&quot;>
</form>

print.htm is supposed to be the name of your print page - the &quot;action&quot; is the page to which the form sends the infos
_top is to tell the browser to display in the &quot;top&quot; frame

let me know if it solves your problem


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top