auto vertical expansion of iframe to show all content as it changes client side

Discussion in 'Javascript' started by libsfan01, Sep 14, 2006.

  1. libsfan01

    libsfan01 Guest

    hi all!

    how can you get an iframe to automatically expand vertically to show
    the entire contents of the page. for example if that page contained
    content that was shown or displayed onclick how would you get the
    iframe to expand to show the now visible content and also contract if
    it was hidden?

    thanks in advance
    libsfan01, Sep 14, 2006
    #1
    1. Advertising

  2. libsfan01

    Randy Webb Guest

    Re: auto vertical expansion of iframe to show all content as it changesclient side

    libsfan01 said the following on 9/14/2006 4:40 AM:
    > hi all!
    >
    > how can you get an iframe to automatically expand vertically to show
    > the entire contents of the page. for example if that page contained
    > content that was shown or displayed onclick how would you get the
    > iframe to expand to show the now visible content and also contract if
    > it was hidden?


    You can't reliably. There are too many things that can cause different
    heights of that text that you can't detect so that it makes it
    impossible to tell how high to make it.

    --
    Randy
    Chance Favors The Prepared Mind
    comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
    Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
    Randy Webb, Sep 14, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?U3Jpbmk=?=

    Client Side changes not refecting server side label

    =?Utf-8?B?U3Jpbmk=?=, Feb 19, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    713
    =?Utf-8?B?YWpheA==?=
    Feb 21, 2004
  2. linkswanted
    Replies:
    1
    Views:
    886
  3. TR
    Replies:
    0
    Views:
    265
  4. Joe Abou Jaoude
    Replies:
    2
    Views:
    160
    Joe Abou Jaoude
    Nov 18, 2004
  5. Michael Jia
    Replies:
    13
    Views:
    378
    Paul Denize
    Jun 16, 2009
Loading...

Share This Page