Hybrid View

  1. #1
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    1,055
    Vote Rating
    90
    Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light

      0  

    Default Ext.Loader is not enabled

    Ext.Loader is not enabled


    Hi all,

    I have my user interface built on 4.0.2a. Now I am trying to use 4.1 beta but I get the following error in Firebug:

    Ext.Loader is not enabled, so dependencies cannot be resolved dynamically.
    Even though I have the following lines in my code:

    Code:
    Ext.Loader.setConfig({enabled: true});
    Ext.Loader.setPath('Ext.ux', '__SENCHA_SYSTEM_URL__/extjs/examples/ux/');
    Does anyone know the solution to this problem or has also encountered it?

    Regards,
    Farish

  2. #2
    Touch Premium Member
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    1,185
    Vote Rating
    102
    LesJ is a glorious beacon of light LesJ is a glorious beacon of light LesJ is a glorious beacon of light LesJ is a glorious beacon of light LesJ is a glorious beacon of light

      0  

    Default


    This is how I do it (and it works).

    Ext.Loader.setConfig({
    enabled: true,
    // Don't set to true, it's easier to use the debugger option to disable caching
    disableCaching: false,
    paths: {
    'wag.floorplan': contextRoot + '/wag/floorplan/js'
    }
    });

  3. #3
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    1,055
    Vote Rating
    90
    Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light

      0  

    Default


    Thanks for your suggestions LesJ but it didn't work for me

    I set disableCaching to false and also set the paths config instead of using setPath method but no affect...

    Regards,
    Farish

  4. #4
    Sencha User skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,338
    Vote Rating
    248
    skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of

      0  

    Default


    Which js file are you using?

    Where are you putting those lines to enable the loader?

    It might help if you post the top of your HTML file so we can see how you're including things.

  5. #5
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    1,055
    Vote Rating
    90
    Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light

      0  

    Default


    Thanks for your response. I am using ext-all-debug.js from 4.1.0 beta. Here is my HTML file:

    HTML Code:
    <html> 
    <head> 
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 
    
    <link rel="stylesheet" type="text/css" href="./Sencha/extjs/resources/css/ext-all.css" /> 
    <link rel="stylesheet" type="text/css" href="./Sencha/extjs/examples/shared/example.css" /> 
    <link rel="stylesheet" type="text/css" href="./Sencha/extensible/resources/css/extensible-all.css" /> <link rel="stylesheet" type="text/css" href="./Sencha/extensible/examples/examples.css" /> 
    <link rel="stylesheet" type="text/css" href="mycss.css" /> 
    
    <script type="text/javascript" src="./Sencha/extjs/ext-all-debug.js" ></script> 
    <script type="text/javascript" src="./Sencha/extensible/extensible-all-debug.js" ></script> 
    <script type="text/javascript" src="./Sencha/extensible/Extensible.js" ></script> 
    <script type="text/javascript">Ext.Loader.setConfig({enabled: true, disableCaching: false, paths: { 'Extensible': './Sencha/extensible/src', 'Extensible.example': './Sencha/extensible/examples/' }});</script> 
    <script type="text/javascript" src="myJS1.js" ></script>
    <script type="text/javascript" src="myJS2.js" ></script> 
    <script type="text/javascript" src="myJS3.js" ></script> 
    <script type="text/javascript" src="myJS4.js" ></script> 
    </head>
    <body> </body> 
    </html>
    The loader config is in myJS1.js on the top before the on_ready function. I also tried it inside the on_ready function but it didnt make a difference. The same HTML and JSs worked perfectly with Ext JS 4.0.2. Could it be because of the Extensible library somehow? because of setting the load config for it first in the HTML file?

    Regards,
    Farish

  6. #6
    Sencha User skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,338
    Vote Rating
    248
    skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of

      2  

    Default


    It looks to me like you're configuring the loader too late. Try putting it immediately after you include ext-all-debug.js.

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar