1. #1
    Sencha User
    Join Date
    Sep 2008
    Posts
    2
    Vote Rating
    0
    alex4u2nv is on a distinguished road

      0  

    Default automatic switch between extjs and touch

    automatic switch between extjs and touch


    Since touch and extjs are two different but similar libraries, I'm guessing that this couldn't be done by toggling the stylesheets.
    So I was wondering, how do people handle this situation?
    i'm guessing server side browser detection and delivery of the appropriate libraries? Or is there a better way of doing this?

    thanks,
    Alex.

  2. #2
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,337
    Vote Rating
    75
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    Welcome to the forums. Please post post in the proper forums in the future. Moved to Sencha Touch Help.

  3. #3
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,337
    Vote Rating
    75
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    I think the best thing is to detect the user agent on the server side and serve up the javascript accordingly.

  4. #4
    Sencha User aw1zard2's Avatar
    Join Date
    Sep 2009
    Location
    Dallas, Texas
    Posts
    563
    Vote Rating
    30
    aw1zard2 has a spectacular aura about aw1zard2 has a spectacular aura about

      0  

    Default


    I posted a function to detect if a mobile browser device was connected or not.
    This was posted during Sencha Touch's private beta but I think you can get some hints on how I've been handling things. I check which browser is hitting the system then for that php session load several variables that change my main php template engine to give the correct flow and javascript files to the device connected. Cause remember there is now tablets with Windows 7 and other full Operating Systems that won't be able to handle Sencha Touch but would use Ext JS instead.

    I have gone a little bit further and also checking the viewable size but it's not listed in this function and classified my "screens" by device/browser connected and viewable size. The Sencha Touch screens can auto adjust better then a tablet with Windows 7 on it. Of course this will get better as we get browsers able to tell if it's in landscape or portrait modes using Ext JS. Some of the Sencha Touch which handles this might be in Ext JS 4.0 not sure yet will just have to wait and see.

    But for a quick test in Ext JS if the viewable height is bigger then the width then your in portrait otherwise landscape.

    http://www.sencha.com/forum/showthre...l=1#post468703


  5. #5
    Sencha User
    Join Date
    Sep 2008
    Posts
    2
    Vote Rating
    0
    alex4u2nv is on a distinguished road

      0  

    Default


    Thanks I will check this out, and utilize some serverside filtering.

Similar Threads

  1. ExtJS 4 + Sencha Touch
    By sg707 in forum Ext 3.x: Help & Discussion
    Replies: 5
    Last Post: 4 Oct 2013, 6:02 AM
  2. ExtJS 4 and Sencha Touch API resemblance
    By gevik in forum Community Discussion
    Replies: 1
    Last Post: 19 Dec 2010, 12:45 AM
  3. Sencha Touch = extJS 3.x or extJS 4.0?
    By bardaste in forum Sencha Touch 1.x: Discussion
    Replies: 5
    Last Post: 14 Dec 2010, 6:23 AM
  4. [3.0]Automatic translation of ExtJs Components v1.5
    By tomim in forum Ext 3.x: User Extensions and Plugins
    Replies: 20
    Last Post: 25 Sep 2010, 1:29 AM
  5. Touch and ExtJS
    By sps196 in forum Community Discussion
    Replies: 3
    Last Post: 30 Jul 2010, 11:18 AM

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