Solved

Saving a Form With A Button In A Separate Frame

Posted on 2000-05-12
3
185 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
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.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

719 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