[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Saving a Form With A Button In A Separate Frame

Posted on 2000-05-12
3
Medium Priority
?
190 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 100 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

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…
For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

656 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