How can I resize an iframe in apex based on the amount of available space on the screen with a button

Hello.  I have a request to 4.2.2.00.11, llg Server Oracle apex.  The conditions for this application are to hide and display a navigation bar by clicking on the buttons leathers/display on the screen.  The right side of the screen has an iframe that is to fill up whats left of the estate of the web browser.  Search in google, I found a function that works on the laundry.  I need the iframe to resize when the browser hides and shows, but when I tried to create a dynamic action on click to call javascript, hide and show the features of the browser bar break.  The iframe is not also resize.

Here's the code that I currently use.

JavaScript in my page header

<script language="JavaScript">
<!--
function autoResize(id){
    var newheight;
    var newwidth;


    if(document.getElementById){
        newheight=document.getElementById(id).contentWindow.document.body.scrollHeight;
        newwidth=document.getElementById(id).contentWindow.document.body.scrollWidth;
    }


    document.getElementById(id).height= (newheight) + "px";
    document.getElementById(id).width= (newwidth) + "px";
}
//-->
</script>

The source of the IFRAME area.

< IFRAME SRC = "f? p = & I_FRAME_APEX_APP_ID: & I_FRAME_APEX_PAGE_ID.: & APP_SESSION.

: NO::ROLE: & ROLE. "width ="100% "height ="200px"id ="iframe1"marginheight ="0"frameborder ="0"onLoad ="autoResize ('iframe1'); "> < / iframe >

A colleague suggested this, and the width is now set properly.  the height is always not to fit properly in the window.  When I set the height to 100%, the default height for pixels, I put in the iframe.



Tags: Database

Similar Questions

  • How do I resize Photoshop - it is too large for the screen of my Macbook Pro and I can't resize corners?

    Photoshop is too large for the screen of my Macbook Pro.  I can't access the sizing handles - they are off the screen and I can't drag.  Any solution?

    You see the buttons in red, yellow, and red window? If for this, click on the green.

    If you don't then you may be in mode full screen, and pressing once or twice on the "F" key to return to normal mode.

  • How can I add a background to a video of the screen I recorded from my iPhone in iMovie?

    I recorded a record on my iPhone using my macbook and quicktime on the screen. When you change this video in iMovie how can I add a background on the left and right sides. I want the prettier for downloading Youtube video.

    Thank you

    Brandon

    Have you tried the image of image in iMovie?

    You could add the background element you want the main video track, then drag your recording on the screen the second piece with overlays. Select the effect of the image in the image, and then drag the corners resize to adjust the size of your video clip:

  • How can I show or hide a picture based on the size of the screen in CS6?

    I have a website created using Dreamweaver CS6. I used the checkerboard to fluid to hold different views for each of the 3 types - phone, Tablet, desktop computer. It works well, resizes properly. I would like to be able to show a picture in the desktop version but not the mobile version. How I do that? I can see in the .css file that the screens of different size can have their own different settings. Y at - it code I could add that could hide/show and image based on the users on the same page window? Let's say I have a div that is named photo. How could I add a parameter to the div photo in the stylesheet that would hide the image if it were mobile?

    Thank you

    Marilyn

    Thanks, I was able to change my code using your example and it works exactly as I wanted!

  • How can I force an image to open completely on the screen in action?

    In PS CS5 when I open an image with height in the range of 1405-1411 or 1873-1882, the image opens half of the bottom of the screen.  Width opts seem to matter.

    I guess it's a bug, but until it is fixed, I'm trying to work around.

    For manual fitting the vertical adjustment button or zoom out screen causes the image to the screen lights up but neither of these options will save in an action to display.

    When an image is opened halfway off the screen, Place a command place precisely for these images.  So an action that includes a place does not work for these images.

    So either I want to find an arrangement (Nothing in preferences that I can find) to force the image open to the screen, or find a command that runs in an action that activates the picture to come on the screen, while not interefering with images that open normally.

    You can use Insert a Menu item (the Launcher to the Panel menu actions) to record something like view > fit to the screen, but what you describe should not be the case.

    You are using tabs or floating documents?

    Have you tried resetting preferences cs5?

    http://forums.Adobe.com/thread/375776?TSTART=0

    Maybe you could post a screenshot showing how the image opens.

  • How can I assign a printer as my default when the drop-down default button does not work

    I have two printers. I can't assign one or the other as my default printer.

    my program will not allow me to print a cd label verbage. It says no default printer assigned.

    Hi Michael,

    1. were you able to set default printers before?

    2. what operating system you have installed on the computer?

    3. What is the brand and model of printers?

    Please refer to the article to learn how to set a default printer in Windows Vista and 7:

    See the articles for the respective operating systems on how to set the default printer:

    Applies to Windows XP:

    To specify your default printer

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/print_set_default_printer.mspx?mfr=true

    Applies to Windows 7:

    Change your default printer

    http://Windows.Microsoft.com/en-us/Windows7/change-your-default-printer

    Applies to Windows 8, Windows RT

    Set or change your default printer

    http://Windows.Microsoft.com/en-us/Windows-8/set-change-your-default-printer

    Please post back with more details, so that we could provide assistance on the issue.

  • How can I add a new page dynamically based on the non recoverable text field?

    Hi all

    I created a form with subform flow and non-reusable text fields. When the user fills the long content, the shape is cut. Y at - it a way to dynamically add pages based on the content that the user fills the non recoverable text field?

    Thank you

    Check that the parent of the subform also has a fluid layout. If you have the structure below, both page 1 and subform must have a flow layout.

    Page1 (must be the flow)

    subform (must be the flow)

    TextField (let multiple lines and will expand to fit the height)

    If you have done all that, then it should work.

  • How can I resize a shape tween without that he's looking wonky?

    Hello! I am a beginner in flash animation, although I used it to draw several years before.

    I have a problem that I can't find the answer to the simple. I looked in many places.

    in any case, I have a scene to its default size to 550px x 400px. I thought it would be easy to change later if I don't bother making it larger at the beginning. Now that my drawing is completed, I want to make the biggest scene (of 1024px x 768px) AND stretch the graphics / content on the stage as well as the well adapted to the larger stage. And I want it centered too because it is aligned to the left now when I preview it in my browser. It would be a piece of cake, if I didn't have a shape tween that looks to wind blowing hair in!

    The dilemma is that when I resize the graphic, the shape tween ends as a result of these movements, thinking that it is the part of the animation when it is not supposed to be. My question is how can I resize a shape tween without keyframes following the movements that I do? I want just a larger version of the shape tween, I already have put in place and don't want more bigger / change of position to be part of the animation!

    Help, please. Thank you!

    One of those three things should work:

    1. Try to click the key next to the stage width and height and enter your new width and height, then clicking on 'Scale content with scene.'
    2. In your publishing settings, select "percent" and a percentage higher than 100.
    3. Follow the steps here http://flashthusiast.com/2009/10/06/scaling-and-moving-new-motion-tweens-in-flash-cs4/

    Good luck!

  • How can I resize a picture using Picture Manager please?

    How can I resize picture using Picture Manager please? Let's say I want to put 4 x 6 cm for a given photo dimensions. I tried to resize , but is it compresses the picture to send by e-mail etc... It is basically a photo compressor.

    How can I resize picture using Picture Manager please? Let's say I want to put 4 x 6 cm for a given photo dimensions. I tried to resize , but is it compresses the picture to send by e-mail etc... It is basically a photo compressor.

    =============================
    If you are running Windows XP... it is a free software
    The PowerToy that is useful for resizing of the pictures:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Go to the following link and download and
    install: ImageResizer.exe
    http://www.Microsoft.com/windowsxp/downloads/PowerToys/xppowertoys.mspx
    (does not work on Vista)

    Then, you can open any folder containing
    images and you will have an option to resize.
    Just right click the selected image files and
    Choose resize images in the menu. You
    can select a picture or an entire group.

    The program will place the resized in copies
    the folder with your originals.
    (Tip: * never * overwrite your originals)

    To ensure that images in both portrait and
    landscape orientation are resized to the
    same dimensions... go to... Advanced...
    and enter the largest number in these two areas.
    IOW... for 600 x 800... Enter 800 in these two areas.

    (Tip: even if you resize the Photos to the same)
    dimensions (original)... the file size will be greatly
    reduced).

    =====

    If you want to change the proportions of a picture...
    you have to reframe it... otherwise it will be distorted.

    The following freeware has a tool of good harvest.
    Just select a thumbnail and press X to open the
    Council for culture. (Tip: always save your editing / cropped /)
    photos resized under a new name)

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    FastStone Image Viewer
    http://www.FastStone.org/FSViewerDetail.htm

    The following tutorial provides information on the creation of a
    2 "x 2" photo ID, but the steps would be
    basically the same for any size.

    Now, open the program and select (highlight)
    the image you want to change.

    According to... to... Edit / crop Panel (or type... (X)

    Click on the button 'Set Ratios of paper'.
    (it's just to the right of the proportion of paper
    fall of window)

    Click on the 'Add' button and enter... 2 x 2 "
    Click on... OK / OKAY... (this will give you the square
    format you need)

    You can resize the selection frame by dragging
    reposition by dragging corner handles
    the arrow of the 4 channels. At the end... Click on the 'culture '.
    button.

    Now... to... File / save as...
    Choose a backup location, enter a new name for
    the photo and choose a format to save in...
    Left click on the Save"" button.

    =====

    Info about photo manager
    If you resize a photo with Picture Manager and
    save it when you see the dialog box saying:

    "There are changes that have not been saved"

    The original photo will be overwritten (replaced)
    with the rezized version... IOW the original will
    be unrecoverable.

    To keep two versions of the picture, resize it
    and go... File / save as... Enter a new name for
    version resized and on the left, click on the "Save" button.

    When you close the photo manager and see the
    dialog box:

    "There are changes that have not been saved"

    On the left, click the do not save"" button. Now
    have both versions.

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • How can I resize a digital image using software of photo gallery to keep my digital images to be cut during printing on standard paper by a commercial processor? MP

    How can I resize a digital image using software of photo gallery to keep my digital images to be cut during printing on standard paper by a commercial processor? MP

    How can I resize a digital image using software of photo gallery to keep my digital images to be cut during printing on standard paper by a commercial processor? MP

    ====================================
    Sometimes the only resizing is not the answer because the
    the original size is different from the print size.

    You may need to crop photos to the size you want
    print to ensure that no clipping will occur. Cropping
    to a different aspect ratio will lose some parts of the picture but
    at least you have control over it.

    Windows Live Photo Gallery is a cropping tool.

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • How can I resize my tool icons and info bar. It is too small for me to see the good

    How can I resize my tool icons and info bar. It is too small for me to see the good

    Hi nonnoni,

    In Illustrator CC 17.1 update, Illustrator user interface can be resized to 150% and 200%. It is triggerred when you change your screen from Control Panel > 125% scaling and your monitor supports a minimum vertical resolution of 1080 pixels.

    Sanjay.

  • How can I resize window "script event handler?

    How can I resize window "script event handler? (I entered in a script long as event handler script. After adding the script, I can't view or scroll key buttons on the right) .attached is a screenshot of the problem I am facing.a.jpg

    Quit photoshop and go to

    For Photoshop CS6

    Photoshop CS6 Photoshop C:\Users\Your Name\AppData\Roaming\Adobe\Adobe CS6\Adobe settings

    For Photoshop CC

    C:\Users\Your Name\AppData\Roaming\Adobe\Adobe Photoshop CS6\Adobe Photoshop CC settings

    remove the

    Script Manager.xml events

    then restart photoshop


    I think that the events are for something like select menu or tool (filter), and then this, for example.

    For your script, probably add using skip under Script would be preferable.



  • How can I access Siri on my iMac without using the icon?

    How can I access Siri on my iMac without using the icon?  Can I say "Hey Siri"?

    There is no option "Hey Siri" on a Mac because they do not have the necessary pickups. You must use the icon in the menu bar or Dock.

  • How can I import documents in an FCP project, using the DVD player connected to a MacBook Pro 10.10.5 Super player?

    How can I import documents in an FCP project, using the DVD player connected to a MacBook Pro 10.10.5 Super player?

    You need to rip a DVD? Try MPEG Streamclip or brake hand. Both free. Streamclip better, but much more complicated to install and use.

  • How can I get a dynamic mic to work on the iMac?

    How can I get a dynamic microphone to work via the usb input? Do I need a plug-in?

    Well Yes, if it is a USB microphone, the support is to plug.  Note, Apple provides an Audio configuration and Apple Midi utility in Applications-> utilities that once connected develops on the parameters in the menu-> Preferences-> sound-> entry

    Some microphones require Mac OS X drivers.  It would therefore be important to determine if yours is a.   Google your brand and model micro with Mac OS X and the drivers of Word to see if someone needs.

Maybe you are looking for