The use of JavaScript to extend the height of a DIV at the height of a document or a page.

Hi all

How to 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 did experiences throughout the evening with different methods, some do not work yet.

Thank you all!

WE

This question is asked several times a week.

SAME HEIGHT CSS COLUMNS

Option 1. Start the project with equal height CSS Layout
     http://matthewjamestaylor.com/blog/equal-height-columns-cross-browser-CSS-no-hacks

Option 2. Use the Faux column method (vertical tiled background image)
     http://forums.Adobe.com/message/2653416#2653416

Option 3. Use of JavaScript
     http://www.Projectseven.com/Tutorials/CSS/pvii_columns/index.htm

Each solution has advantages and disadvantages.  Use the one that best meets your needs.

Nancy O.
ALT-Web Design & Publishing
Web | Graphics | Print | Media specialists
http://ALT-Web.com/
http://Twitter.com/ALTWEB

Tags: Dreamweaver

Similar Questions

  • I am disabled and I use Windows speech recognition. If I work in Word or any text editor a document of 50 pages, how the computer for to jump me from page 1 to 10?

    Well, I started using Windows speech recognition, and everything went very well, is a great tool for me because I can't type on the keyboard, why I have disabled hands. I happen to work with Microsoft Word 2010 on the platform of Windows seven, a project of 50 pages and constantly say I need to change the page from one to ten, or five to twenty years. My question is if there is a way to say loud and clear to the computer I have jump off page one ten, twenty to forty years and so on.

    Well, I started using Windows speech recognition, and everything went very well, is a great tool for me because I can't type on the keyboard, why I have disabled hands. I happen to work with Microsoft Word 2010 on the platform of Windows seven, a project of 50 pages and constantly say I need to change the page from one to ten, or five to twenty years. My question is if there is a way to say loud and clear to the computer I have jump off page one ten, twenty to forty years and so on.

    Victor,

    In Word 2007 and 2010, the Page indicator is in the lower left corner of the document window. I said, "show numbers". Number 85 flashed on the Page and I say: '85. " Then the discovery of a dialog box replace opens the tab go to say something don't like, "sign more (give a short break) space 10" or "minus sign (pause) no space 20" after entering the + 10 or - 20 etc. say, "go to" ".

    Marty Markoe,
    2010-2011 Microsoft MVP

  • Change the font in a document of several pages

    Hello

    I used two fonts in a 80-page document in InDesign and am trying to figure if I can change one of them, if the change is made throughout the entire document?  For example, rather than having to go through each page individually?

    Thanks if anyone can help :-)

    If you set the paragraph styles for your document, simply change the style definitions. Otherwise, type > find font...

  • Please let know us if it is practical to use Airport Extreme to extend the network wireless in a big house.

    I suspect that an original device connected to the modem cable... an intermediate device... and there should be a final device in a place further from the original device. I note that tech online article does talk to a wireless network using the 802.11ac signal. Would be grateful for advice on the feasibility of this. I currently have a Time Capsule, Airport Extreme connected my cable modem. I have a ~ 6 600 feet at home with the press on the 2nd story room and the other end of the House.

    You can use Airport Express to extend wireless created by an AEBS. If the AEBS is a model of turn then it supports 802.11ac, but most dishes are not. New the AEX take in charge 802.11ac, but it is of little use if the AEBS model is not.

  • How to use TPLink WD8961ND to extend the time Capsule

    I'm currently have Airport Extreme and Time Capsule.

    Time capsule is the main base, extreme is configured as extended wireless.

    I have an old TPLink WD8961ND adsl wireless router, and now it is no longer used. I'm trying to use again as another scope wireless with time capsule as the main basis wireless.

    But I can not configure properly the configuration. TPlink can act as a wireless bridge (using WDS), but time capsule does support WDS? Is it possible to use as a wireless extended tplink using timecapsule as main base?

    Help, please.

    Thank you.

    Benny.

    I have an old TPLink WD8961ND adsl wireless router, and now it is no longer used. I'm trying to use again as another scope wireless with time capsule as the main basis wireless.

    You may know that Apple uses parameters exclusive for their feature 'extend a wireless network', which are designed to allow only other Apple devices to "extend" the wireless network.

    Thus, while it was possible somehow for the TP-Link device do what you want... It also very unlikely to be able to do what you want.

    TPlink can act as a wireless bridge (using WDS), but time capsule does support WDS?

    Apple dropped support WDS, over 3 years ago. Even if WDS were always taken care... WDS runs at a speed much more slow 'g' wireless and use outdated security settings, so there is no advantage to using these older settings, even if you could.

    Unless you have tons of time your hands for the experience and a lot of patience, my advice would be extending wireless... and look at a configuration where the TP-Link is permanently connected to the Apple router by using the connection cable wired Ethernet TP-Link.

  • I just started using dreamweaver cs5 and image width = "3507" height = "2480 appears correctly on my page how to solve the this.someone please help

    I just started using dreamweaver cs5 and image width = "3507" height = "2480 appears correctly on my page how to solve the this.someone please help

    I played around the waist ut still not put the page to display properly

    The time has come to show us the code. It is best done by providing a link to the site, if you could post the HTML code and CSS here for us to have a look on.

    What you did until now, is an image that is limited in its container, a container that is much narrower than the width you are aiming for.

  • cpEIGetValue - the use of Javascript on a button

    What I'm doing:

    The user works with the content and the input of information in a number of places.  At the end of the content entered information are formatted specifically in a legend of test using the associated variables.  I need to also be able to provide this information in a way where they can select and copy the text, which is not possible in a SWF or out of HTML5.  My solution was to add a button to a page and use JavaScript to open a new browser window/tab and displays the output.  It comes to Cp8.

    The code works well (except for Cp components in a javascript interpreter, but doesn't seem to work at all in the Cp.  I activated the Flash security so that objects will run.

    The JavaScript in question isn't pretty, but it will do the job.

    create a window

    var winout = Window.Open ();

    connect to Cp

    var cp = document. Captivate;

    get the value of Text_Entry_Box_1

    T1 var = cp.cpEIGetValue ("m_VarHandle.Text_Entry_Box_1");

    create the output

    output var = "< html >".
    output += '< body > ";
    output += ' < h1 > your problem statement < / h1 >. "
    output += '< p > you can select and copy your statement of the problem of this window and paste into Word or PowerPoint to continue to refine your problem statement. < /p > ";
    output += '< p > ';

    output += t1;

    output += ' < /p > < / body > < / html > "

    the output display
    WinOut.document.Write (output);

    If I remove the Cp-specific code, it works in the javascript interpreter.  If I fix this code to a button by setting the action "Execute JavaScript" and insert the code in a javascript window and publish, the result is odd.  When I launched my published file and press the button to run the javascript code, IE displays the "File download" dialog box and tries to save the file without a name.  It is a problem of javascript code, but I can't understand it.  If I can get this working, I can add the rest of the variables and this fact.

    Thank you

    Chris

    Wrap your original script in a function:

    function openPopup()

    {

    create a window

    var winout = Window.Open ();

    connect to Cp

    var cp = document. Captivate;

    get the value of Text_Entry_Box_1

    T1 var = cp.cpEIGetValue ("m_VarHandle.Text_Entry_Box_1");

    create the output

    var = exit"";
    output & ="";
    output & ="

    Your statement of the problem

    ";
    output & ="

    You can select and copy your statement of the problem of this window and paste into Word or PowerPoint to continue to refine your statement of the problem.

    ";
    output & ="

    ";

    output += t1;

    output & ="

    ";

    the output display
    WinOut.document.Write (output);

    }

    then the button call javascript:

    openPopup();

    You could even do a little more dynamic and send the variable in the function, so you can use it again and again.

    function openPopup (myText)

    {

    create a window

    var winout = Window.Open ();

    create the output

    var = exit"";
    output & ="";
    output & ="

    Your statement of the problem

    ";
    output & ="

    You can select and copy your statement of the problem of this window and paste into Word or PowerPoint to continue to refine your statement of the problem.

    ";
    output & ="

    ";

    output += myText;

    output & ="

    ";

    the output display
    WinOut.document.Write (output);

    }

    then the button call javascript:

    var cp = document. Captivate;

    getText var = cp.cpEIGetValue ("m_VarHandle.Text_Entry_Box_1");

    openPopup ("getText");

  • Use of javascript within the page fragment

    Im trying to use javascript code within a fragment of a page with the tag

    AF:resource

    But the second time the page reloads I got this error: "ReferenceError: works is undefined"

    <af:resource type="javascript">
          function funciona() {
              alert(123);
          }
    </af:resource>
    

    IM using JDeveloper 12 c

    Check the 'witch hunt during the use of JavaScript in the regions of the ADF' in this document http://www.oracle.com/technetwork/developer-tools/adf/learnmore/march2012-otn-harvest-1571998.pdf

    Timo

  • Create the Excel using Indesign javascript file

    Hi all

    We can create csv file using indesign javascript. Is there a way to create excel file using indesign javascript?

    Thanks in advance

    Hi all

    It is a way to generate an Excel from an InDesign table by using a combination of jsx, vbs and applescript.

    Quite a long discussion on that Open with below is a better application of the suggestions here.

    // Exports SIMPLE tables to proper excel file single and double quotes in the table would have to be escaped on the Mac version
    // Does not take Unicode file names
    // with a bit of brain racking can be developed to deal with merged cells and nested tables
    // Pieced together by Trevor (wwww.creative-scripts.com coming soonish) based on the referenced sources
    // Sold AS IS https://forums.adobe.com/thread/1718021
    
    var doc = app.properties.activeDocument && app.activeDocument,
           myTable = myTable || getTable (doc);
    if (!myTable) {alert ("Take a break, needs a document with a table in it!"); exit();};
    var filePath = new File (Folder.temp + "/" + +new Date + ".xlsx"),
        osFilePath = filePath.fsName;
    if ($.os[0] === "M")  osFilePath =  osFilePath.replace(/(.)(\/)/g,"$1:").replace(/\//, "");
    
    exportTable (myTable, osFilePath);
    if (confirm ("Open new excel file")) filePath.execute(false);
     exit()
    function exportTable (myTable, filePath)
        {
            var  numberOfRows = myTable.rows.length,
                   rowNumber, columnNumber,
                   isMac = $.os[0] === "M",
                   rowContents = [],
                   setRange, openMark, closeMark;
    
            if (isMac)
                {
                    setRange = 'set value of range "A';
                    openMark = '" to {';
                    closeMark = '}';
                }
            else
                {
                    setRange = 'app.Range("A';
                    openMark = '") = Array(';
                    closeMark = ')';
                }
    
    for (var z = 0, rowNumber = 0; rowNumber < numberOfRows; rowNumber++) {
        var  numberOfColumns = myTable.rows[rowNumber].columns.length,
                toRange = GetExcelColumnName (numberOfColumns - 1),
                columnContents = [];
         for (columnNumber = 0; columnNumber < numberOfColumns; columnNumber++) {
             var cellContents = myTable.rows[rowNumber].cells.everyItem().contents;
             columnContents  = '"' + cellContents.join('", "') + '"';
         }
        rowContents[rowNumber] = setRange + ++z  + ":"  + toRange+ z + openMark  + columnContents + closeMark;
    }
    
    var tableData = rowContents.join("\n") + "\n";
    
                   if (isMac)
                        {
                            // Thanks Hans https://forums.adobe.com/message/5607799#5607799
                           var myAppleScript =
                            '''set excelRunning to isRunning("Microsoft Excel")
                               tell application "Microsoft Excel"
                               set theWorkbook to make new workbook
                               tell sheet (1) of theWorkbook'''
                               + tableData + '''
                               end tell
                               save workbook as theWorkbook filename "''' + filePath + '''"
                               close active workbook
                               if not excelRunning then tell application "Microsoft Excel" to quit
                               end tell
                               on isRunning(appName)
                                    tell application "System Events" to (name of processes) contains appName
                               end isRunning
                            ''';
                          app.doScript (myAppleScript, ScriptLanguage.APPLESCRIPT_LANGUAGE);
                        }
    
                    else
                        {
                            // Thanks Calos https://forums.adobe.com/message/5607799#5607799
                            // changed by me :-)
                             var vbscript =
                             '''Dim app
                                Set app = CreateObject("Excel.Application")
                                'take away the ' from the line below if you want to see excel do it's stuff
                                'app.visible = true
                                Dim newDoc, sheet
                                Set newDoc = app.Workbooks.Add()
                                Set sheet = newDoc.Worksheets(1)
                                '''
                                + tableData
                                + 'newDoc.SaveAs "' + filePath + '''"
                                app.Quit
                                Set newDoc = nothing
                                Set app = nothing
                              ''';
                            app.doScript (vbscript, ScriptLanguage.VISUAL_BASIC);
                        }
    
                }
    
    function GetExcelColumnName (columnNumber) {// 0 is A 25 is Z 26 is AA etc.
        // parsed from http://stackoverflow.com/questions/181596/how-to-convert-a-column-number-eg-127-into-an-excel-column-eg-aa
         var dividend = columnNumber + 1,
                columnName = "",
                modulo;
    
        while (dividend > 0)  {
            modulo = (dividend - 1) % 26;
            columnName = String.fromCharCode (65 + modulo) + columnName;
            dividend = Math.floor((dividend - modulo) / 26);
        }
        return columnName;
    }
    
    function getTable (doc) { // thanks Marc http://forums.adobe.com/message/6087322#6087322
        if (!doc) return false;
        app.findTextPreferences = null;
        app.findTextPreferences.findWhat = "\x16";
        var tables = doc.findText();
        if (tables.length) return tables[0].parentStory.tables[0];
        return false;
    };
    
  • Question about the use of JavaScript in Managed Bean

    Hello

    I have two questions... The reason for these questions is: we have a requirement that we have executed successfully using jsp and javascript. Now, we are unable to be implemented using the framework of the ADF. It is why would have a jsp with javascript page to reach the requirement.

    The condition is:
    1. to print a page. This page should be displayed with a customer bills. If the customer has 3 invoices (html content), these 3 bills needs displayed on the screen with a page break.
    2. because the page has a lot of data, certainly there will be a right of the page scroll bar to scroll down to see the data.
    3. now, the user clicks on the file--> print available on the browser / provided a "print" button with < af:showPrintablePageBehavior / >. When this happens, it is able to print the data that is displayed on the screen, not all 3 bills.

    This kind of requirement we already implemented using legs force Framework(jsp,java script).

    Now my question to you is:
    how we can open a new window bowser using java from a managed bean script.
    Let me know if you need more information about it.

    Thank you and best regards,
    Kiran kristelle

    the PDF version of the documentation:
    http://download.Oracle.com/docs/CD/E14571_01/Web.1111/b31973.PDF

    Kind regards
    Branislav

  • I have a picture that I separated to CMYK using my Acrobat pro Extended. I need to calculate the area of each color. Can I do this? Thank you and best regards.

    Post edited by: charbel abdo

    Hi Charbel,

    If you want to measure the surface of each color, you can use the tools in Acrobat format: Adobe Acrobat X Standard * grids, benchmarks and measures

    If you want to display the image resolution, color mode, transparency, and other information about the contents of a document, you can use 'Object inspector' under the section 'Preview' of the 'The output Preview' dialog: using Acrobat | Output preview (Acrobat Pro)

    Kind regards

    Rave

  • I get the following message when you use Safari and Firefox. Works in Chrome: "we're sorry, the link that brought you to this page is not valid."

    I'm working with my bank account online and I get to the homepage very well. When I select the online banking, estatements, I get the following message when it tries to link to the electronic statement page.
    "We're sorry, the link that brought you to this page is not valid." Chrome has no problem displaying this page, but Firefox and Safari gives me the same message.

    Note that I posted this already above, but don't not checked if she was tried.

    You may need to allow cookies from third party (visited or all).


    To view the history settings and cookies, choose:

    • Firefox > Preferences > privacy > Firefox will be: "use the custom settings for history".
  • How can I get Mozilla to use the name of the page for the name of the real instead of the URL bookmark when I bookmark a page

    I just noticed that (in comparison to Internet Explorer): in IE, when you preferred a Web page, it uses the actual name of the Web page (for example, for this page, it would be "Ask a Question Firefox Help" as the name of the bookmark), but in Mozilla, it uses the URL as the name of the bookmark. I was wondering if it was possible to change my Mozilla settings so that it uses the name of the Web page as the bookmark name instead of the URL? I hope that everyone understands what I am getting? If anyone can help me, I would really appreciate it. Thank you.

    Firefox uses the tag title for the name of the newly saved bookmark.

    When I bookmark on this forum page I get this for the 'name' of the bookmark.

    How can I get Mozilla to use the name of the page for the name of the real instead of the URL bookmark when I bookmark a page | Firefox Support Forum | Firefox help

  • I currently have an iMac 27 ", end of 2012 running OSX 10.8.5 Mountain Lion.  Can I upgrade directly to El Captain OSX 10.11.2 without going through any other upgrade using the free update available on my update page?  T

    I currently have an iMac 27 ", end of 2012 running OSX 10.8.5 Mountain Lion.  Can I upgrade directly to El Captain OSX 10.11.2 without going through any other upgrade using the free update available on my update page?  Thank you

    Yes.

    (137273)

  • HP C6280 All in One Printer: unable to save the scanned document of multi page as on the single Document using the Preview on IMAC computer

    I recently reinstalled my drivers on my IMAC computer to correct some strange characters appearing when printing from Microsoft word via Parallels.  The relocation at this time and the time has fixed this problem.  My most recent issue is not able to save a scanned document of multi page into a document using an excerpt?  In the latest that I had to do was high brightness, scanned documents to be saved and presto, all were saved under one.  Now you have to go save each of them at a time.  If you have a 5-page document, you need to go through the registration process 5 separate time create several documents, which is a big waste of time.  I have also my C6280 DPL 100 size should be a problem, I think.  To correct even any help would be greatly appreciated.

    RG.

    Hi @RGrantB3,

    Welcome to the HP Forums! I'd love to help you analyze documents several pages in a single file. When you scan, you select PDF as the format scanning? When you select the PDF file, you should see an option to select, save all pages in a single file, or a variant of this option.

    If you do not see this, please post a screenshot of you scanning settings for I can visually identify the issue.

    How to take a screenshot on a Mac.         How to post a picture on the HP Forum s.

    I can't wait to hear back on your part. If this resolves the issue, please click Accept as Solution button below so that others can see what has worked for you. Thank you.

Maybe you are looking for