communicating with other windows

They have: 19 posts

Joined: Feb 2000

If you have a web page made up of 3 frames and one of them creates a new window, how can you get that window to communicate back with the other frames. I've tried parent.name_of_frame.etc.. but it doesn't recognise any of the frames. Can anyone help please?

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi,

If you open a window, you need to use "opener". To access a variable in the frame (or window) that opened the new window, you use:
opener.varName
If you intend to go to a different frame, you need to follow, the frameset heirarchy. Something like: parent.framename.opener.varName

Hope this helps

Vinny

------------------
GrassBlade: cut&paste javascript

Where the world once stood
the blades of grass cut me still

They have: 231 posts

Joined: Feb 2000

Vinny:

I think you need to switch around your code a little.

opener.parent.framename

------------------
Lloyd Hassell
[email protected]
http://go.to/hass

:: Lloyd Hassell :: http://www14.brinkster.com/lloydh ::

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.