www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Client-Side Development > JavaScript

    JavaScript JavaScript (not Java) Discussion and technical support, including AJAX and frameworks (JQuery, MooTools, Prototype...)

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 02-16-2003, 07:13 PM
    Alan Alan is offline
    Registered User
     
    Join Date: Feb 2003
    Location: UK
    Posts: 7
    Angry Referencing Frame Attributes

    I've still not got the hang of frame refs so this is driving me mad trying different permutations.

    In the Header frame there is a button with an onclick javascript to reference a function in the parent frame (brought in by Ops_Cen_Script_Control.js). That gets invoked OK.

    I'm stuck trying to set the col attribute in the Left frame. I need to dynamically resize it to zero width so that the Right & RightHeader frames take up the whole width.

    <HTML>
    <HEAD>
    <SCRIPT src="Ops_Cen_Script_Cookies.js";></SCRIPT>
    <SCRIPT src="Ops_Cen_Script_Control.js";></SCRIPT>
    <!-- Created with AOLpress/2.0 -->
    <LINK REL=stylesheet HREF="Ops_Cen_Style_Guide.css" TYPE="text/css">
    </HEAD>
    <FRAMESET FRAMEBORDER="0" FRAMESPACING="0" ROWS="62,1*">
    <FRAME SRC="Header.htm" NAME="Header" SCROLLING="No" NORESIZE>
    <FRAMESET FRAMEBORDER="0" FRAMESPACING="0" COLS="50%,50%">
    <FRAMESET FRAMEBORDER="0" FRAMESPACING="0" ROWS="100%,1,1*">
    <FRAME SRC="blank.htm" NAME="Left" MARGINWIDTH="0" MARGINHEIGHT="0" NORESIZE>
    <FRAME SRC="frmPage.htm" NAME="frmPageView" SCROLLING="No" NORESIZE>
    <FRAME SRC="bldPage.htm" NAME="bldPageView" SCROLLING="No" NORESIZE>
    </FRAMESET>
    <FRAMESET ROWS="19%,83%">
    <FRAME SRC="RightHeader.htm" NAME="RightHeader" SCROLLING="No" NORESIZE>
    <FRAME SRC="blank.htm" NAME="Right" MARGINWIDTH="15" MARGINHEIGHT="15" NORESIZE>
    </FRAMESET>
    </FRAMESET>
    </FRAMESET>

    The script only needs to work under IE.

    Thanks.
    Alan
    I'm new to this forum but it seems very active and helpful. Thanks a lot.
    Reply With Quote
      #2  
    Old 02-16-2003, 07:18 PM
    Alan Alan is offline
    Registered User
     
    Join Date: Feb 2003
    Location: UK
    Posts: 7
    Clarification!!

    Its the
    <FRAMESET FRAMEBORDER="0" FRAMESPACING="0" COLS="50%,50%">

    that I want to change to
    <FRAMESET FRAMEBORDER="0" FRAMESPACING="0" COLS="0%,100%">

    It seems more logical to name the frameset and reference the col attribute on that, but I've never seen that coded anywhere.

    Thanks
    Alan
    Reply With Quote
      #3  
    Old 02-18-2003, 05:38 PM
    Alan Alan is offline
    Registered User
     
    Join Date: Feb 2003
    Location: UK
    Posts: 7
    Answer

    My hunch was correct, the FRAMESET needs a NAME= and then the code is simplicity:

    frames["framename"].setAttribute("cols","0%,*");

    However, it is then important to force the browser to re-draw. I open an empty page into a small browser window:

    window.open ("refresh.htm","","height=1,width=1");
    }

    The refresh.htm has an ONLOAD script to immediately close itself:

    window.close();


    Alan
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 11:57 PM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.