Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
05-13-2009, 07:53 AM #1
- Join Date
- May 2009
- Thanked 0 Times in 0 Posts
Send variables from frame to frame.
This is my frame set:
05-13-2009, 08:04 AM #2
Not clear to me why you need to "send variables" between frames to accomplish what you have stated you need.
But in any case it's not hard. The only trick is making sure that both frames are fully loaded before you attempt this.
One way to do this is to invoke a function in the other frame, *AFTER* making sure the function exists there. (If not, use setTimeout to wait a quarter second and try again.)
And you could, for example, call a function in the leftFrame from code in the mainFrame by simply doingAs for having an <A> anchor reload the entire frameset instead of a single frame, just useCode:var valueFromOtherFrame = parent.leftFrame.someFunction( );
_top is a special target that means the topmost frame level.Code:<a target="_top" href="whatever.html">