472,811 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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,107">
<frame name="header" src="header.html">
<frame name="player" src="mediaselect.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.html... (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.player.location // and
-- parent.parent.frames.player.location

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 1629
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.com> wrote in message news:<2l************@uni-berlin.de>...
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 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.html... (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.player.location // and
-- parent.parent.frames.player.location

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,107">
<frame name="header" src="header.html">
<frame name="player" src="mediaselect.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.html...


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.parent.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.parent.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.location == 'page.html') // and
if (whatever.location.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,107">
<frame name="header" src="header.html">
<frame name="player" src="mediaselect.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.html...

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.parent.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.parent.frames['player'].location.href;


Um, get the semi colon out of there if it's part of an if statement. :)
if (self.parent.parent.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
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...
24
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...
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' .../>
3
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...
5
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...
4
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...
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...
7
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...
1
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...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.