Solved

how to transfer values in different frames

Posted on 2006-07-05
3
227 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 250 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 250 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
maven scope 1 127
constuctor calling other constructor 2 74
problem with  angularjs dropdwon search at object property (name) level 2 97
spring example errors 33 255
When we talk about DevOps toolchains, I sometimes wonder how many people really get what we’re talking about. I don’t know if it’s just semantics or tone or something else, but sometimes I think it just sounds like buzzword sausage. So it’s always …
An analysis of the phishing scam that has been affecting Google users, along with steps to take for protection, as well as what to do if you receive one of the emails.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

920 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

13 Experts available now in Live!

Get 1:1 Help Now