By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,776 Members | 1,322 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,776 IT Pros & Developers. It's quick & easy.

Frame Element question...

P: n/a
Mel
i have 3 iframes in 3 rows named TOP, MID & BOT

inside MID i have 2 iframes LFT & RGT

i need to hide LFT frame and i know how to hide it

i just have a hard time figuring how to get to that element

i tried something like:
set var myframe = parent.MID.LFT;

and it does not work

please help
Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
In article <42********@usenet01.boi.hp.com>, me**********@hp.com enlightened
us with...
i have 3 iframes in 3 rows named TOP, MID & BOT

inside MID i have 2 iframes LFT & RGT

i need to hide LFT frame and i know how to hide it

i just have a hard time figuring how to get to that element
From where?
The syntax is different depending on where (which frame) the code is running
from.

OR you can use top (that's reserved as the topmost window - you might want to
call your top frame TOPFRAME instead of TOP). But if you use top and your
site gets caught in someone else's frames, it will break.
Using top will work from any iframe.

top.frames["MID"].frames["LFT"] will reference that iframe from any of the
child frames.

i tried something like:
set var myframe = parent.MID.LFT;


set?
What is this 'set' you speak of? vb has a 'set'...

var iframe_win = top.frames["MID"].frames["LFT"];

Keep in mind that a frame/iframe is a window object. If you need the
document, you have to get it.
var iframe_win_doc = iframe_win.document;

--
--
~kaeli~
A lot of money is tainted - It taint yours and it taint mine.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.