...

View Full Version : Frame Resize Width



d17may
07-15-2006, 07:08 AM
I have page which has 2 vertical frames.When user perform some action in left window a report shown in right window.I want that when when user click on viewreports button in left window .width of left window decreases and right window increses

Kor
07-16-2006, 03:05 PM
have you considered using iframes instead of frames? It would be easier to handle iframes, I guess...

d17may
07-17-2006, 06:45 AM
have you considered using iframes instead of frames? It would be easier to handle iframes, I guess...
It is not possible to use iframes now.Thanks for your reply

fishluvr
07-17-2006, 07:48 PM
Have you tried something like this?


<html>
<head>
<title>This is left frame...</title>
<script type="text/javascript">
function resize(w) {
parent.document.getElementsByTagName('FRAMESET')[0].cols=w+',*';
}
</script>
</head>

<body>
<p><a href="#" onclick="resize(80);">shrinkMe</a></p>
<p><a href="#" onclick="resize(200);">expandMe</a></p>
</body>
</html>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum