1. #1
    Sencha Premium Member sencha-dev2's Avatar
    Join Date
    Jun 2012
    Location
    France
    Posts
    59
    Vote Rating
    0
    Answers
    2
    sencha-dev2 is on a distinguished road

      0  

    Question 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.

  2. #2
    Sencha User talha06's Avatar
    Join Date
    Jul 2009
    Location
    Turkey
    Posts
    305
    Vote Rating
    0
    Answers
    8
    talha06 is on a distinguished road

      0  

    Default


    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

  3. #3
    Sencha Premium Member sencha-dev2's Avatar
    Join Date
    Jun 2012
    Location
    France
    Posts
    59
    Vote Rating
    0
    Answers
    2
    sencha-dev2 is on a distinguished road

      0  

    Default


    Thanks for help. It seems that I'm not able to set this path in the file, so, where must I set it ?

  4. #4
    Sencha User
    Join Date
    Jul 2011
    Location
    Pakistan
    Posts
    82
    Vote Rating
    2
    Answers
    3
    zonaib is on a distinguished road

      0  

    Default


    hi , i have set the path but its not working ...

Thread Participants: 2

Tags for this Thread