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

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

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:
    878
    =?Utf-8?B?YWpheA==?=
    Feb 21, 2004
  2. Boss302
    Replies:
    0
    Views:
    1,362
    Boss302
    Nov 21, 2006
  3. Bogdan
    Replies:
    2
    Views:
    873
    Bogdan
    Jun 9, 2008
  4. Zoe Hart
    Replies:
    1
    Views:
    595
    Scott Wisniewski
    Jan 8, 2004
  5. TR
    Replies:
    0
    Views:
    375
  6. Joe Abou Jaoude
    Replies:
    2
    Views:
    315
    Joe Abou Jaoude
    Nov 18, 2004
  7. Michael Jia
    Replies:
    13
    Views:
    533
    Paul Denize
    Jun 16, 2009
  8. Daedalous
    Replies:
    3
    Views:
    1,140
    Daedalous
    Jan 16, 2004
Loading...