9 Feb 2011 10:15 AM #1
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?
9 Feb 2011 11:07 AM #2
Welcome to the forums. Please post post in the proper forums in the future. Moved to Sencha Touch Help.
9 Feb 2011 11:08 AM #3
9 Feb 2011 11:44 AM #4
I posted a function to detect if a mobile browser device was connected or not.
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.
14 Feb 2011 9:21 AM #5
Thanks I will check this out, and utilize some serverside filtering.
By sg707 in forum Ext 3.x: Help & DiscussionReplies: 5Last Post: 4 Oct 2013, 6:02 AM
By gevik in forum Community DiscussionReplies: 1Last Post: 19 Dec 2010, 12:45 AM
By bardaste in forum Sencha Touch 1.x: DiscussionReplies: 5Last Post: 14 Dec 2010, 6:23 AM
By tomim in forum Ext 3.x: User Extensions and PluginsReplies: 20Last Post: 25 Sep 2010, 1:29 AM
By sps196 in forum Community DiscussionReplies: 3Last Post: 30 Jul 2010, 11:18 AM