Solved

Saving a Form With A Button In A Separate Frame

Posted on 2000-05-12
3
183 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Invoke VBA from lotusscript after mailmerge 11 247
Lotus Domino Server Failure 1 196
@ command if structure getting unmanageable 12 101
Lotus Notes transfer mail box problem 6 108
This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

685 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