12 May 2011 8:28 AM #1
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)
12 May 2011 11:24 AM #3
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'.
"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
12 May 2011 1:36 PM #7Sencha Touch Lead Architect
By LesJ in forum Ext:BugsReplies: 0Last Post: 23 Mar 2011, 4:40 AM
By lguzman in forum Ext 3.x: Help & DiscussionReplies: 6Last Post: 10 Sep 2010, 6:34 AM
By nak1 in forum Ext 3.x: BugsReplies: 6Last Post: 26 Jul 2010, 3:01 PM
By psambhus in forum Ext 2.x: Help & DiscussionReplies: 4Last Post: 25 Feb 2009, 4:35 AM