d17may
07-15-2006, 06: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
have you considered using iframes instead of frames? It would be easier to handle iframes, I guess...
d17may
07-17-2006, 05: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, 06: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>