/    Sign up×
Community /Pin to ProfileBookmark

identifying and targeting frame from different frame

Ok, Gurus, here’s one I cannot figure out…

I have a “contents” frame on the left, which has a menu that changes the “main” frame on the right.

The “main” frame is another frame with “top” frame and “body” frame. A link in the “body” frame changes the “main” frame (both new “top” page and “body” page are loaded).

Now, I need to update the menu in the original “contents” frame on the left. However, I cannot refer to this frame as the parent.frames[‘contents’] (I get error that parent.frames.contents is null or not an object). If I attempt to refer to parent.frames[0] this refers to the “top” frame (the new parent of the “body” frame).

How can I now target the “contents” frame, which is no longer the parent?

I’m not sure how to make this clear – I’m new to this.. but I’ll try:

frameset1 = frameLeft = “contents” and frameRight = “main”
frameset2 = frameTop = “top” and frameBody = “body”

“main” = frameset2

when a link is clicked in “body” page, I need to update “contents” page.

Help !

website = [url]www.grapescape.net[/url]

Thanks for any assistance,

MtW

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@rhsundergroundFeb 02.2004 — i don't QUITE follow, maybe because i'm really tired, but still...

have you considered just having 3 seperate frames? it could save a lot of work.
Copy linkTweet thisAlerts:
@PittimannFeb 02.2004 — Hi!

Just try top.frames['contents'] instead of parent.frames['contents']

and please don't be confused about top also being the name of one of your frames ?

Cheers - Pit
Copy linkTweet thisAlerts:
@netgrooverauthorFeb 02.2004 — Cool! It works!

Thanks a million, Pit

MtW
Copy linkTweet thisAlerts:
@PittimannFeb 02.2004 — Hi!

You're welcome!! ?

Cheers - Pit
×

Success!

Help @netgroover spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.14,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...