[CLOSED] Object doesn't support property or method 'setContainer'

  1. #1

    [CLOSED] Object doesn't support property or method 'setContainer'

    I have a tab panel with two panels in it. The second panel has autoload IFrame which get its content loaded when the panel is shown. However, when it is shown I get the following javascript error: Object doesn't support property or method 'setContainer'.

        <ext:TabPanel ID="tabMain" runat="server">
            <Items>
                <ext:Panel ID="panel1" runat="server" Title="Panel 1">
                    <Content>
                        Panel 1
                    </Content>
                </ext:Panel>
                <ext:Panel ID="panel2" runat="server" Title="Panel 2">
                    <AutoLoad Mode="IFrame">
                    </AutoLoad>
                    <Listeners>
                        <Show Handler="#{panel2}.loadContent('http://www.google.com');" />
                    </Listeners>
                </ext:Panel>
            </Items>
        </ext:TabPanel>
    What am I doing wrong?
    Last edited by Daniil; Nov 18, 2011 at 5:26 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Please set an Activate listener instead of the Show one.
    <Activate Handler="this.loadContent('http://www.ext.net');" Single="true" />
    Also, recently Google denied a possibility to load its site into an iframe.
  3. #3
    Thanks, that solved it.

Similar Threads

  1. Object doesn't support this property or method
    By Tbaseflug in forum 1.x Help
    Replies: 0
    Last Post: Feb 08, 2011, 2:59 PM
  2. Replies: 4
    Last Post: Feb 09, 2010, 1:21 AM
  3. Replies: 4
    Last Post: Dec 22, 2009, 12:09 PM
  4. Object doesn't support this property or method
    By Tbaseflug in forum 1.x Help
    Replies: 8
    Last Post: Aug 18, 2009, 12:10 PM
  5. Replies: 5
    Last Post: May 25, 2009, 3:39 PM

Posting Permissions