can't refer to nested frame

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • George Sicherman[aes] MTD43D29

    #1

    can't refer to nested frame

    I have a program that opens a window to an HTML page that looks like this:

    <HTML>
    <HEAD>...</HEAD>
    <FRAMESET ROWS="50%,50%">
    <FRAMESET COLS="11%,11%,1 1%,11%,11%,11%, 11%,11%,12%">
    <FRAME SRC=...>
    ...
    </FRAMESET>
    <FRAMESET COLS="11%,11%,1 1%,11%,11%,11%, 11%,11%,12%">
    <FRAME SRC=...>
    ...
    </FRAMESET>
    </FRAMESET>
    </HTML>

    In JavaScript, I can access new_window.fram es[0] but not new_window.fram es[0].
    frames[0]. I added some alerts to find out what was going on. Apparently
    new_window.fram es[0].frames is defined, but it's not an array object. In
    fact, one of its members is 'frames', which is not an array either but a
    window.

    I ought to be able to reference new_window.fram es[0].frames[0]. Why does
    it not exist?

    -:-
    L See the funny little man,
    Try and catch him if you can.
    Quickly now! That's too slow--
    Where did all your money go?

    --The Roguelet's ABC

    --
    G. L. Sicherman
    MT D4-3D29; 732 420 3556
    sicherman@att.c om

  • Thomas Hoheneder

    #2
    Re: can't refer to nested frame

    Hello,

    I dont't really now, why new_window.fram es[0].frames[0] doesn't exist...
    But to get the frame in the first row and the firt column, use
    new_window.fram es[0].top.frames[0]

    It works both on IE6 and NS7. Hope this helps you.

    Nice greetings from
    Thomas


    Comment

    Working...