1. #1
    Ext JS Premium Member
    Join Date
    Sep 2009
    Posts
    81
    Vote Rating
    0
    HyGy is on a distinguished road

      0  

    Default extensible calendar, build separate ext classes and myapp

    extensible calendar, build separate ext classes and myapp


    I have an app where I used the following line to "compile" it into a single file:

    Code:
    sencha compile -classpath=c:/inetpub/wwwroot/CommonFiles/ExtJS-4.1.1/src,JavaScript/app page --input-file index.html --output-page build/index-production.html
    This is worked until now. But now I want to integrate extensible calendar. In the development environment it is working (with extensible-all.js using xtypes in my code) but I can't compile (because the extensible calendar is not compatible with the current sdk compile method).

    Now I'm using the following html code (index.html) to compile (without extensible cal):
    Code:
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>deploy example</title>        
        <link rel="stylesheet" href="/CommonFiles/ExtJS-4.1.1/resources/css/ext-all-gray.css">
        <!-- <x-compile> -->
            <!-- <x-bootstrap> -->
                <script src="/CommonFiles/ExtJS-4.1.1/bootstrap.js"></script>
            <!-- </x-bootstrap> -->
            <script type="text/javascript" src="JavaScript/app.js"></script>
        <!-- </x-compile> -->
    </head>
    I think maybe the way how I can do it to compile sources to 2 files, one file contain the used ext libraris, the other is my application. Then add the extensible-all.js to the index.html:

    Code:
    <script src="JavaScript/libs/extensible/extensible-all.js"></script>
    In the final html file I'll include the 3 files in the correct order (extjs, extensiblecal (or other external libs), my application)

    How can I create 2 separate files with sencha compile? (one is my app.js classes (they uses the calendar as an xtype, so it need the correct libs in compile time)

    My application structure is:
    Code:
    C:.
    |   deploy.bat
    |   index.html
    +---build
    +---css
    +---JavaScript
    |   |   app.js
    |   +---app
    |   |   +---controller
    |   |   +---model
    |   |   +---store
    |   |   +---ux
    |   |   +---view
    |   +---libs
    |   |   \---extensible
    |   |       |   extensible-all.js
    |   |       +---resources
    |   |       +---src
    |   \---metadata
    |       +---controller
    |       +---model
    |       +---resource
    |       +---store
    |       +---view

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,677
    Vote Rating
    749
    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


    I think I recall that extensible calendar needed to be modified to be buildable with Cmd. Not sure if this has happened and what version if it did happen. That calendar isn't created by Sencha so we don't have control over that code.
    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.

Thread Participants: 1

Tags for this Thread

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