Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem Passing Variables from Layer to New Window

Status
Not open for further replies.

JohnBoy2005

Programmer
Jul 12, 2005
117
GB
I've got a diary summary on my Intranet home page with 3 icons, 5 Day View, Month View and "Select A Date"

Each icon calls a hidden layer which display a calender. The same calender (layer) is called each time ("Layer1")

The layer contains an iframe which loads my default calender viewer page "calender.asp"

On selecting a date, I want my new window to display either a 5 day view, a Month view or the choosen date.

But I'm having real trouble passing variables from the img click to the calender layer then to the layout window.

Sample from the images:

onclick="showLayer('layer1','5');"
onclick="showLayer('layer1','M');"
onclick="showLayer('layer1','Q');"

Then:

sub showLayer(ObShow,f)

document.getElementById(ObShow).style.visibility="visible"
'dont know what to do here with f

end sub

How can I then transfer the value of "f" to the calender layer (calender.asp), then onto the calender view window.

Hope this makes sense.

Cheers

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top