Solved

how to transfer values in different frames

Posted on 2006-07-05
3
231 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
[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
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

Technology Partners: 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

How many times a day do you open, acknowledge, or close an IT incident? What’s your process? Do you have a process depending on the incident, systems involved, and other factors? New Relic Alerts gives you options for how you interact with notifica…
Deploying our service is a grudge match between customer benefits and customer pain. In one corner, rolling out fixes (yay!) and delivering new features (double yay!). In the other corner, training on new features (boo – sounds like work), and chan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

752 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