e interface con guration is markup-driven, which means you can pre y much create your entire basic app interface in HTML, without needing to write a single line of JavaScript. (Of course, you'll still need to write JavaScript if your app is to do anything useful!) What
does
jQuery
Mobile
do?
data- a ributes are a wonderful new feature of HTML5 that let you add any a ributes you like to an element. All you have to do is start your a ribute name with the data- pre x. data-‐*
Lists are used for data display, navigation, result lists, and data entry. jQuery Mobile includes a wide range of list types and forma ing examples to cover most common design pa erns. Lists
Icons can be added to navbar items by adding the data-icon a ribute specifying a standard mobile icon to each anchor. By default, icons are added above the text (data-iconpos="top"). e following examples add icons to a navbar in a footer. Icons
in
navbars
To tell the framework to apply the persistent behavior, add a data-id a ribute to the footer of all HTML pages in the navigation set to the same ID. It's that simple: if the page you're navigating to has a header or footer with the same data-id, the toolbars will appear xed outside of the transition. Persistent
Footer
navigaKon
bar
JSON
(JavaScript
Object
NotaDon)
is
a
lightweight
data-‐interchange
format.
It
is
easy
for
humans
to
read
and
write.
It
is
easy
for
machines
to
parse
and
generate.
Basic
Template
var person = { firstName: "Christopher", lastName: ”Griffith", blogURL: "http://chrisgriffith.wordpress.com" }; var template = "{{firstName}} {{lastName}}Blog: {{blogURL}}"; var html = Mustache.to_html(template, person); $('#sampleArea').html(html);
• The
web
is
sandboxed
• The
web
has
no
good
offline
story
• The
web
cannot
parDcipate
in
app
store
distribuDon
revenue
• The
web
cannot
access
most
device
APIs
• The
web
has
awful
tooling
Mobile
Web
is
great
but…