|
-
Nov 16th, 2001, 05:13 PM
#1
Thread Starter
Frenzied Member
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
-
Nov 16th, 2001, 05:18 PM
#2
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
-
Nov 16th, 2001, 05:20 PM
#3
Lively Member
I thought it started with 0
-
Nov 16th, 2001, 05:20 PM
#4
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
-
Nov 16th, 2001, 05:21 PM
#5
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
-
Nov 16th, 2001, 05:25 PM
#6
Thread Starter
Frenzied Member
thanks 
Michael
-
Nov 19th, 2001, 02:25 PM
#7
Thread Starter
Frenzied Member
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.
-
Nov 20th, 2001, 04:18 AM
#8
PowerPoster
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|