Make the iframe automatically adjust the height according to the content without using the scroll bar?

Hello

I develop the site (www.meninasreais.com.br) and have a doubt. I created the basic html - menu, header - in Adobe Muse. I'm trying to insert an iframe that automatically adjust the height according to the content of the blog.

I tried with different codes, the framework is installed on the same domain as the site and none of them worked. What can I do it wrong? Thank you.

The code that was inserted below:

< 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 >

< IFRAME SRC='www.meninasreais.com.br' width='600px' height='200px' id='iframe1' marginheight='0' frameborder='0'onLoad="autoResize ("iframe1");" > < / iframe >

Hi, I successfully did this for my blogging engine.

I use jquery.autoheight.js

In the property of my page:

In my html box:

This work in Adobe muse. My iframe it set itself with the content of my blog.

Example: http://www.solutionsip.ca/blog.html

Tags: Adobe Muse

Similar Questions

  • How to make the scroll bar on the sides of the screens?

    System to win 8 op.

    on pages how the wider scroll bar.  I know I could use a lot of things but I would use it on occasion.  default value is way too small as 'micro' - app does all the rest.

    Hello

    Thanks for posting the question in the Microsoft Community!

    You want to be wider, the scroll bar.

    Unfortunately, the scroll bar may not be wider.

    If you need any help or if you encounter problems with Windows in the future, let us know and we would be happy to help you.

  • programming of the scroll bar

    A table is to have vertical scroolbar. I use more than two tables where everyone will be having individual scrollbar. I want to use a scroll bar common for all tables where if I move the slider on the scroll bar in all tables should upwards or downwards according to the hang of scroll bar.

    Hello

    Make the scroll bar appear only for a single table and do all other table as invisible scroll bar. Then use the property node 'Clues' to the table to all other visible scroll bar table of Index values.

    Hope this helps you...

    Kind regards

    Raja

  • Disable the scroll bar when no overflow in the dynamic text field

    I use the UIScrollBar on a dynamic text field. I would like to make the scroll bar is not visible or turn it off if there are no more rows to display when initially displayed. Are there variables in a pile of data L0 I can check to see if the scroll bar can be disabled; 'lines of total in the text field' and 'lines per page' either, something that accomplishes the same thing?

    You can use the textfields maxscroll property to determine if a textfield can display all its text without scrolling.

  • I need to make the bookmarks bar visible when I start firefox

    I use the mozilla.cfg file

    defaultPref ("dom.disable_window_open_feature.directories", true);
    defaultPref ("dom.disable_window_open_feature.personalbar", true);

    I need something like this to use to make the bookmarks bar when I run firefox

    It is one of the persistent settings that are stored in the file localstore.rdf.

  • Move the scroll bar in the scroll of the DIVs for IFRAMES FF8 cause to blanch for 5 to 10 seconds. Help!

    I was running FF7 without problems and to give birth to 8.0. I have a web application that I developed that has type jQuery modal popup windows (which are actually the IFRAMEs), and in those I have lists of the boxes that are scrolling DIVs. The forms appear normal, but when I take a scroll bar and begin to move, all other texts in the IFRAME (but not inside the div scroll) goes blank for about 5 seconds. He then returns to normal, whether or not I took out the scroll bar. FF8 I restarted in safe mode, and this behavior occurs. If I start normally, but disable all plugins and supplements, the problem occurs, so I think it probably has something to do with themes. I tried several different themes rather than the default, but he still had the problem.

    Normal appearance
    Aspect when I move a scroll bar

    Any help that anyone can give me would be much appreciated. It is a production application, and we have a lot of FF users!

    Thanks, Jim

    Try turning off hardware acceleration.

    • Tools > Options > advanced > General > Browsing: "use hardware acceleration when available.

    If disable hardware acceleration works then check if there is an update available for your graphics display driver.

  • How to make the progress bar display in the icon in the taskbar for WIN 7?

    How to make the progress bar display in the icon in the taskbar for WIN 7? I see Eclipse Helios can show the loading progress bar in the icon in the taskbar of WINDOWS 7 at startup.

    Is not the feature that provides JavaFX, you must write a native connection called technology such as JNI to make specific Windows API call for updating the icon in the taskbar for the application.

    Maybe you could go through the Eclipse source code to see how Eclipse and see if you can make use of the same mechanism in your application.

    More tips on how you can implement this are outside my area of expertise.

  • reset the scroll bar

    I have a UIScrollBar component that is assigned to a textfield that can have its content changes frequently.  When the content is higher at the height of the textfield object, the scroll bar works as expected and shows his handful of scrolling.  When the selected content matches up to the textfield object, the scroll bar works as expected and does not show its handle to scrolling.  But when set in this state of scroll handle, he will not return to show the handle when there is news that it would require.

    I don't know what the problem is.  Is there a way to reset the scroll bar each time?

    Here's some related code - although it really doesn't make much difference.  The ScrollBar and textfield are already on the scene, and the scroll bar is just work automatically.  I added this line to the end, in an attempt to reset it, but get an error:

    glossary.scroller.Redraw ();

    package mvc.view

    {

    import flash.display. *;

    import flash.text.TextField;

    import flash.text.TextFieldAutoSize;

    import flash.text.TextFormat;

    import flash.events.MouseEvent;

    import flash.events. *;

    import flash.net.URLRequest;

    Import fl.controls.ScrollBar;

    Import fl.controls.UIScrollBar;

    / final public class Content_GLOSSARY extends Sprite

    {

    private var app: *;

    private var: data table;

    private var imageLoader:Loader;

    private var glossary: glossary;

    private var thislocalX:Number;

    private var thislocalY:Number;

    private var thisstageX:Number;

    private var thisstageY:Number;

    private var thisCharIndex:int;

    private var thisleftcharnumber:Number;

    GLOSSARY CONTENT.

    public void Content_GLOSSARY (appObject:Object, contentData:Array)

    {

    App = appObject;

    data = contentData;

    placeContent();

    setGlossary();

    }

    // PLACE TEXT ///////////////////////////////////////////

    public void placeContent()

    {

    title.text = data [0];

    title.x = Number (data [1]);

    title.y = Number (data [2]);

    title. Height = Number (data [3]);

    title. Width = Number (data [4]);

    title. Multiline = title.wordWrap = app.model.booleanConvestion (data [5]);

    }

    // SET GLOSSARY ////////////////////////////////////////

    private void setGlossary()

    {

    Glossary = new Glossary();

    glossary.x = 450;

    glossary.y = 0;

    addChild (glossary);

    in the glossary. Alpha_Choice.addEventListener (MouseEvent.CLICK, alphaSelect);

    display the default terms ('A')

    glossary.glossaryTextField.htmlText = app.model.glossaryArray [0];

    }

    // ALPHA SELECT ////////////////////////////////////////////////////////

    private void alphaSelect(event:MouseEvent):void

    {

    var thisletter:String;

    thislocalX = event.localX;

    thislocalY = event.localY;

    thisstageX = event.stageX;

    thisstageY = event.stageY;

    thisCharIndex = glossary. Alpha_Choice.getCharIndexAtPoint (thislocalX, thislocalY);

    thisleftcharnumber = thisCharIndex;

    If (thisleftcharnumber == - 1).

    {

    return;

    }

    var myrectleft:Rectangle is glossary. Alpha_Choice.getCharBoundaries (thisleftcharnumber);

    in the glossary. ActiveLetterMC_Instance.x is myrectleft.x + glossary. Alpha_Choice.x;

    in the glossary. ActiveLetterMC_Instance.width = myrectleft.width - 6;

    If (thisCharIndex == - 1).

    {

    return;

    }

    thisletter = glossary. Alpha_Choice.text.charAt (thisCharIndex);

    displayTheSelectedTerms (thisletter);

    }

    // DISPLAY TERMS ////////////////////////////////////////////////////////////

    private void displayTheSelectedTerms (thisletter): void

    {

    If (thisletter is 'A')

    {

    glossary.glossaryTextField.htmlText = app.model.glossaryArray [0];

    }

    If (thisletter is 'B')

    {

    glossary.glossaryTextField.htmlText = app.model.glossaryArray [1];

    }

    If (thisletter is 'C')

    {

    glossary.glossaryTextField.htmlText = app.model.glossaryArray [2];

    }

    If (thisletter is "D")

    {

    glossary.glossaryTextField.htmlText = app.model.glossaryArray [3];

    }

    If (thisletter is 'E')

    {

    glossary.glossaryTextField.htmlText = app.model.glossaryArray [4];

    }

    If (thisletter is 'F')

    {

    glossary.glossaryTextField.htmlText = app.model.glossaryArray [5];

    }

    If (thisletter is 'G')

    {

    glossary.glossaryTextField.htmlText = app.model.glossaryArray [6];

    }

    If (thisletter is 'H')

    {

    glossary.glossaryTextField.htmlText = app.model.glossaryArray [7];

    }

    If (thisletter is 'I')

    {

    glossary.glossaryTextField.htmlText = app.model.glossaryArray [8];

    }

    If (thisletter is 'J')

    {

    glossary.glossaryTextField.htmlText = app.model.glossaryArray [9];

    }

    If (thisletter is 'K')

    {

    glossary.glossaryTextField.htmlText = app.model.glossaryArray [10];

    }

    If (thisletter is 'L')

    {

    glossary.glossaryTextField.htmlText = app.model.glossaryArray [11];

    }

    If (thisletter is "M")

    {

    glossary.glossaryTextField.htmlText = app.model.glossaryArray [12];

    }

    If (thisletter is "N")

    {

    glossary.glossaryTextField.htmlText = app.model.glossaryArray [13];

    }

    If (thisletter is "O")

    {

    glossary.glossaryTextField.htmlText = app.model.glossaryArray [14];

    }

    If (thisletter is 'P')

    {

    glossary.glossaryTextField.htmlText = app.model.glossaryArray [15];

    }

    If (thisletter is 'Q')

    {

    glossary.glossaryTextField.htmlText = app.model.glossaryArray [16];

    }

    If (thisletter is 'R')

    {

    glossary.glossaryTextField.htmlText = app.model.glossaryArray [17];

    }

    If (thisletter is "S")

    {

    glossary.glossaryTextField.htmlText = app.model.glossaryArray [18];

    }

    If (thisletter is "T")

    {

    glossary.glossaryTextField.htmlText = app.model.glossaryArray [19];

    }

    If (thisletter is 'U')

    {

    glossary.glossaryTextField.htmlText = app.model.glossaryArray [20];

    }

    If (thisletter is 'V')

    {

    glossary.glossaryTextField.htmlText = app.model.glossaryArray [21];

    }

    If (thisletter is 'W')

    {

    glossary.glossaryTextField.htmlText = app.model.glossaryArray [22];

    }

    If (thisletter is 'X')

    {

    glossary.glossaryTextField.htmlText = app.model.glossaryArray [23];

    }

    If (thisletter == 'Y')

    {

    glossary.glossaryTextField.htmlText = app.model.glossaryArray [24];

    }

    If (thisletter is 'Z')

    {

    glossary.glossaryTextField.htmlText = app.model.glossaryArray [25];

    }

    redraw

    glossary.scroller.Redraw ();

    }

    }

    }

    Have you tried to use the scroll bar update() method after changing the text?

  • scheck selection boxes are not displayed in the window options, nor does the scroll bar - why?

    Firefox is very erratic running. Scrolling is choppy at best. Usually, rocking it and descend is too far or no movement at all.
    Also, the scroll bar is black and there is no visible grab buttons to go up or down. Up and down arrows at the top of the bar are also blacked out.
    Selection boxes do not appear in tools, Options. Therefore, it is very difficult to make the custom choices.
    There is a significant delay after clicking 'OK', 'Cancel' or 'Help' buttons-, in fact, other buttons.
    I have 2 Add-ons 'All-in-one Side Bar' and 'Last Pass', no more.

    If I open firefox in safe mode all these problems disappear. Everything moves smoothly and check boxes appear.

    Have you tried to change the default Firefox theme, if you are using another theme?

    Have you tried disabling hardware acceleration?

    All this is in the article link I posted.

    Find out what steps to follow when the problem occurs in Mode without failure of Firefox, according to your original question and follow the links in the next section of the article.

    See also - https://support.mozilla.org/en-US/kb/troubleshoot-and-diagnose-firefox-problems

  • AS3: ScrollPane component position and the scroll bar


    Hello:

    I use AS3 to import, add and fill a scroll bar with textfields. I want to position the vertical scroll bar on the left side rather than on the right side. How can I go about using AS3?

    I looked in these and other forums, not to mention the Flash help, nothing helps. If I'm missing something obvious, everyone is welcome to point out.. :)

    Thank you!

    Patrick

    Oh OK. If you want to adjust the position of the scrollbar in a ScrollPane component, it may be possible with a bit of work. only from some experiments, then, I found that you can refer to the vertical scroll bar in a ScrollPane with the verticalScrollBar property and this allows to move, with something like:
    scroller.verticalScrollBar.x =-20;

    However, you must wait to make content and scrollbars to become active before trying to move the scroll bar. I used the event 'added' as follows: (see attached the code below)

    the only problem is that the background of the scroll bar still exists, but you should be able to remove it with skins or fudge a chart on top of it to hide.

  • On the right side of the br5owser, there is a scroll bar, the scroll bar is not no matter what a contrast and is almost invisible, can't find it?

    Have seen other issues similar to mine and they can be on the same issue, but they say that the scroll bar disappears, in fact, it's still there but almost invisible. Try to click on it without knowing the exact location to cause the uncontrolled scrolling page. Other issues advised people to restore their browser by default, but that did not help at all. Had this same problem for about 6 of the latest versions of firefox, all say in the 1930s versions. I tried adding contrast high Windows as an experiment, but that did not help at all either. Been trying help for awhile and just now decided to ask myself a question as the other speakers may have given or answerers may think it is resolved.

      In searching through help files it has led me to find a space based theme for the browser that I enjoy, but does not solve issue of course, so... all is not lost. Took a jpg of the image of the browser that shows the issue and am trying to upload it but looks like it is stuck in upload mode. Ugh "high speed" , anyhow maybe it uploaded and is not showing, the bar on the right is about 3/4 of the way down the side if you can see it, almost invisible.
    

    Core-el,

    Thank you
    Discovered it was my own question of system, but had to talk with others, before I realized how in the absence of mind my question was. Old system had control of contrast on the screen, and they have been set to 4 digits off the coast of 50 / 100. I wouldn't think that little would make a difference, because it doesn't have in all the other use of the browser, but he did. So was my system, actual physical hardware settings. Sorry for wasting your time but thanks much for all of your thoughts.

  • What happened to the scroll bars today, 10/01/12?

    Now there's just the 2 arrows at the top and bottom of the scroll bar, and there is no way of knowing how long a page will be. The area of the scroll bar is one color.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • How I try to change the size of the scroll bar in the emails to Outlook Express 6.0?

    When I open an e-mail in Outlook Express, the scroll bar on the left side is so thin and small, that I can't use the scroll bar.  The up and down arrows are so small, I can't get the arrow in the box.

    The scroll bar should be on the right, not the left. Are you sure you are using the correct screen resolution?
     
    You can try a new identity and see if that makes a difference.
     
    You may have a damaged identity especially if it's the default main identity. File | Identities | Add the new identity. Create a new one and try it. If all goes well, you can import your messages and address book from the old identity and delete it.
     
    Note: Do not use the main word in the name of the new identity.
  • Try to scroll to see the folder of photos. I scroll down and the scroll bar jump upward.

    I want to display an image file.  When I scroll down and drop the scroll bar of the jumps back to the top.  I can't access all files below a few albums.  Until I have a chance to click on the folder to open it, the bar rises to the top.

    Hello CathiVanderhave,

    Please provide the make and model of your PC. In addition, please relay if the problem occurs when you try to view other files. You also try to perform a clean boot to verify if a background program may interfere. To do this, please see the link below:

    http://support.Microsoft.com/kb/929135

    Thank you

  • The scroll bars on a particular site

    A Web site I open often has an annoying bar at the top.  One day, I decided to close it; and when I did, the scroll bars disappeared.  I closed the site and I'm back.  Was back in the bar upstairs, but the scroll bars were not.  I tried everything I can think but cannot retrieve the scroll bars.  Thanks for any help you can offer!

    Hi Mary,

    1. don't you make changes to the computer before the show?
    2. what browser you use to access the site?

    Method 1:

    If you use Internet Explorer, I suggest you check out the link and run the fix it.

    Improve performance and security in Internet Explorer:

    http://support.Microsoft.com/mats/ie_performance_and_safety/

    Method 2: I suggest you to check if the problem persists in mode without modules.

    How to optimize Internet Explorer
    http://support.Microsoft.com/kb/936213/ro

    Note: Reset the Internet Explorer settings can reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings.

    Get back to us and let us know the State of the question, I'll be happy to help you. We, at tender Microsoft to excellence.

  • Activate the auto-hide the scroll bars Folio

    Hello

    I just read on several websites that there is a way to hide the scroll bars that, by default, to cover 6 pixels of the folio on display site, but I couldn't find where and how to select this option. Apparently, it is called 'Enable Auto hide the Scrollbars of Folio'.

    I'm a little confused that I read so often that it's possible, but never how you can do it. Did I something wrong?

    Bildschirmfoto 2013-08-28 um 16.24.42.jpg

    (I work with the CC DPS/InDesign on an iMac 2009 the latest version of OS X Lion mountain and want to make an iPad app.)

    You select this option in DPS App Builder when you create the application. It is in the section of the Advanced Options in the App Details page.

    http://helpx.Adobe.com/Digital-Publishing-Suite/help/create-custom-Viewer-app-iPad.html

Maybe you are looking for

  • Change the name of the device Apple Watch?

    The Apple community, I have two Apple watches, one for me and one for my wife. We both use the same Apple ID and password for everything. How can I change the names of the devices Apple Watch for each of the watches? That's what I see my thing. Thank

  • Can you build a new version of an exe without having to rebuild its installer later?

    I'm currently testing an exe LabVIEW-built on a PC without installed LabVIEW. Whenever I go back to the development PC to fix a bug / change something, and then rebuild the executable file, it seems that I must also rebuild its installer which takes

  • How much ink I have in my cartridges

    I bought a new pc with Windows 8. My old pc had Windows XP and my Deskjet 4100 Series operation window displays the amount of ink that had left me in my cartridges, I installed my Deskjet 4100 (4135) on my new pc and it works perfectly. The only prob

  • HP OfficeJet Pro 8630: Trouble legal paper in tray 2

    Hello! Thanks in advance for any help you can offer... two problems, I need help. I always use 8.5 x 11 cardstock in Tray 1 and 8.5 x 14 paper in tray 2. 1. when I print a legal document of the size - and have the setting of the printer, the Auto Sel

  • My WD drive bowed and data transfer is now very slow

    My WD drive fell to the floor once and now when I copy data from the PC to the hard drive, it is very very slow, it gives a minute to copy a file, then 30 minutes then again 40 sec and then another 5 minutes.