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

Submit from multiple frames

Status
Not open for further replies.

tbubbs

Programmer
Mar 30, 2001
26
CA
Hi,
I have a page that is set with four frames. the 2nd and 3rd frame needs to submit info to a submission page. I have a submit function that will allow me to submit the info from the 2nd frame, but does not go into the 3rd frame. Does anybody have any ideas?

Thanks in advance,
Terri
 
yes, you can use the submit() function to automatically submit a form

so, if your 3rd frame is called, say, third_frame, and the form in it is called second_form, (and i suppoose you only have 2 levels of frame), you can submit it by calling :
top.third_frame.second_form.submit()

now, calling it from the second frame (when submitting) ...
<form ... onsubmit=&quot;return your_validation_function()&quot;>
...
</form>
and don't forget this line in &quot;your_validation_function()&quot;
top.third_frame.second_form.submit()

but i'd suggest you'd better NOT do it ... it's better to do things one by one, and maybe you should re-think the design of your site ... if both forms NEED to be submitted at the same time, why don't you make them only ONE form ? if they are not related, why would you submit them at the same time ? often, when thinking more, you come to an easiest solution ...
 
Thanks for the insight!! I was able to get things figured out on my own!!
Once again, Thanks for the help!! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top