Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > custom container control (IFRAME) that adjusts it height after dynamic client-side content changes?

Thread Tools

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

Posts: n/a
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.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in running a basic code in python 3.3.0 that includes HTML file Satabdi Mukherjee Python 1 04-04-2013 07:48 PM
User uploads XML, page reads XML and adjusts settings all in javascript edfialk Javascript 2 08-03-2007 09:52 PM
DSLR that adjusts shutter speed w/ focal length? Richard H. Digital Photography 36 07-24-2007 05:19 AM
Injecting a User Control / Control into a content dynamic content Kurt ASP .Net Web Controls 0 06-13-2007 08:54 PM
Need to write a function that adjusts words in a string array Rick C++ 8 11-25-2003 07:04 PM