1. #1
    Sencha User
    Join Date
    Nov 2011
    Location
    Toronto
    Posts
    105
    Vote Rating
    2
    basememara is on a distinguished road

      0  

    Default Merge Touch and Ext JS applications?

    Merge Touch and Ext JS applications?


    I am building a website that serves desktop and mobile versions of the site. Currently, I have 2 separate projects - one that uses the ext-4 library for desktop and the other uses touch-2. I am using the MVC approach, so many of my models, stores, and other classes cross-over.

    My questions are:
    1) Should I use an index.html / app.js and mobile.html / mobile.js entry points and use some kind of mobile detection to route them to the right page?
    2) Does Touch have a modded version of Ext JS baked in, or is Ext JS an unmodded subset of Touch?

    Thanks for any help or experience.

  2. #2
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,169
    Vote Rating
    28
    jay@moduscreate.com is a jewel in the rough jay@moduscreate.com is a jewel in the rough jay@moduscreate.com is a jewel in the rough jay@moduscreate.com is a jewel in the rough

      0  

    Default


    I would have two html files. In short, the server-side should determine what the user agent is, etc, and direct the user to the proper HTML file that contains the necessary CSS and JS for the apps. Ext JS and Touch have similar code bases (Sencha Platform), but they are not 100% interchangeable.

    Jay Garcia @ModusJesus || Modus Create co-founder
    Ext JS in Action author
    Sencha Touch in Action author

    Get in touch for Ext JS & Sencha Touch Touch Training

    We are also working on Video-based Sencha Touch training: Check it out here.