?
Solved

Identifying frames

Posted on 1999-07-08
7
Medium Priority
?
171 Views
Last Modified: 2010-04-09
when i have 2 frames i will refer to the frames as
"parent.left.?" or "parent.right.?"
but what if i have 4 frames? how can i pass a value from one frame to another within the same file?
0
Comment
Question by:osiruz
[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
  • 5
  • 2
7 Comments
 
LVL 4

Accepted Solution

by:
siabod earned 40 total points
ID: 1851694
When you created the frame page you should have given all frames a NAME tag, like this :

<FRAMESET COLS="10,*,*" FRAMEBORDER="0" FRAMESPACING="0" BORDER="0">
 <FRAME NAME="left" SRC="buttons.html" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="yes" FRAMEBORDER="0" NORESIZE>
 <FRAME NAME="middle" SRC="content.asp" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="yes" FRAMEBORDER="0" NORESIZE>
 <FRAME NAME="right" SRC="banner.asp" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="yes" FRAMEBORDER="0" NORESIZE>
</FRAMESET>

Now you have 3 frames called left,middle and right
you can refer to parent.middle too now

Hope it helps you.
0
 

Author Comment

by:osiruz
ID: 1851695
how can i refer to a textfield "txtNum" on a form "fmInfo" on the middle frame?
parent.middle.????

pls help,thanks

0
 

Author Comment

by:osiruz
ID: 1851696
how can i refer to a textfield "txtNum" on a form "fmInfo" on the middle frame?
parent.middle.????

pls help,thanks

0
Industry Leaders: 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!

 

Author Comment

by:osiruz
ID: 1851697
whenever i try to pass the value..it says parent.middle has no properties
0
 

Author Comment

by:osiruz
ID: 1851698
thanks,i've tried it again just now and it works!
looks like i've missed out something earlier,thanks again!
btw: do u know how can i pass a value to another browser window ? earlier i pass the value within same browser but different frames,now i would like to pass a value from this frame to another frame. could u help me? thanks in advanced!

0
 
LVL 4

Expert Comment

by:siabod
ID: 1851699
sure, you can put the TARGET tag in your FORM tag too :

<FORM ACTION="x.html" METHOD="get" TARGET="new">


then a new window will be opened under the name NEW, you can type almost anything in the target tag which isn't used already, that will be your new window's name...


0
 

Author Comment

by:osiruz
ID: 1851700
i'm sorry but can u show me a sample of how this works?thank you very much.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

719 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