Click to See Complete Forum and Search --> : How to Dynamically Hide a frame in NS 7.0 and IE 6.0


hari123
03-31-2003, 03:27 PM
My webpage consists of 3 frames(top, left and main). On event onclick in "main" I want to control the show /hide of "left" frame. The javascript has to work in both NS7.0 and IE6.0. A solution with sample javascript will be of great help. The HTML for mywebpage is given below.

<html> <head> <title>My webpage</title> </head>
<frameset rows="50,*" > <frame name="Top " src="Top.html" marginwidth="0" marginheight="0" noresize scrolling="no">
< FRAMESET COLS= "200,*" > <FRAME name="Left" src="left.html" marginwidth="5" marginheight="5" scrolling="auto" > <FRAME name="main" src="main.html" marginwidth="5" marginheight="5" scrolling="auto" > </FRAMESET>
</FRAMESET>
</html>

hari123
04-01-2003, 08:05 AM
Hi Dave,

Thanks for your suggestion, I tried out the site suggested by you. And I tried to understand the javascript you put for the frame. As I am not very familiar with javascript I couldn't fully understand the logic of How you are showing/hiding the frame.

Could you pls. suggest me a sample script for my page given above. What I need is simple. I just want to control the show/ hide of my left frame from an event in my main frame. And when the frame is hidden it should not occupy any space on the screen.

Thanks

hari123
04-02-2003, 09:20 AM
Thanks again Dave. You are right what I need is to simply toggle my "left" frame width to 0 or 200 inorder to create the Hide/Show functionality. I am able to easily do it in IE6.0 using
parent.myframeset.cols = '0,*'
parent.myframeset.cols = '200,*'

Unfortunately NS7.0 doesn't support this. I'm looking for a solution that works in NS7.0 as well.

I do not really need to drop and add the frames as you are doing. My intension is to gain more screen space for my main frame by hiding my left frame.

I did verified your Frameset pages . In IE6.0 the functionality works as intended. But in NS7.0 the Frame dropping and adding seems to be not working.