I have a webpage with two frames.
Top frame has list box which stores a variable
Bottom frame has a report from which it uses a variable in the topframe.
John,
I'm not sure if these are iFrames, or if it matters in this context, but I'm assuming you mean a javascript client-side variable and not a server-side session variable?
Anyway, what I've done is use a function, say the variable is foo (global), I have a function getfoo(), which just returns foo from the other frame, with:
newvariable = parent.frames.otherframe.window.getfoo()
--Jim
var XXX = parent.topframename.document.formname.selectboxname.value
(topframename is the name of the top frame as defined in your frameset
formname is the name of a form containing your list box
selectboxname is the name of your list box)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.