[web2py] Re: DISCUSSION: Dual Desktop/Mobile Functionality

2011-07-28 Thread Ross Peoples
The end result of the discussion was to give the developers a way to detect the devices using request.user_agent() to get info from the user agent string, and then the developer can do whatever they want with that information, so the creating of mobile and desktop sites is still completely up

Re: [web2py] Re: DISCUSSION: Dual Desktop/Mobile Functionality

2011-07-28 Thread Kenneth Lundström
I find it unfortunate that it was never implemented. Would it be possible to get a web2pyslice of how to do something like what was the orginal idea? Kenneth The end result of the discussion was to give the developers a way to detect the devices using request.user_agent() to get info from

Re: [web2py] Re: DISCUSSION: Dual Desktop/Mobile Functionality

2011-07-28 Thread Anthony
On Thursday, July 28, 2011 6:06:43 PM UTC-4, Kenneth wrote: I find it unfortunate that it was never implemented. Would it be possible to get a web2pyslice of how to do something like what was the orginal idea? The mobile device detector has been implemented (in trunk). I don't think any

Re: [web2py] Re: DISCUSSION: Dual Desktop/Mobile Functionality

2011-07-28 Thread pbreit
It was just browser sniffing to set an is_mobile variable.

[web2py] Re: DISCUSSION: Dual Desktop/Mobile Functionality

2011-07-27 Thread Christopher Steel
http://www.getskeleton.com/#theFuture

[web2py] Re: DISCUSSION: Dual Desktop/Mobile Functionality

2011-07-26 Thread Rufus
I'm new to web2py but since I have an iphone I've been interested in the mobile view/standard view capability of web2py so I've been watching this thread. Could you possibly generalize display devices even more, to even provide per-user or per-session skinning of the web page, storing the display

Re: [web2py] Re: DISCUSSION: Dual Desktop/Mobile Functionality

2011-07-26 Thread Jonathan Lundell
On Jul 26, 2011, at 3:12 PM, Rufus rufusvsm...@gmail.com wrote: (to tell the truth, the mobile-enabled websites really tick me off when there is no way for me to force it back to the standard page.) It's a good point. I just visited a site that insisted that my iPad was an iPhone. I've seen

[web2py] Re: DISCUSSION: Dual Desktop/Mobile Functionality

2011-07-26 Thread Chris May
I agree. It's very important to not annoy the site visitor by forcing him into one view / solution / experience. Judging by the parallel discussion in the developer group (http:// groups.google.com/group/web2py-developers/browse_thread/thread/ 2056602a6c30af27#) and the corresponding issue

[web2py] Re: DISCUSSION: Dual Desktop/Mobile Functionality

2011-07-22 Thread Ross Peoples
If this functionality is desired, then consider the mentioned patch to be the first of many to come: http://code.google.com/p/web2py/issues/detail?id=346

[web2py] Re: DISCUSSION: Dual Desktop/Mobile Functionality

2011-07-22 Thread Anthony
+1 On Friday, July 22, 2011 3:14:02 PM UTC-4, Ross Peoples wrote: As mobile devices get more popular, it is important for many sites and apps to provide both a regular (desktop) site and a mobile site. It is currently difficult to accomplish this with web2py. Plugin jqmobile is great for

[web2py] Re: DISCUSSION: Dual Desktop/Mobile Functionality

2011-07-22 Thread Chris May
Hey Ross, thanks for starting this discussion. And what a timely discussion, considering today's Smashing Magazine article is a roundup of Responsive Design (RD) patterns. (www.smashingmagazine.com) (For those unfamiliar with RD, also check out A List Apart for a great intro:

[web2py] Re: DISCUSSION: Dual Desktop/Mobile Functionality

2011-07-22 Thread howesc
it's been years since i last was doing device detection, but i used the WURFL: http://wurfl.sourceforge.net/

[web2py] Re: DISCUSSION: Dual Desktop/Mobile Functionality

2011-07-22 Thread Ross Peoples
I have already submitted a patch to address device detection. It's very simple and uses the user agent string. It may not be the most elegant way to do detection, but it works and it's really fast. I tested the detection using an iPhone and an iPad, but I don't have any other devices to test

[web2py] Re: DISCUSSION: Dual Desktop/Mobile Functionality

2011-07-22 Thread pbreit
This came out recently: http://www.getskeleton.com It seems to me pretty difficult to make one web app work well on both large and small screens.

[web2py] Re: DISCUSSION: Dual Desktop/Mobile Functionality

2011-07-22 Thread Ross Peoples
It is difficult to make the same views and everything work on small and large screens. The solution I am proposing is a separate layout for mobile devices based on plugin_jqmobile. Views would use .html versions of the views unless overridden by a .mobile view. This way, simple views don't need

[web2py] Re: DISCUSSION: Dual Desktop/Mobile Functionality

2011-07-22 Thread pbreit
Ah, I see. That could be interesting. Possible to upload the changes as patches so we could isolate the differences?

[web2py] Re: DISCUSSION: Dual Desktop/Mobile Functionality

2011-07-22 Thread Ross Peoples
The changes are all over the place right now. I was hoping to release these as a series of patches to make later testing easier. I submitted the mobile detection already as issue 346. All of the changes since have been to the welcome application, since layout selection is a per app thing.

[web2py] Re: DISCUSSION: Dual Desktop/Mobile Functionality

2011-07-22 Thread Ross Peoples
After some hacking on the welcome application, I have finally got this working! I attached a screenshot of a /default/test function I created. That URL uses the test.html view when viewed on the desktop browser, and the same URL uses the test.mobile.html view when viewed using the iPhone