custom container control (IFRAME) that adjusts it height after dynamic client-side content changes?

Discussion in 'ASP .Net Web Controls' started by TR, Jun 3, 2004.

  1. TR

    TR Guest

    When an IFRAME contains dynamic content (e.g. a DIV is made visible, or
    hidden, by client-side script) its height needs to be adjusted. I've seen
    examples of how to do this onLoad, but when client-side script is causing
    the content to grow (or shrink) the onLoad event doesn't fire, of course.

    Is there a robust custom control which hosts an IFRAME which can calculate
    the height of its contents and adjust its own height accordingly, whenever
    it is asked to do so? An IFRAME is needed because we want an aspx page to be
    able to nest other aspx pages.

    Or is there a client-side way to cause the iframe's
    contentWindow.document.body.scrollHeight property to be recalculated?

    Thanks for advice, suggestions.
    TR
     
    TR, Jun 3, 2004
    #1
    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. Rick
    Replies:
    8
    Views:
    507
  2. Boss302
    Replies:
    0
    Views:
    1,061
    Boss302
    Nov 21, 2006
  3. Zoe Hart
    Replies:
    1
    Views:
    375
    Scott Wisniewski
    Jan 8, 2004
  4. libsfan01
    Replies:
    1
    Views:
    177
    Randy Webb
    Sep 14, 2006
  5. edfialk
    Replies:
    2
    Views:
    92
    edfialk
    Aug 3, 2007
Loading...

Share This Page