Solved

Saving a Form With A Button In A Separate Frame

Posted on 2000-05-12
3
181 Views
Last Modified: 2013-12-18
I have a 3-pane frameset.  The left pane offers the links for the main navigation.  The top right frame has the submit button and a button to open another form.  The bottom right frame has the actual form.  How can I use the submit button in the top right frame to save the information in the bottom right frame on the form?
0
Comment
Question by:keefauvs
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
wylliker earned 25 total points
ID: 2807274
Use in your click handler for the submit in the upper right frame ...

parent.frames(2).document.forms(0).submit()

where 2 is probably the correct index for the frames collection

or

parent.frames("bottomrightframename").document.forms(0).submit()

where bottomrightframename is the name of the frame you want to submit.

If you have to use the first version but you don't know the number you can add a text field to your top right frame and then do the following iteratively until you get the correct index in the click handler for the submit in the upper right frame

assume text field is called FrameName ...


var FrameName = parent.frames(0).Name
document.forms(0).FrameName.value = FrameName


Just change the frames(0) to frames(1), frames(2) etc.






0
 
LVL 4

Expert Comment

by:wylliker
ID: 2807275
The code for the submit handler in the upper right frame should be set to JavaScript - forgot to mention that
0
 

Author Comment

by:keefauvs
ID: 2811609
The code works well and is easy to follow.  Thank you wyllicker!
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question