Results 1 to 8 of 8

Thread: parent.frames[2].document.all

  1. #1

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057

    parent.frames[2].document.all

    i am trying to target a select box that is on another frame.... I cannot figure out what frame it is on though... is there a logic to the # in this statement?
    parent.frames[#].document.all.
    thanks
    michael

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Top to bottom, left to right.

    [0][1]
    [2][3]

    or

    [  0  ]
    [1][2]

    like that. And you can always reference the frame by name, I think. ie...parent.frames.fraMain.document.all...

    Last edited by crptcblade; Nov 16th, 2001 at 05:22 PM.
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3
    Lively Member
    Join Date
    Jul 2001
    Location
    USA
    Posts
    95
    I thought it started with 0

  4. #4
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    oh, and don't forget that the frames array starts at 0.

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  5. #5
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Originally posted by landon11
    I thought it started with 0
    yup, time to edit...
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  6. #6

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    thanks

    Michael

  7. #7

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    ok... now I have a wierd one... I have a page with two framesets:

    ----------------------
    l..........................l
    l.......................... l
    ----------------------
    l..... l............ l........ l
    l..... l............ l........ l
    l..... l............ l........ l
    ----------------------
    l.......................... l
    l.......................... l
    ----------------------

    the first frameset has the 3 rows
    the middle row is a framset with 3 columns

    in the top row, [0] i assume, I have the select mentioned earlier
    and in the middle column in the middle row I have the inputs I am targeting.

    my guess is that they are #'ed like this
    0
    1 345
    2

    how will I get this one?
    Michael.......................... ..... ............ ........
    Last edited by msimmons; Nov 19th, 2001 at 02:46 PM.

  8. #8
    PowerPoster
    Join Date
    Nov 2001
    Location
    Trying to reach and stay in the cloud
    Posts
    2,089

    Arrow hi

    If you know the names of the frames then it is possible to access the objects like this :

    top.framename.formname.objectname.....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width