1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    7
    Vote Rating
    0
    badtaste is on a distinguished road

      0  

    Default How create and compile very simple example with Extjs 4 and Sencha Cmd?

    How create and compile very simple example with Extjs 4 and Sencha Cmd?


    Hello,
    as it looks there is no longer Ext-core in Extjs 4 I would like to know how to use Extjs 4 just for dom manipulation, animation, Ajax, DomHelper etc as I do with Ext-core from Extjs 3.x. No Ext.application, just load core classes and start to use them. I tried something like this, but I am not sure about it

    Code:
    Ext.require('Ext.window.MessageBox');
    Ext.require('MyApp.Class1');
    
    Ext.onReady(function()  {
       Ext.Msg.alert(...);
       //other business logic<br>});
    All examples for Sencha Cmd are focused on creating full featured Ext application, but how to compile something like this SimpleTask?


    Code:
    +  simpleTask - root dir
      +app
        MyClass1.js
        MyClass2.js
         +extjs - unziped  Extjs SDK including ext.js ext-dev.js  ....
       app.js - Ext.require,  Ext.onReady
           index.html -  includes links to ext-dev.js and app.js
    And now how to get it all together with Sencha Cmd commnad? Should I use something like

    sencha compile --classpath ... page ... ?

  2. #2
    Sencha User
    Join Date
    Nov 2011
    Posts
    18
    Vote Rating
    1
    lopezdonaque is on a distinguished road

      0  

    Default


    I'm also trying do it (using Sencha Cmd 4.0.2.67 + ExtJS 4.2.1).
    I could not found a way to generate it without creating an app.
    You could use this steps to generate it.


    Go to ExtJS library path:
    Code:
    cd "c:\ext-4.2.1"
    Generate an app:
    Code:
      sencha generate app --name "TestApp" --path "C:\TestApp"
    Clean "app.js" and add required classes:
    Code:
    Ext.syncRequire(
    [
      'Ext.util.Observable',
      'Ext.util.Cookies'
    ]);
    Use compile command to generate "all-classes.js" file:
    Code:
      sencha compile page -i index.html --compress -o output.html

  3. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    7
    Vote Rating
    0
    badtaste is on a distinguished road

      0  

    Default


    Hm,
    thanks for tip. I also asked official support and it looks there is no plan for ExtCore-4. What to do? For simple tasks jQuery, for Window like application Extjs? Br...

  4. #4
    Sencha User Remy's Avatar
    Join Date
    Apr 2008
    Posts
    298
    Vote Rating
    0
    Remy is on a distinguished road

      0  

    Default


    hmmmm, I hadn't used core before as I had always written full apps, now I want to build an app which will use extjs4 for the back end, data manipulation and management but want a front end that simply allows web users to login. I don't want to be using two distinct frameworks. Pretty poor from Sencha to abandon it and can't even see a statement anywhere indicating that's what they've done?

Thread Participants: 2

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi