Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: SV: Accessing frame in frame


Message #1 by "Robert Nyman" <robert.nyman@c...> on Tue, 10 Sep 2002 12:44:55 +0200
Well, try:

parent.frames["text"].frames["middle"].location.href =3D "xyz.asp";

or

parent.frames["text"].document.frames["middle"].location.href =3D
"xyz.asp";



/Robert


-----Ursprungligt meddelande-----
Fr=E5n: Tomas Weber [mailto:weber@g...]
Skickat: den 10 september 2002 12:42
Till: JavaScript HowTo
=C4mne: [javascript_howto] Accessing frame in frame


Hi
I need a small advice how to access a frame object.
I have main page - dividing web page to 4
frames("one","two","three","text"),
when I want to change source of frame with name "text"
I use Script:
parent.frames("text").location.href=3D"xy.asp";

my problem is how to access frame in frame
For example:
my "text" frame loads xy.asp that divides "text" into other 3 frame
("up","down","middle")
how can I access  my "middle" frame of "text" frame
the script:
parent.frames("middle").location.href=3D"xyz.asp"; doesn't work. I think
the solution must be with document.all.??????  but I am not sure...


--

 Tomas 
 mailto:weber@g...



---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20


  Return to Index