1. #1
    Ext User
    Join Date
    Jan 2008
    Posts
    21
    Vote Rating
    0
    ibaniski is on a distinguished road

      0  

    Question portal - how to properly include?

    portal - how to properly include?


    Hi.. I am trying to have portals in multiple tabs. I started off by looking at the example, and modified it until it looks the way I want it to.

    My problem was when I tried to "move" the code to the application I am building: it appears that the xtype "portal" is not recognized at the time being used.

    I have tested by replacing xtype:'portal' with xtype:'panel', and everything works fine (except I cannot reorder the components, as expected).

    This is how I import the js in the html document
    HTML Code:
        <script type="text/javascript" src="../extjs/adapter/ext/ext-base.js"></script>
        <script type="text/javascript" src="../extjs/ext-all-debug.js"></script>
    
        <script type="text/javascript" src="Portal.js"></script>
        <script type="text/javascript" src="PortalColumn.js"></script>
        <script type="text/javascript" src="Portlet.js"></script>
    	
        <script type="text/javascript" src="applayout.js"></script>
        <script type="text/javascript" src="fader.js"></script>
    Does anyone see anything wrong here? Any suggestions of what could be wrong are more than welcome

    By the way, the error printed in firebug is
    Code:
    types[config.xtype || defaultType] is not a constructor
         create(Object title=Yahoo! closable=true region=center, "panel")ext-all-debug.js (line 12100)
         createComponent(Object title=Yahoo! closable=true region=center)ext-all-debug.js (line 13943)
         lookupComponent(Object title=Yahoo! closable=true region=center)ext-all-debug.js (line 13937)
         add(Object title=Yahoo! closable=true region=center)ext-all-debug.js (line 13849)
         createContentTab("Yahoo!")applayout.js (line 353)
         (no name)()applayout.js (line 403)
         fire()ext-all-debug.js (line 1504)
         fireDocReady()ext-all-debug.js (line 1541)
    
    [Break on this error] return new types[config.xtype || defaultType](config);
    Thanks,
    i.b.
    Last edited by ibaniski; 6 Feb 2008 at 2:07 PM. Reason: firbug error

  2. #2
    Ext User
    Join Date
    Jan 2008
    Posts
    21
    Vote Rating
    0
    ibaniski is on a distinguished road

      0  

    Default


    bump
    ---
    Stupid mistake. Apparently I have forgotten to upload one of the js files to the server.
    Last edited by ibaniski; 7 Feb 2008 at 6:53 AM. Reason: stupid mistake

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar