Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jul 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Frame Resize Width

    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
    Thanks
    d17may

  • #2
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    have you considered using iframes instead of frames? It would be easier to handle iframes, I guess...
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #3
    New to the CF scene
    Join Date
    Jul 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Kor
    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
    Thanks
    d17may

  • #4
    Regular Coder fishluvr's Avatar
    Join Date
    Nov 2005
    Posts
    110
    Thanks
    1
    Thanked 12 Times in 12 Posts
    Have you tried something like this?

    PHP Code:
    <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> 


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •