Frame Element question...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mel

    #1

    Frame Element question...

    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


  • kaeli

    #2
    Re: Frame Element question...

    In article <424048ff$1@use net01.boi.hp.co m>, mel.m.heravi@hp .com enlightened
    us with...[color=blue]
    > 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[/color]

    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.
    [color=blue]
    >
    > i tried something like:
    > set var myframe = parent.MID.LFT;[/color]

    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.docu ment;

    --
    --
    ~kaeli~
    A lot of money is tainted - It taint yours and it taint mine.



    Comment

    Working...