1. #1
    Touch Premium Member
    Join Date
    Oct 2010
    Posts
    7
    Vote Rating
    0
    ainden is on a distinguished road

      0  

    Default API and EXT.Application

    API and EXT.Application


    The API states that EXT.Application class represents a sencha application. I cannot find it used in any example. I would think that I would code something like:

    Code:
    Ext.setup({
    	glossOnIcon: false,
    
    	onReady: function() {
            bh.Main = new bh.views.Main();
    		bh.Application = new Ext.Application({
    			name: 'bh',
    		    profiles: {
    				phone: function() {
    					return Ext.is.Phone;
    				},
    				tabletPortrait: function() {
    					return Ext.is.Tablet && Ext.orientation == 'portrait';
    				},
    				tabletLandscape: function() {
    					return Ext.is.Tablet && Ext.orientation == 'landscape';
    				}
    			},
    			launch: function() {
    				this.viewport = new Ext.Panel({
    					fullscreen: true,
    					
    					id    : 'mainPanel',
    					layout: 'card',
    					items : [
    						bh.Main
    					]
    				});
    			}
    		});
    	}
    });
    but when I do I get:

    Code:
    TypeError: Result of expression 'Ext.Application' [undefined] is not a constructor.
    If I test for Ext.Application:

    Code:
    alert(Ext.Application);
    the results is that Ext.Application is undefined.


    Can someone explain 'Ext.Application' and how it should be used?

  2. #2
    Sencha User jamesgpearce's Avatar
    Join Date
    Jun 2010
    Location
    Palo Alto
    Posts
    61
    Vote Rating
    0
    jamesgpearce is on a distinguished road

      0  

    Default


    Are you still running 0.97?

    0.98 contains Ext.Application without having to manually add it in to the library yourself.

  3. #3
    Ext JS Premium Member Steffen Hiller's Avatar
    Join Date
    Mar 2008
    Posts
    773
    Vote Rating
    28
    Steffen Hiller will become famous soon enough Steffen Hiller will become famous soon enough

      0  

    Default


    Check the kiva and twitter examples in 0.98. They now use the new MVC stuff.

  4. #4
    Sencha User
    Join Date
    Mar 2012
    Posts
    76
    Vote Rating
    0
    jop_008 is on a distinguished road

      0  

    Default Same error running 2.0

    Same error running 2.0


    Any idea?

    Thanks John

  5. #5
    Sencha User
    Join Date
    Sep 2012
    Posts
    1
    Vote Rating
    0
    punitkg is on a distinguished road

      0  

    Default I am getting the exact same issue with the latest Sencha 2.x

    I am getting the exact same issue with the latest Sencha 2.x


    I have the latest version of sencha 2.0.1.1 but I get the same error. In fact I cannot even run the hello world program without running into that problem.

    Please help

Similar Threads

  1. Replies: 3
    Last Post: 28 Mar 2010, 11:21 AM
  2. Application Header Like Ext 3.0 API Documentation
    By Chris55 in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 1 Oct 2009, 9:25 AM
  3. Using the API Application for a large Ext extension
    By eggspencer in forum Community Discussion
    Replies: 0
    Last Post: 13 Aug 2008, 8:15 AM
  4. Application architecture like API Viewer (2.0)
    By hcristea in forum Ext 2.x: Help & Discussion
    Replies: 15
    Last Post: 19 Dec 2007, 7:21 AM

Thread Participants: 4

Tags for this Thread