PC Review


Reply
Thread Tools Rate Thread

AjaxControlToolkit + IFrame

 
 
NvrBst
Guest
Posts: n/a
 
      12th Jan 2008
I have an IFrame thats inside a <cc1:TabContainer ...> ((In the
<ContentTemplate> section of it of course )).

The Iframe loads a new HTML (with some text added) that has <body
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
 
Reply With Quote
 
 
 
 
NvrBst
Guest
Posts: n/a
 
      14th Jan 2008
On Jan 11, 5:22*pm, NvrBst <nvr...@gmail.com> wrote:
> I have an IFrame thats inside a <cc1:TabContainer ...> ((In the
> <ContentTemplate> section of it of course )).
>
> The Iframe loads a new HTML (with some text added) that has <body
> 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


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

NB
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Webserver and AjaxControlToolkit DavidC Microsoft ASP .NET 2 3rd Feb 2010 12:32 AM
Ajaxcontroltoolkit tabcontainer Peter Microsoft ASP .NET 3 30th Jan 2009 02:58 PM
RE: AjaxControlToolkit - Can't run the sample! Paul Microsoft ASP .NET 1 5th Jun 2008 03:50 PM
ajaxcontroltoolkit drag drop gerry Microsoft ASP .NET 0 22nd May 2008 06:10 PM
AjaxControlToolKit question abcd Microsoft ASP .NET 1 29th Jan 2008 11:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:03 AM.