Suggestion about including jqmobile in welcome scaffold

49 views
Skip to first unread message

Ray (a.k.a. Iceberg)

unread,
May 16, 2012, 11:06:00 PM5/16/12
to web2py-developers
Hi gentlemen,

This is a follow-up post about "Suggestion about using jqmobile in
web2py" (https://groups.google.com/forum/?fromgroups#!topic/web2py/
Gq5_UqeVNdc).

The suggested layout_jqm.html (and its accessories static/css/
handheld.css) are in issue 797 http://code.google.com/p/web2py/issues/detail?id=797

@Anthony:
1. You are correct, so I've change this post subject from "using
jqmobile in web2py" to "including jqmobile in welcome scaffold". It
better describes my proposal.
2. The current default layout of "welcome" app is responsive (i.e.
mobile-friendly), but it still looks more like a website. On the
contrary, the proposed layout_jqm.html looks more like a native app.
That makes big difference. Both are useful, depending on your need.
3. Technically, the following calling pattern is good enough as an
auto-switch. But I don't mind including them in comment-out mode.

#if request.user_agent().is_mobile or request.user_agent().is_tablet:
# response.view = 'generic.mobi'

Regards,
Ray
Reply all
Reply to author
Forward
0 new messages