473,545 Members | 1,983 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

can't refer to nested frame

I have a program that opens a window to an HTML page that looks like this:

<HTML>
<HEAD>...</HEAD>
<FRAMESET ROWS="50%,50%">
<FRAMESET COLS="11%,11%,1 1%,11%,11%,11%, 11%,11%,12%">
<FRAME SRC=...>
...
</FRAMESET>
<FRAMESET COLS="11%,11%,1 1%,11%,11%,11%, 11%,11%,12%">
<FRAME SRC=...>
...
</FRAMESET>
</FRAMESET>
</HTML>

In JavaScript, I can access new_window.fram es[0] but not new_window.fram es[0].
frames[0]. I added some alerts to find out what was going on. Apparently
new_window.fram es[0].frames is defined, but it's not an array object. In
fact, one of its members is 'frames', which is not an array either but a
window.

I ought to be able to reference new_window.fram es[0].frames[0]. Why does
it not exist?

-:-
L See the funny little man,
Try and catch him if you can.
Quickly now! That's too slow--
Where did all your money go?

--The Roguelet's ABC

--
G. L. Sicherman
MT D4-3D29; 732 420 3556
si*******@att.c om
http://hera.homer.att.com/~gls/index.html
Jul 23 '05 #1
1 1561
Hello,

I dont't really now, why new_window.fram es[0].frames[0] doesn't exist...
But to get the frame in the first row and the firt column, use
new_window.fram es[0].top.frames[0]

It works both on IE6 and NS7. Hope this helps you.

Nice greetings from
Thomas
Jul 23 '05 #2

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

Similar topics

0
1718
by: Andy Fish | last post by:
Hi, I have a simple frameset with a banner across the top and a menu down the side like this: <frameset rows="75,*"> <frame name="banner" noresize > <frameset cols="220,*"> <frame name="menu" > <frame name="main" >
7
1175
by: Mandy | last post by:
This fails only in IE 5. It works flawlessly in IE5.5+, Netscape, Opera and Mozilla. I'm using javascript to navigate in my content. I can load the starting page just fine (page0.html). Any subsequent use of the below function does nothing. I'm testing tURL, and it contains the correct URL (page1.html), and also testing that...
5
1776
by: Tim Streater | last post by:
I have this arrangement of frames: <html><head><script type="text/javascript"></script></head> <frameset rows="100,*"> <frameset cols="135,*,165"> <frame name="logo" src="some.html" scrolling="No"> <frame name="title" src="someother.html" scrolling="No"> <frame name="nav" src="yetmore.html" scrolling="No"> </frameset>
21
2923
by: bird | last post by:
I want to write a multi-frame web page. At level one, it has two frames, saying LEFT and RIGHT. At level two, I split the RIGHT frame into two again, saying UPPER_RIGHT and LOWER_RIGHT. The LEFT frame contains a menu. The reason I need two levels is because each menu item needs different UPPER_RIGHT and LOWER_RIGHT frames. I just found that I...
1
3872
by: Jeff | last post by:
Hello All: I have recently upgraded to VB .Net 2003 from VB6 and am having a little trouble. I have a MDI parent form that has a frame on it with a list box on the frame. I open an MDI child form and the frame on the parent form is still visible. What I want to do is run an OLEDBCommand on the child form and use the value of the item...
1
2441
by: redpayne | last post by:
Ok-I am doing homework out of a book and the instructions are to display an interface with 5 option buttons in a frame. When clicked, each button changes the background color of the frame. It proceeds to tell me to construct CheckboxGroup, use FlowLayaout and add the Checkboxes to the frame along with ItemListener. It says...
0
1539
by: Rich Bamford | last post by:
Has anyone got any experience of nesting ajax modal popups using modalpopupextender? I.e. a popup that has a button to show a further popup. I'm trying to convert a non-ajax page where a 'popup' panel is used for data entry which in turn has 'popup' panels for selection of various values. The basic functionality appears to work. However,...
1
1421
by: laredotornado | last post by:
Hi, I have this master frameset page <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <TITLE>Account Creation</TITLE> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
2
6449
by: hzgt9b | last post by:
I know how to overwrite a function. Normally this is what I would do: function someFunction() { /* orig definition here */ } //later in the execution stream I would do... someFunction = function () { /* overwrite function definition */ } The above works fine for me even when someFunction is originally defined in a seperate frame other than...
0
7479
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7926
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7439
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7773
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5987
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4962
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1901
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1028
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
722
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.