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

Posting a form to a new page

Status
Not open for further replies.

Ragol1

Programmer
Oct 25, 2001
315
US
I have a ASP form that posts to a hidden page a redirects to another page.

This form is within a frame but when I post the form I want it to close the current frameset and open a new frameset. which is the redirected set of pages

PLease help
 
i'm not sure what exactly you mean with "close the current frameset and open a new frameset " ...
if it's like : the page where the POST form is must change to the redirected page, then you have nothing more to do (just set the frameset name as the target value)
if it's actually closing the frameset and opening a new one, use the "onsubmit" even (beware that this event fires BEFORE the form is submitted, and it HAS TO return true so that the form is actually submitted) - or use an "onclick" event on the submit button (like : onclick="top.this_frameset.close(); top.another_frameset.open(...);the_form.submit()")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top