Those frames...

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

If you have two frames called 'top' and 'bottom' and you're coding in a page that appears in 'top', you refer to 'bottom' like this:

parent.bottom.... etc

But:

If the page that appears in bottom is a frameset itself, defining two other frames 'b_left' and 'b_right'... How do you refer to let's say 'b_left' when coding in 'top'?

(I cannot define the three frames in one frameset, if that's what you were about to say... )

Thanx in advance,

Shakespeare: onclick || !(onclick)

detox's picture

They have: 571 posts

Joined: Feb 2001

Guess My mind has switched off, will see what I can find.

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

found it...

parent.bottom.b_left.etc (2 frame names after each other! )

so simple... Shocked

But actually I wanted to go the other way around:

How dow I change the top-doc out of 'b_left'???

That should be something like parent.parent... but that doesn't make sense...

Shakespeare: onclick || !(onclick)

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

Quote:
That should be something like parent.parent... but that doesn't make sense...

Ok, that does make sense. 'parent.parent...' is the way to go. I didn't work for me initially cause I gave the name 'top' to one of my frames, which made IE stress out.

Greetz

Shakespeare: onclick || !(onclick)

detox's picture

They have: 571 posts

Joined: Feb 2001

That is the thing about frames, I always seem to get a headache just thinking about them!

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

yeah me too! I draw everything before I start coding, but with nested frames in nested frames I ALWAYS get confused. That's why I use frames as less as possible.

Shakespeare: onclick || !(onclick)

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.