SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Resizing Frames

Hybrid View

  1. #1
    SitePoint Wizard davidjmedlock's Avatar
    Join Date
    Dec 2002
    Location
    Nashville, TN USA
    Posts
    1,688
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Resizing Frames

    Hey there,

    I'm building a tool for my company and I'm making use of frames in it. I have one frame on the left side and two frames on the right side. I have two forms on the main frame (the left panel) and the user has an option to submit to either frame or to both frames.

    I'm wondering: is there any way to resize the right bottom or right top frame via JavaScript if someone submits to only one of the frames?

    Any help is appreciated. TIA.

  2. #2
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I tried this with IE6 and Moz1.4 on Win98.

    First give the frameset an ID:
    Code:
    <html>
    <head>
    </head>
    <frameset id='myFrameset' cols="30%,70%">
    <frame name="Frame1" src="frame1.html">
    <frame name="Frame2" src="frame2.html">
    </frameset>
    </html>
    Now you can do this:
    Code:
    var fs = window.top.document.getElementById('myFrameset');
    if (fs) {
      fs.cols = '70%,30%';
    //  fs.rows = ...
    }
    IE reference
    Moz reference

  3. #3
    SitePoint Wizard davidjmedlock's Avatar
    Join Date
    Dec 2002
    Location
    Nashville, TN USA
    Posts
    1,688
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    wonderful, i'll give it a shot. thanks!


Bookmarks

Posting Permissions

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