Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

how to transfer values in different frames

Posted on 2006-07-05
3
Medium Priority
?
238 Views
Last Modified: 2010-04-01
hi:

I am designing frame html pages now. I divided the page into two frames. One is above and one is at the bottom. I want to let the right frame use the field values in left frame. But when I use some kinds of code like: parent.frame1.form1.textfield.value=frame2.form2.textfield2.value. It will give me error like: object required "parent". I changed the "parent" to "top", it still gives me error. Please help me figure out the problem. Thanks.
0
Comment
Question by:ly_uwo
3 Comments
 
LVL 2

Accepted Solution

by:
vikrant4u2 earned 750 total points
ID: 17052233

try using this

window.frames["frame1"].document.forms["form1"].textfield.value = window.frames["frame2"].document.forms["form2"].textfield.value

regards,
vikrant
0
 
LVL 19

Assisted Solution

by:actonwang
actonwang earned 750 total points
ID: 17052444
>>parent.frame1.form1.textfield.value=frame2.form2.textfield2.value.

     you need to do sth like:

     window.parent.frames["frame1"].document.form1.textfield1.value =  window.parent.frames["frame2"].document.form2.textfield2.value

acton
0
 

Author Comment

by:ly_uwo
ID: 17052917
already solved. still thanks for the suggestion
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
Aerodynamic noise is the cause of the majority of the noise produced by helicopters. The inordinate amount of noise helicopters produce is a major problem in the both a military and civilian setting. To remedy this problem the use of an aerogel coat…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

783 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