-
30 Dec 2011 9:49 AM #1
What's happened to dynamic loading?
What's happened to dynamic loading?
Just trying ext 4.1.0 beta 1 on a simple login app.
I use the ext 4.0 dynamic loading system for development, but get this when
I try to use ext-4.1. I assumed 'ext-all-dev' is the new 'ext-debug' :
Ext.Loader is not enabled, so dependencies cannot be resolved dynamically. Missing required class: Ext.ux.mystuff.dialog.Login http://*****/ext/ext-debug.js Line 5659
-
30 Dec 2011 11:07 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,599
- Vote Rating
- 434
Did you enable it?
Code:Ext.Loader.setConfig({ enabled : true });Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
30 Dec 2011 11:07 AM #3
You should be able to configure the loader and enable it:
I'm not sure why this would be different between 4.0 and 4.1. I will have to ask Jacky.PHP Code:<script type="text/javascript" src="ext-all-dev.js"></script>
<script type="text/javascript">
Ext.Loader.setConfig({
enabled: true,
paths: {
My: 'my_own_path'
}
});
</script>
Don Griffin
Ext JS Development Team Lead
Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue
"Use the source, Luke!"
-
30 Dec 2011 11:09 AM #4Don Griffin
Ext JS Development Team Lead
Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue
"Use the source, Luke!"
-
30 Dec 2011 2:52 PM #5
I used to be able to load extjs class files all seperately....Did this behavior change? In 4.0 It would load a lot of files, but debugging was wayyyyy easier. Any way that we can still do this? I was using ext-all-dev.js before
-
30 Dec 2011 3:05 PM #6
ext.js has only the minimum amount of stuff to get started. You can then Ext.require('*') or only what you need and they will load as separate scripts.
ext-all-dev.js should contain all classes. But I would have thought ext-all-dev.js would be the same experience between 4.0 and 4.1 though.Don Griffin
Ext JS Development Team Lead
Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue
"Use the source, Luke!"
-
30 Dec 2011 3:32 PM #7
No, they're not the same. It seems that ext-debug.js and ext-dev.js are both missing from 4.1.0-beta-1.
To decode a little:
- all means the whole library in one file. If it doesn't have all in the name then it uses dynamic loading.
- debug means the source is not minified.
- dev means the source is not minified too but it also means that the console warnings have been left in.
As ext-debug.js is missing, try using ext.js instead.
-
30 Dec 2011 7:45 PM #8
-
3 Jan 2012 11:24 AM #9
Any reason why they were removed / Are they going to be replaced?
Bryan
-
3 Jan 2012 11:26 AM #10Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,599
- Vote Rating
- 434
It seems just to be an oversight. GA release will be done properly
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.


Reply With Quote