473,700 Members | 2,467 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ref from one frame to another w/in frameset

sorry, but need to post entire frameset here to ask my question:

<frameset rows="79,344,10 7">
<frame name="header" src="header.htm l">
<frame name="player" src="mediaselec t.html">

<frameset cols="353,*">
<frame name="left" src="left.html" >
<frame name="right" src="right.html ">
</frameset>
</frameset>

I need to ref. from within right.html to mediaselect.htm l... (i.e.,
from frame name "right" to frame name "player"..) I need to say if
such-and-such a url is loaded into frame named "player" then do
such-and-such... I tried:

-- parent.frames.p layer.location // and
-- parent.parent.f rames.player.lo cation

I haven't done JS w/frames in a while, so I forget exactly how you ref.
to another frame in frameset when you're dealing in nested framesets..
thank you...

Frances Del Rio

Jul 23 '05 #1
4 1689
just wanted to say (sorry, posted this last night, was tired) that I
get errors that say "parent.frames. player.location " or whatever I try
is "not an object.." thank you.. Frances

Frances Del Rio <fd***@yahoo.co m> wrote in message news:<2l******* *****@uni-berlin.de>...
sorry, but need to post entire frameset here to ask my question:

<frameset rows="79,344,10 7">
<frame name="header" src="header.htm l">
<frame name="player" src="mediaselec t.html">

<frameset cols="353,*">
<frame name="left" src="left.html" >
<frame name="right" src="right.html ">
</frameset>
</frameset>

I need to ref. from within right.html to mediaselect.htm l... (i.e.,
from frame name "right" to frame name "player"..) I need to say if
such-and-such a url is loaded into frame named "player" then do
such-and-such... I tried:

-- parent.frames.p layer.location // and
-- parent.parent.f rames.player.lo cation

I haven't done JS w/frames in a while, so I forget exactly how you ref.
to another frame in frameset when you're dealing in nested framesets..
thank you...

Frances Del Rio

Jul 23 '05 #2
In article <2l************ @uni-berlin.de>, fd***@yahoo.com enlightened
us with...
sorry, but need to post entire frameset here to ask my question:

<frameset rows="79,344,10 7">
<frame name="header" src="header.htm l">
<frame name="player" src="mediaselec t.html">

<frameset cols="353,*">
<frame name="left" src="left.html" >
<frame name="right" src="right.html ">
</frameset>
</frameset>

I need to ref. from within right.html to mediaselect.htm l...


If you don't need to worry about being in someone else's frameset, you
can use

top.frames['player'].location.href;

to get the string representation of the URL. [1]
Otherwise, I *think* you can use

self.parent.par ent.frames['player'].location.href;

but I haven't played with nested framesets in a long time.

I believe that if the frame has loaded content outside your domain, this
will fail as a security violation.

[1] IIRC, using just window.location returns a Location object, not a
string.

--
--
~kaeli~
Hey, if you got it flaunt it! If you don't stare at someone
who does. Just don't lick the TV screen, it leaves streaks.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #3

thank you..

now it's saying that this stmt is missing a ")" ....
if (self.parent.pa rent.frames['player'].location.href; == 'wmp.html') {

if I do
if (document.all) {
it's fine, but if I do above stmt it says I'm missing a ")"... ?????

also, what's the difference betw.
if (whatever.locat ion == 'page.html') // and
if (whatever.locat ion.href == 'page.html')

thank you.. Frances
kaeli wrote:
In article <2l************ @uni-berlin.de>, fd***@yahoo.com enlightened
us with...
sorry, but need to post entire frameset here to ask my question:

<frameset rows="79,344,10 7">
<frame name="header" src="header.htm l">
<frame name="player" src="mediaselec t.html">

<frameset cols="353,*">
<frame name="left" src="left.html" >
<frame name="right" src="right.html ">
</frameset>
</frameset>

I need to ref. from within right.html to mediaselect.htm l...

If you don't need to worry about being in someone else's frameset, you
can use

top.frames['player'].location.href;

to get the string representation of the URL. [1]
Otherwise, I *think* you can use

self.parent.par ent.frames['player'].location.href;

but I haven't played with nested framesets in a long time.

I believe that if the frame has loaded content outside your domain, this
will fail as a security violation.

[1] IIRC, using just window.location returns a Location object, not a
string.


Jul 23 '05 #4
In article <2l************ @uni-berlin.de>, fd***@yahoo.com enlightened
us with...

thank you..

now it's saying that this stmt is missing a ")" ....
if (self.parent.pa rent.frames['player'].location.href;


Um, get the semi colon out of there if it's part of an if statement. :)
if (self.parent.pa rent.frames['player'].location.href == 'wmp.html') {

--
--
~kaeli~
The man who fell into an upholstery machine is fully
recovered.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #5

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

Similar topics

1
1449
by: RichardM | last post by:
I have the following HTML page (see bottom of message) that consists of a frame with two windows. The top window is always the menu, and the bottom window is by default a document named "TheDesc.htm". However, if another page is called, I want to display this new page into the bottom frame in place of "TheDesc.htm". My problem is with the third document.write command in the SCRIPT section. document.write('<FRAME...
24
3521
by: Charles Crume | last post by:
Hello; My "index.htm" page has 3 frames (content, navigation bar, and logo). I set the "SRC" of the "logo" frame to a blank gif image and then want to change it's contents after the other two frames have been loaded by using a javascript statement from the "navigation" frame, as shown below: top.window.ccs_logo.src = 'images/ccs_logo.gif'; alert(top.window.ccs_logo.src);
1
2765
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' .../>
3
7069
by: Robert | last post by:
Hi, I'm trying to make a slide show, with two frames: on the left frame small thumbnails, and on the right frame the big sized image. Of course when the user clicks on a thumbnail in the left frame, this image should be shown in the right frame. As I have a large number of pictures I don't want to have a separate page for each picture, and use javascript instead. I would like to use this in the left frame (see full code below):
5
4441
by: Frame | last post by:
I'm looking for tutorials or articles considering HTML Frames and how to handle them with Javascript. E.g. samples how Frames can exchange information, can a Frame instruct other Frame to update it's content etc. This kind of information is welcome. Cheers!
4
5597
by: Andy Fish | last post by:
Hi I have hunted around for this one but been unable to find any definitive answer. I have a simple frameset with one frame above another. by clicking a checkbox or some such in the lower frame the user can choose whether to have the upper frame displayed or not. I have tried frames.style.display="none" which looked right
11
16951
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 the following frame structure at the top level: FRAMESET CODE <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"> <html><head><title>Server List</title></head> <frameset frameborder="1" border="1" framespacing="1" rows="10%,89%">
7
2997
by: Leoa | last post by:
Hi All, I'm having a hard time figuring out the DOM syntax to get one frame that has thumnails of images to display at full size in another frame (onmouseover). I looked at a couple tutorials and have come up with the broken script below. Please Help.- ------------------------------------------
1
1944
by: sayid | last post by:
Hello, I have a problem when altering a DIV-element from another frame. The frameset looks like this: <frameset rows=0,0,* border=0> <frame name=header src=/header.htm scrolling=no noresize="true" frameborder=0> <frame name=border src=/border.htm scrolling=no noresize="true" frameborder=0> <frameset cols=200,* border=0> <frameset rows=*,0 border=0>
0
8731
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8649
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9219
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9081
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7819
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6564
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4660
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3097
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
3
2032
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.