473,402 Members | 2,053 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,402 software developers and data experts.

Access to FRAMESET

I have given an id to a frameset tag but find I can not get access to it from a frame when using -

parent.document.getElementById(myName)

If I use -

parent.document.getElementsByTagName('framset')[0]

I get [object HTMLFrameSetElement] returned, so assume the DOM is seeing the frameset tag.

Can anyone suggest how I can use the Id method to get into the frameset tag??

Many thanks
Dec 12 '07 #1
2 1838
Dasty
101 Expert 100+
Expand|Select|Wrap|Line Numbers
  1. parent.document.getElementById(myId).contentWindow.document
is document in frame

but dont forget that you got access to frame's document just in case that both sites are from the same domain
Dec 12 '07 #2
Tried your suggestion:-
Expand|Select|Wrap|Line Numbers
  1. parent.document.getElementById(myId).contentWindow.document
in both Firefox and IE, and it failed.
using
Expand|Select|Wrap|Line Numbers
  1. parent.document.getElementById(myId).contentWindow
returned 'undefined'.

I am trying to acces the FRAMESET from a FRAME of which FRAMESET is the parent.

Thanks
Dec 12 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

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...
2
by: terry | last post by:
Hi, I am using a FrameSet with three frames. In server code (c# code behind) is it possible for a page to call a function in another page of the frameset? I suspect that it is not possible but...
3
by: jm | last post by:
I have a master framesetpage that calls two .aspx pages. Each page needs parameters passed to it. The left side is a treeview. The right side is the detail. I cannot find an asp:frame or the...
1
by: Bengt-Erik Eliasson | last post by:
Hello! In my mainpage i have two frames (MENU and MAIN). In the MAIN I load another page with frames (Sub_Frame.htm). It contains TOP and BOTTOM frame. In BOTTOM frame I have a page with a button...
11
by: Rob | last post by:
I know, I know, don't use frames. Well, I'm stuck with these frames and I'm trying to add functionality without a complete redsign. You can look at this as a nostalgic journey. Anyway, I've got...
6
by: oscar1martin | last post by:
The property document.links seems to access links inside a frame, but not an iframe. For instance, the following code displays a "4": 2 links in main page, 2 links in frame1. <body...
9
by: Lee | last post by:
Hi all, We need to create a page where we detect the finish of a game that's hosted on another site. We thought of doing it with frames, where we would put the game in an iframe that is...
12
by: Geoff Cox | last post by:
Hello I'm having a problem loading a frameset file using an include in a php file. Nothing is displayed and when I look at the source code I see that <html> <head> <title></title>
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
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...
0
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,...

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.