-
12 May 2011 8:28 AM #1
ext.js vs. ext-debug.js and Loader config issue?
ext.js vs. ext-debug.js and Loader config issue?
When I include ext-debug, I can see that a bunch of js files get loaded (which I want).
When I just include ext.js, it seems like the Loader doesn't get configured correctly. None of the js files I want get included, and Ext.create doesn't seem to find them.
I am using document.body.appendChild to dynamically include ext.js/ext-debug.js in my page, if that makes a difference.
Am I missing something obvious that I should configure when using ext.js vs. ext-debug.js?
Thanks for any help!
-
12 May 2011 8:59 AM #2
In Fiddler or Firebug, are you seeing 404s for anything, or is no loading attempt taking place?
If you're getting 404s, I'd say that you need to set paths on the Loader.
If not, have you tried statically including ext.js?
Also, have you tried ext-all.js? (minified, all packages)
stevil
-
12 May 2011 11:24 AM #3
When I use ext-debug, I don't get any 404s. When I just use ext, I get one 404, and it clearly doesn't reference the right path.
For example, using ext-debug.js I will see /ext-4/src/util/Point.js load. With ext.js, I see a 404 on '/util/Point.js'.
Statically including ext.js results in the error:
"Ext.Loader is not enabled ..."
Statically including ext-debug.js works fine, like above.
That seems to imply that ext.js doesn't configure the Loader automatically. How can I get the configuration info that ext-debug.js provides, but only include ext.js?
Thanks for your help so far!
-
12 May 2011 11:33 AM #4
-
12 May 2011 11:48 AM #5
That worked! Thanks so much for your help!
-
12 May 2011 12:02 PM #6
no problem!
-
12 May 2011 1:36 PM #7Sencha - Sencha Touch Dev Team
- Join Date
- Jul 2009
- Location
- Palo Alto, California
- Posts
- 469
- Vote Rating
- 9
ext.js is only meant to be used during production, whereby you have properly generated the custom build for your application using the SDK Tools, and include the bundled file inside your HTML document. There's no point using ext.js when you're developing the application, it's just not meant to be. Please refer to http://dev.sencha.com/deploy/ext-4.0...g_started.html
Sencha Touch Lead Architect
Similar Threads
-
[OPEN-EXTJSIV-269] Loader config API consistency
By LesJ in forum Ext:BugsReplies: 0Last Post: 23 Mar 2011, 4:40 AM -
Issue with ext-all-debug.js
By lguzman in forum Ext 3.x: Help & DiscussionReplies: 6Last Post: 10 Sep 2010, 6:34 AM -
[CLOSED] Ext.Loader issue in IE8
By nak1 in forum Ext 3.x: BugsReplies: 6Last Post: 26 Jul 2010, 3:01 PM -
ext-all-debug.js and ext-all issue
By psambhus in forum Ext 2.x: Help & DiscussionReplies: 4Last Post: 25 Feb 2009, 4:35 AM


Reply With Quote