Can anyone help me with trying to pass a J(ava)Script variable to an HTML frames page.
I have a JScript function (called from my home page) that opens a frames page in a popup window (using window.open). I want to pass the variable (from the JScript function) to the popup frames page and use the variable to specify the html page that should be loaded into one of the frames.
i.e. Hyperlink (java script:Staff(‘jsmith’) from home page, runs JavaScript function Staff(name). Staff(name) opens frames page in popup window (using window.open) and passes to it the name variable ‘jsmith’. Javascript function in frames page HEAD adds “.htm” to name variable and sets it to MyVar (which now equals ‘jsmith.htm’). I now want to put the MyVar variable into the FRAME SRC element and hence get the page jsmith.htm to load in the particular frame.
Am I making life difficult for myself, or is this possible? I use Frontpage 2k for my design, so my knowledge of HTML isn’t brilliant(!); but I know VbScript and VBA well, and J(ava)Script will always be a struggle!!
Obviously, the idea is to re-use the Staff(name) function elsewhere to open up different staff profiles.
Any help or pointers would be gratefully appreciated…
Thanks in advance,
Ade