-
11 Jul 2012 6:48 AM #1
Answered: MVC including ext-all
Answered: MVC including ext-all
Hi extjs mates

I'm trying to write an extjs4.1.1-rc2 application in the MVC way and I would like to use the "ext-all.js" so that the Ext.Loader does load ONLY my private classes dynamically not all EXT ones...
The problem is, that if I include the "ext-all.js", the application does not start anymore. It does only start if I do not include it and let the Loader dynamically load everything...
I hope I could make my problem clear...
-
Best Answer Posted by chamacs
You shouldn't have both ext includes in the html:
<script type="text/javascript" src="../../../ext.js"></script>... <script type="text/javascript" src="../../../ext-all.js"></script>
But I don't know if that causes the problem you're having.
-
11 Jul 2012 6:56 AM #2
You probably just need to enable the loader
http://docs.sencha.com/ext-js/4-0/#!/api/Ext.Loader-method-setConfigPHP Code:Ext.Loader.setConfig({ enabled: true });
Alternatively, you can use mvc and for production use the sdk to minify everything so that it doesn't need dynamic loading.
-
11 Jul 2012 11:59 AM #3
Hi Toady,
yes I already do that. With an include of "ext.js" and not "ext-all.js" it works. But when I include the "ext-all.js" nothing does
-
11 Jul 2012 12:30 PM #4
Are there any errors you are receiving in your js console?
-
11 Jul 2012 1:31 PM #5
No errors and no logging messages from the launch function in the application
-
11 Jul 2012 4:35 PM #6Sencha - Services Team
- Join Date
- Mar 2007
- Location
- Foristell, MO
- Posts
- 1,100
- Vote Rating
- 3
- Answers
- 12
Jack Ratcliff
Sencha Inc, Green bleeding Senchan
How to report a bug:
http://www.sencha.com/forum/showthre...o-report-a-bug
-
16 Jul 2012 10:00 AM #7
When I use the "simple" example in "extjs-4.1.1/examples/app/simple" I have the same "nothing happens" effect:
I removed the compiled "all-classes.js" to use the uncompiled version and added the "ext-all.js" to make the loader not load any Ext classes which i really want.HTML Code:<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title id="page-title">Account Manager</title> <link rel="stylesheet" type="text/css" href="../../../resources/css/ext-all.css"> <!-- GC --> <script type="text/javascript" src="../../../ext.js"></script> <!-- don't use compiled version <script type="text/javascript" src="all-classes.js"></script> --> <script type="text/javascript" src="../../../ext-all.js"></script> <script type="text/javascript" src="app.js"></script> </head> <body> </body> </html>
-
16 Jul 2012 10:23 AM #8
You shouldn't have both ext includes in the html:
<script type="text/javascript" src="../../../ext.js"></script>... <script type="text/javascript" src="../../../ext-all.js"></script>
But I don't know if that causes the problem you're having.
-
17 Jul 2012 1:18 AM #9


Reply With Quote
