Solved

Saving a Form With A Button In A Separate Frame

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

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…
  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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now