-
30 Oct 2010 12:14 PM #1
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:
but when I do I get: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 ] }); } }); } });
If I test for Ext.Application:Code:TypeError: Result of expression 'Ext.Application' [undefined] is not a constructor.
the results is that Ext.Application is undefined.Code:alert(Ext.Application);
Can someone explain 'Ext.Application' and how it should be used?
-
1 Nov 2010 9:44 AM #2
Are you still running 0.97?
0.98 contains Ext.Application without having to manually add it in to the library yourself.
-
1 Nov 2010 10:39 AM #3
Check the kiva and twitter examples in 0.98. They now use the new MVC stuff.
Owner of 360releases Ltd. - Sencha Touch & Ext JS consulting
twitter.com/steffenhiller
extjswithrails.com, senchatouchbits.com
-
24 May 2012 2:55 AM #4
Same error running 2.0
Same error running 2.0
Any idea?
Thanks John
-
3 Sep 2012 4:01 AM #5
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
-
ColdFusion - Application Instantiated, API Caching Stack
By Gjslick in forum Ext.DirectReplies: 3Last Post: 28 Mar 2010, 11:21 AM -
Application Header Like Ext 3.0 API Documentation
By Chris55 in forum Ext 3.x: Help & DiscussionReplies: 4Last Post: 1 Oct 2009, 9:25 AM -
Using the API Application for a large Ext extension
By eggspencer in forum Community DiscussionReplies: 0Last Post: 13 Aug 2008, 8:15 AM -
Application architecture like API Viewer (2.0)
By hcristea in forum Ext 2.x: Help & DiscussionReplies: 15Last Post: 19 Dec 2007, 7:21 AM


Reply With Quote