PDA

View Full Version : Frame, frame go away ...


BobM
02-24-2004, 11:34 AM
... come again another way.

Objective: upon click cause a second frame in a frameset to disappear, or re-appear.

As in using a narrow right hand frame to hold the help options, only when the help button (in a frame across the top) is clicked ... and to cause the help options frame to disappear when a help option is selected.

I have tried setting style in the frame to "display:none". That does not work. I have tried changing the cols size of that frame in the frameset; that doesn't work.

Any ideas, please?

agent002
02-24-2004, 11:40 AM
You could use some JavaScript to reset the frameset rows/cols:
<a href="#" onclick="parent.document.getElementById('frameset_id').cols = '150,*,0';">Click here</a>
Then you need to set an id for the frameset:
<frameset ...blahblah... id="frameset_id">

BobM
02-24-2004, 05:11 PM
Works like a champ! Thanks!