Using JavaScript to extend the height of a DIV to the height of a document or page.

Hello everyone,
How can I use JavaScript to dynamically resize a DIV on a page so that the div extends vertically to the size of the page or document.
I have been experimenting all evening with different methods, some don't even work.
Thanks everyone!
WE

Thanks for responding, I'll gladly explain further, hopefully you can help me.
I have a DIV on the right side of the page (sidebar) it has very little content and does not extend to the botom of the page.
However, I have another DIV with text that extend further down the page.
What I am trying to do is have the sidebar extend to the bottom of the page or window height.
This way as more text is place in the other DIV and the page stretches down, the sidebar stays extend at the bottom.
I know the CSS method but I would like to experiment with JavaScript.
I want to be the cook with many knives!
Thanks for helping!
WE
garywpaul wrote:
I'm not sure I understand you question. It sounds to me like you want div columns to match in size regarless of content amount?  If that is the case, you want to use faux columns.
Read about it here:
http://www.paulgdesigns.com/faux-columns.php
If I am not understanding you, post back.
gary

Similar Messages

  • HT5534 I down loaded the new  iwork update. Now when I create a document in pages save it and try to open it later some times the message comes that You need a later version of pages. Some times I don't have that problem.

    I down loaded the new  iwork update. Now when I create a docume

    I hate the new 5.0, and am having the same issue. Because I created or opened and saved several documents in the new 5.0 before I realized how bad it is, I had to figure out how to make them usable again.
    I have both versions of Pages (5.0 and 4.3) in my Dock for now. If a document tells me that it can't be opned by 4.3, I opn 5.0, open the document, EXPORT it in 4.3 with the same name, and overwrite the old document. That usually (big dog willing and the creek don't rise!) gives me access to my work.
    Once I am sure I have no remaining 5.0 douments around, I'll take 5.0 out of the dock.
    It truly is a pain in the ***. Here's the comment I left for Apple –
    I am now attempting to uninstall Pages 5.0 so I can go back to using Pages 4.3. The designers of 5.0 took away (or hid) so many of the functions that I've come to know and trust that I am appalled.
    It is now a kindergarten version of the workhorse I knew and loved. IT EVEN LOOKS like a dumbed-down app now, with cartoon buttons that reflect its audience – people who don't need a sophisticated, customizable publishing tool, who just need simple  icons they can point at LIKE A FAST FOOD CASH REGISTER.
    I'll be using either 4.3 or Word for Mac from here on out.

  • How does one use JavaScript with the Windows Media Player Plugin?

    Hi there.
    According to this old [http://msdn.microsoft.com/en-us/library/dd564570%28v=VS.85%29.aspx MSDN Article] it is possible to control the windows media player plugin using javascript.
    It provides a series of objects off the object that should perform certain funtions, such as play stop and seek.
    It states very clearly in the article that some are not supported; however, none of them seem to be working with the latest version(s?) of Firefox.
    I have Firefox 5 installed currently and have not tested in any other version, so I'm not sure when it stopped working.
    The video does load and will display properly -- the ability to control it through javascript however, does not work.
    i.e.:
    var mplay = document.getElementById('myplayer');
    mplay.controls.play(); // mplay.controls is undefined
    This same code works in Internet Explorer.

    You need to place the URL in a data attribute for Firefox.
    <pre><nowiki>document.write(' <OBJECT id="Player" data="http://87.117.197.189:16229" width="320" height="45" type="application/x-ms-wmp">');
    document.write(' <param name="AudioStream" value="true">');
    document.write(' <param name="Enabled" value="True">');
    document.write(' <param name="ClickToPlay" value="false">');
    document.write(' <param name="BufferingTime" value="5">');
    document.write(' <param name="ShowDisplay" value="False">');
    document.write(' <param name="Volume" value="70">');
    document.write(' <param name="autoStart" value="true">');
    document.write(' </OBJECT>');</nowiki></pre>

  • Change the value of a SharePoint List lookup control value using javascript

    hi,
    could you please help in changing the value of a SharePoint List lookup control value using javascript.
    Please note that i have to change the lookup value which is in the form of a drop down from the infopath form.
    Thanks

    https://stackoverflow.com/questions/5678210/select-dropdown-menu-option-with-javascript
    Does that help?

  • How to use javascript to print on the client side

    hi all,
    Now i'm facing a problem:
    I want to use javascript to print something(for example, a table) on the client side. So i must get a connection with the printer installed in the client computer.
    some says that getObject() function can do this,but i don't know how?
    Who please help me!

    window.print();

  • Drawing Lines Photoshop CS4 using JavaScript

    I am new to javascript and have read a manuel on the basics of javascript in regards to photoshop. I was just wondering how to draw a straight line using javascript. Thanks.

    You could start by looking at the sample scripts that ship with photoshop to see a coding sample of stroking a selection. Then look at the doc on making selection and paths etc.
    // Copyright 2002-2007.  Adobe Systems, Incorporated.  All rights reserved.
    // Create a stroke around the current selection.
    // Set the stroke color and width of the new stroke.
    // enable double clicking from the Macintosh Finder or the Windows Explorer
    #target photoshop
    // in case we double clicked the file
    app.bringToFront();
    // debug level: 0-2 (0:disable, 1:break on error, 2:break at beginning)
    // $.level = 0;
    // debugger; // launch debugger on next line
    if (app.documents.length > 0)
        if (app.activeDocument.activeLayer.isBackgroundLayer == false)
            var strtRulerUnits = app.preferences.rulerUnits;
            app.preferences.rulerUnits = Units.PIXELS;
            var selRef = app.activeDocument.selection;
            var offset = 10;
            var selBounds = Array(Array(offset, offset), Array(app.activeDocument.width - offset, offset), Array(app.activeDocument.width - offset, app.activeDocument.height - offset), Array(offset, app.activeDocument.height - 10));
            selRef.select(selBounds);
            selRef.selectBorder(5);
            var strokeColor = new SolidColor();
            strokeColor.cmyk.cyan = 20;
            strokeColor.cmyk.magenta = 90;
            strokeColor.cmyk.yellow = 50;
            strokeColor.cmyk.black = 50;
            app.displayDialogs = DialogModes.NO;
            selRef.stroke(strokeColor, 2, StrokeLocation.OUTSIDE, ColorBlendMode.VIVIDLIGHT, 75, true);
            app.preferences.rulerUnits = strtRulerUnits;
            selRef = null;
            strokeColor = null;
            selBounds = null;
        else
            alert("Operation cannot be performed on background layer");
    else
        alert("Create a document with an active selection before running this script!");

  • How to get values from a table(in jsp) for validation using javascript.

    hi,
    this is praveen,pls tell me the procedure to get values from a table(in jsp) for validation using javascript.
    thank you in advance.

    Yes i did try the same ..
    BEGIN
    select PROD_tYPE into :P185_OFF_CITY from
    magcrm_setup where atype = 'CITY' ;
    :p185_OFF_CITY := 'XXX';
    insert into mtest values ('inside foolter');
    END;
    When i checked the mtest table it shos me the row inserted...
    inside foolter .. Now this means everything did get execute properly
    But still the vallue of off_city is null or emtpy...
    i check the filed and still its empty..
    while mtest had those records..seems like some process is cleaining the values...but cant see such process...
    a bit confused..here..I tried on Load after footer...
    tried chaning the squence number of process ..but still it doesnt help
    some how the session variables gets changed...and it is changed to empty
    Edited by: pauljohny on Jan 3, 2012 2:01 AM
    Edited by: pauljohny on Jan 3, 2012 2:03 AM

  • How to pass value to pop up window using javascript function?

    I am not sure how to do this, I want to open new window from existing form,This is Mod/PLsql for consists some javascript functions also. When I am clicking on new window in form then new form should open with results of value entered,but new window form is opening with main page :( , not able to get text box value from parent form. How to call textbox input value in popup window from parent window using javascript?
    currently I'm using following code:
    HTP.p('<script type="text/javascript">
    function pop_up5()
    var l_url=window.opener.document.getElementById("p_single_store_pc").value;
    window.open(l_url, '''', ''fullscreen=no, scrollbars=1'');
    </script>' );
    Edited by: user11970612 on Jun 14, 2012 5:02 AM

    this is probably due to the Javascript code and not a "real link" to another page... I don't know if the null is due to the Javascript...
    But if you really really want to use javascript instead of a ... you can pass the location of the url with JSP (on your main page) as a parameter to the open window... (...) u can put instead of main.jsp <%= request.getServerName()+request.getRequestURI() %>
    the value <%= ... %> will return something like test.com/html/main.jsp
    Hope this helps.

  • How to use JavaScript to Open a link automatically

    Is there a method (using JavaScript) to allow a user clicked link to open the link through a “intermediary” page?
    For example, say I have a web page with a embedded Flash file that contains links to several different (outside) web pages. The behavior I want is that the user clicks a link (within the Flash file), a HTML window opens (over the 1st HTML/Flash window) with the new content, leaving the original Flash/HTML window displayed in the background. The user reads the new content. The user can then close the newer window and be back at the displayed HTML/Flash file.
    The twist is that the link embedded in the referring Flash/HTML file goes to a “intermediary page”. Call that the “collector” page. I control that page. On that page I have collected (in a list) all the actual outside URLs (I do this so that I can easily change the URLs using HTML rather than having to edit the Flash file.) The Flash file contains essentially the same URL for each outside location (plus a variable unique to a specific URL).
    The user should not ever actually see this intermediary/collector page. Instead, they click the link, a variable is passed from the referring page to the collector page and fires the corresponding link automatically (replacing the content in the newly created window). Since the link fires automatically the content in the new window (initially created by the collector page) changes to the destination content.
    Is this possible?
    What JavaScript functions are used?
    How are the referring links constructed in the Flash so the variable is passed to the collector page?
    How does the “collector” page auto open the actual content?
    If anyone can point me to descriptions on how this might be done I’d certainly appreciate it.
    TPK

    >is there a way i can call javascript without security checking?
    It wouldn't be security if you could just bypass it. Did you read all
    the security notes? You might be able to do something with trusted
    functions, but I'm not sure how that would integrate with a plug-in.
    Aandi Inston

  • Using javascript in weblogic 10.3

    Hi.. Can anyone help tell me how to use javascript in weblogic 10.3. I've tried the following option:
    var form = document.getElementById(lookupIdByTagId("searchForm", this));
    var ban = form;
    The form object always returns null.

    Hi.. Sorry for late reply... I got my problem solved.. May be this could be useful to others.
    Use scope id to retrieve values of from elements for Javascript in Weblogic Portal 10.3 :
    For ex:
    Mention:
    <netui:html idScope="sampleScope" generateIdScope="true">
    And in javascript function:
    var label = document.getElementById (lookupIdByTagId("sampleScope.uploadForm_id","form"))[lookupIdByTagId('sampleScope.name_id',"sampleScope.uploadForm_id")].value;
    uploadForm_id is the tagId of <netui:form> and name_id is the tagId of textFeild in that Form.
    Hope this is helpful...

  • How to use Javascript to load random pages?

    I wonder if anyone knows how to use Javascript to load a list
    of links stored in the text file.
    Every address will take a line, and the Javascript will
    randomly select one of the addresses to load.
    The user will click the button "random" and access the page
    randomly selected by the script.

    Addition note:
    I forgot to say this because my computer froze......(how
    lame)
    I got the code for random accessing the links.
    But now the problem is, is there anyway to parse a text file
    into the array in Javascript?

  • Development on SharePoint on-line using JavaScript in an Script Editor

    Hi,
    I’m doing a SharePoint development on SharePoint on-line using JavaScript in a Script Editor. I've changed the Calendar NewForm.aspx  in SharePoint designer and I should check the Start Date and End date and I should change the procedure of Save button.
    The problem is I cannot have the component ID’s. I even tried to create new components and rebuild the form but my script sometimes working and sometimes not working.
    I've also tried SharePoint Apps in Visual Studio 2013 and Napa but I have problems  accessing SP lists.
    Could you please advise me?

    Hi Sachin,
    Before I read you reply, I had a "Eureka" moment that I was about to write about.  I got my Javascipt to read my the value that was set in the Filterdropdown!  However, you somewhat burst my balloon with the revelation about how re-sizing
    window changes their size (i.e., Large to Medium, etc)?  It is true, my function does not work when I click the "restore down" icon on the upper right corner of my window, then it works again when I maximize the window.  That sucks : (
         Oh, well.  Thanks just the same!
    For what it is worth, here is the script I wrote:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
        <script language="javascript">
            //This function reads the digest using /contextinfo.
            function ShowAlert()
                alert(document.getElementById("Ribbon.ContextualTabs.MyWork.Home.Data-Large-2-1").textContent);
        </script>
    </head>
    <body>
    What filter am I set to?  Click the Button snd I will tell you... <input type="button" value="Button" onclick="ShowAlert()";/>
    </body>
    </html>
    \Spiro Theopoulos PMP, MCITP. Montreal, QC (Canada)

  • How to get image properties in PDF using javascript or plug ins

    Hi
    How to get the image(all the images) properties in PDF using javascript or suggest plug ins
    Thanks in Advance

    HI,
    In the PDF Edit API's ( as has already been suggested) there is the PDEImage and using this you should be able to find out everything you need to know about any image in a PDF file.
    I would recommend starting with PDEImageGetAttrs
    Hope this helps
    Malcolm

  • Read navigation url OR Custom property for a term in Taxonomy using Javascript

    Hi All,
    we have followed the below steps to retrieve the managed metadata terms.
    http://sympmarc.com/2013/10/11/spservices-stories-18-retrieve-managed-metadata-using-javascript-and-spservices/
    and we have achieved and constructed the same through JavaScript.
    Below is the screen shot.
    Issue:-
    we are unable to retrieve the term navigation url. Can you please help us to retrieve navigation url OR Custom property.
    Thanks in Advance.

    Hi,
    According to your description, you want to manage term custom property in SharePoint 2010.
    As you know, there is no OOTB method to meet your requirement.
    If you want to do it without coding, you can take a look at this tool about managing term store:
    http://www.metavistech.com/product/term-store-manager
    As this is a third party tool, we are not sure whether it has risks, please use with caution.
    Best regards
    Patrick Liang
    TechNet Community Support

  • Benefits/ Limitations when we use  SAP HANA Extended and Standard products.

    Hi All,
    We are going to purchase SAP HANA media. Please let me know what are the benefits/ limitations when we use  SAP HANA Extended and Standard products.
    Thanks in Advance,
    Vishall

    Hello,
    please check Master Guide (page 9 - chapter 1.6 Software Components)
    https://service.sap.com/~sapidb/011000358700000604552011
    There you can find edition comparison and detailed description.
    To extract the short summary:
    Platform edition = SAP HANA Database + Studio + Client + Host Agent + Information Composer
    Enterprise edition = (Platform edition) + LT Replication Add-on (SLT) + LT Replication Server (SLT) + SAP BO Data Services
    Enterprise extended edition = (Enterprise edition) + Sybase Adaptive Server Enterprise + Sybase Replication Server + Sybase Replication Server Agent + SAP HANA load controller
    It depends on what licenses you already have and how do you intends to use HANA.
    Platform edition = ETL via BO Data Services (you already have license for BO Data Services)
    Enterprise edition = SLT and/or BO Data Services (including licenses)
    Enterprise extended edition = all replication technologies
    Tomas

Maybe you are looking for

  • Issue in Asset Mgmt

    Hi I have an issue in implementing Asset Accounting. We are live on SAP FI and have GL Accounts for all asset fo accumulated depreciation, depreciation expense and cost of asset. Now we want to use Asset accounting  and would classify the asset based

  • Help!! uploaded files in the application is not getting applied

    Hi all, I have 2 css file, 1 image file and 3 javascript files uploaded. once when i clear the browser cache and start the application it works fine. ie all files are getting applied in the application. then when the page is refreshed in the middle o

  • Error while Creating Flat file Source System

    Hi Friends, The message "No entry for BW_USER in table RSADMIN available" is shown when I try to create a Source System for File System(Manual Metadata, Data using File Interface). Could somebody help me please. Thanks in advance. Hanuma Reddy

  • How do i install airport extreme on a windows pc and route it to another windows desktop?

    How do I install airport extreme into a windows desktop pc and then successfully route it to another windows desktop?

  • Printing problem with iPhoto 9.5 version

    I have tried to print a photo today, using the Share function in iPhoto. It did not work. Epson SW438 printer fired up but proceeded to print the picture but without the paper feeding through. This is NOT a printer malfunction. I printed successfully