Those frames...
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 posted this at 14:48 — 30th January 2002.
They have: 571 posts
Joined: Feb 2001
Guess My mind has switched off, will see what I can find.
Jack Michaelson posted this at 15:27 — 30th January 2002.
He has: 1,733 posts
Joined: Dec 1999
found it...
parent.bottom.b_left.etc (2 frame names after each other! )
so simple...
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 posted this at 15:53 — 30th January 2002.
He has: 1,733 posts
Joined: Dec 1999
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 posted this at 23:42 — 30th January 2002.
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 posted this at 15:38 — 31st January 2002.
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.