AjaxControlToolkit + IFrame

AjaxControlToolkit + IFrame

am 12.01.2008 02:22:14 von NvrBst

I have an IFrame thats inside a ((In the
section of it of course :) )).

The Iframe loads a new HTML (with some text added) that has onload="alert(this.document.body.scrollHeight)" ...>

Whenever I load the TabContainer page "0" is what gets alerted, but if
I move the IFRAME out of the TabContainer (right above it for example)
then 33 gets alerted (33 is right). If I load the new HTML directly
then 33 gets alerted as well.


For the love of me I can't get the IFRAME to alert 33 when its inside
the TabContainer... Is this normal? Has anyone else had this problem
and was able to fix it by setting a property or something? Any help
would be greatly appresiated.

NB

Re: AjaxControlToolkit + IFrame

am 14.01.2008 21:48:59 von NvrBst

On Jan 11, 5:22=A0pm, NvrBst wrote:
> I have an IFrame thats inside a ((In the
> section of it of course :) )).
>
> The Iframe loads a new HTML (with some text added) that has > onload=3D"alert(this.document.body.scrollHeight)" ...>
>
> Whenever I load the TabContainer page "0" is what gets alerted, but if
> I move the IFRAME out of the TabContainer (right above it for example)
> then 33 gets alerted (33 is right). =A0If I load the new HTML directly
> then 33 gets alerted as well.
>
> For the love of me I can't get the IFRAME to alert 33 when its inside
> the TabContainer... Is this normal? =A0Has anyone else had this problem
> and was able to fix it by setting a property or something? =A0Any help
> would be greatly appresiated.
>
> NB

I found the problem. If you have "ActiveTabIndex=3D"0"" set in your
TabContainer then scrollHeight (in the ) for the
iFrame HTML always returned 0. When I got ride of the ActiveTabIndex
then the scrollHeight started alerting the right value. Weird? :)

NB