1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    11
    Vote Rating
    0
    oz-on is on a distinguished road

      0  

    Default Using ext-all.js instead ext.js gives error

    Using ext-all.js instead ext.js gives error


    Hi

    I built my application and everything loads fine if I use ext.js as ExtJS library. ext.js obiviously loads the necessary classes on the fly. Instead of doing this, I want to use ext-all.js to avoid loading, want to load once and cache.

    However, I get an error:
    With ext-all-debug.js it says:
    Code:
    panel is undefined
    
     store = panel.store;
    My production.html file:
    Code:
      <html>
    <head>
    
        <title>App-all</title>
    <link rel="stylesheet" type="text/css" href="ext/resources/css/ext-all.css">
    <link rel="stylesheet" type="text/css" href="resources/css/pims-theme.css">
    
    
    <script type="text/javascript" src="lib/extjs.4.0.7/ext-all.js"></script>
    
    <script type="text/javascript" src="app-all.js"></script>
    
    
    </head><body></body>
    </html>
    Any ideas? Can someone point me in the right direction to solve the issue please?
    I'm using ExtJS 4.0.7

    Thanks

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,219
    Vote Rating
    859
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    What class fires this error? Also, doesn't the SDK tools build a single JS file that has your app and ext js stuff combined?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Aug 2011
    Posts
    11
    Vote Rating
    0
    oz-on is on a distinguished road

      0  

    Default


    I think it fires on grid panel class. Sencha build tools doesn't combine your app and extjs, it just consolidates your app into single file and you still need to use ext library, AFAIK.

Thread Participants: 1

Tags for this Thread