Hybrid View
-
27 Dec 2012 11:58 PM #1
Unanswered: Cannot get Ext.Ux.TabReorderer to work
Unanswered: Cannot get Ext.Ux.TabReorderer to work
Hi, I tried to implement the Ext.Ux.TabReorderer plugin in my app, but I can not get it to work. I put the file in public/js directory, and I have set "requires: ['Ext.Ux.TabReorderer']" in app.js .
I also set in the file
alias: 'plugin.tabreorderer'
When I launch my app, it doesn't get to work, and worse, it only displays a blank page. I have two errors in the console (using Google Chrome) :
Uncaught SyntaxError: Unexpected token '<' TabReorderer:1
Resource interpreted as Script but transferred with MIME type text/html :
"http://localhost/portage/public/Ux/TabReorderer.js? dc=1356681066084" ext-all-debug.js:5528
I do not understand, as I haven't a 'Ux' directory. Please help.
-
30 Dec 2012 11:03 AM #2
Because of the MVC architecture behind, it looks the path through the class name. If you don't want to use same path; you should set Ext.Loader paths like this:
Code:Ext.Loader.setPath({ 'Ext.ux.upload' : './app/ux/upload', // other paths });"People will never forget how you made them feel."
linkedin.com/in/talhakabakus
-
31 Dec 2012 12:49 AM #3
Thanks for help. It seems that I'm not able to set this path in the file, so, where must I set it ?


Reply With Quote