473,406 Members | 2,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

frameset within frameset

Hello,
I have a problem.
I have to frames, one at the bottom for navigation and the rest of the
screen is the second frame.(output)
There is a script that puts the focus on the outputframe in order to print
only the contens of that frame.
But now i have a page that contains two frames also, in the outputframe.
How can i set focus to the second frame within the outputframe?
Is there a way to specify a frame within a frame?

(In short: two frames, one frame contains navigation, second frame contains
output from navigationmenu, and, in this case, builds two new frames in the
outputframe)

Thanks,
Simon
Mar 19 '07 #1
4 1469
On Mar 19, 9:20 am, "Simon" <simon1...@quicknet.nlwrote:
Hello,
I have a problem.
I have to frames, one at the bottom for navigation and the rest of the
screen is the second frame.(output)
There is a script that puts the focus on the outputframe in order to print
only the contens of that frame.
But now i have a page that contains two frames also, in the outputframe.
How can i set focus to the second frame within the outputframe?
Is there a way to specify a frame within a frame?

(In short: two frames, one frame contains navigation, second frame contains
output from navigationmenu, and, in this case, builds two new frames in the
outputframe)

Thanks,
Simon
Have you tried
parent.frames['outputframe'].frames['frame_to_get_focus'].focus() or
parent.outputframe.frame_to_get_focus.focus()?

I'm not 100% clear on which is the preferred or most compliant method
(the dot notation or array style access)...

Mar 19 '07 #2

"Tom Cole" <tc****@gmail.comschreef in bericht
Have you tried
parent.frames['outputframe'].frames['frame_to_get_focus'].focus() or
parent.outputframe.frame_to_get_focus.focus()?

I'm not 100% clear on which is the preferred or most compliant method
(the dot notation or array style access)...

Simon:
I've tried it, but it doesn't seem to work.
Sorry..
Mar 20 '07 #3
On Mar 20, 5:13 am, "Simon" <simon1...@quicknet.nlwrote:
"Tom Cole" <tco...@gmail.comschreef in bericht
Have you tried
parent.frames['outputframe'].frames['frame_to_get_focus'].focus() or
parent.outputframe.frame_to_get_focus.focus()?
I'm not 100% clear on which is the preferred or most compliant method
(the dot notation or array style access)...

Simon:
I've tried it, but it doesn't seem to work.
Sorry..
Amazing, worked perfectly on my test page. Do you need me to upload it
to the web for you, maybe it will give you some help?

Mar 20 '07 #4
Tom Cole wrote:
<snip>
Have you tried
parent.frames['outputframe'].frames['frame_to_get_focus'].focus() or
parent.outputframe.frame_to_get_focus.focus()?

I'm not 100% clear on which is the preferred or most compliant method
(the dot notation or array style access)...

I'm not 100% clear on which is the preferred or most compliant method
Referencing the window objects of named frame (and IFRAME) elements as
named properties of the containing window object's - frames - collection
is the most cross-browser (and so usually 'preferred') strategy.
(the dot notation or array style access)
No distinction between dot notation property accessors and bracket
notation property accessors has significance here. The two are
equivalent in what they do. All dot notation property accessors could be
re-written as bracket notation property accessors and produce precisely
the same results. The reverse is only not true because the dot notation
property accessor requires that the tokens on each side of the dot be
Identifiers, while the bracket notation places no restrictions on the
character sequence strings used inside the brackets (so the former can
only access a limited set of property names, while the latter is
unrestricted in the property names it can reference), and the
expressions used between the brackets in a bracket notation property
accessor are evaluated and type-converted into a string prior to their
use as a property name (which is unnecessary with a dot notation
property accessor), allowing the property name used to be unknown until
runtime.

parent.frames['outputframe'].frames['frame_to_get_focus'].focus()

- and:-

parent.frames.outputframe.frames.frame_to_get_focu s.focus()

- are equivilent.

Richard.
Mar 20 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Hans | last post by:
Hi There, I have a page that has links with some variables and I need to open the results set in a frameset. I have tried doing this in various different ways, but still cannot get the variable...
2
by: luu duong | last post by:
I know this is probably easy but here is the details. I have an asp page that is not inside a frameset. I want to post data to another asp page that is inside a frameset. So firstpage.asp has...
1
by: JP | last post by:
Hi, How can I create a dynamic frameset whose content changes based on user inputs? Specifically, how do I toggle a frame within a frameset? How can I allow a user to "close" or "dock" a...
1
by: Hartmut Dippon | last post by:
Hello, does anybody know how I can access and modify properties of my frameset within my code behind class, or is that not possible at all? I tried to find anything in the internet about this...
1
by: Julius Mong | last post by:
Dear all, I have the following: <html> <head> .... </head> <frameset ...> <frame .../> <frameset name="page" rows="60,*" ...> <frame src='top.html' .../>
1
by: Bongolation | last post by:
I've looked in the FAQ and didn't see anything on this. There must be a simple solution to this VERY common problem: A site featuring many text articles and archives has a frameset of two...
4
by: Frances Del Rio | last post by:
sorry, but need to post entire frameset here to ask my question: <frameset rows="79,344,107"> <frame name="header" src="header.html"> <frame name="player" src="mediaselect.html"> <frameset...
2
by: Guadala Harry | last post by:
I have some pages that open in a frameset. I want them to be opened *only* in the frameset (and not on their own). How can I disallow a page from being opened on its own (i.e., allow to be opened...
2
satchmo67
by: satchmo67 | last post by:
Howdy, I want to reply to a really old post on this subject. The original poster was battling with the problem of trying to validate a frameset page and use the border attribute. I have been down...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.