Jquery A Brief Expguide
Jquery A Brief Expguide
http://pinboard.in/u:jasonclark/t:cil2013-mobile/
Agenda
● Learn what a mobile framework is.
● Understand the various technologies (HTML, CSS, JavaScript)
and how they work together to build mobile Web apps/sites.
● Recognize the differences between native and web apps/sites.
● Explore jQuery Mobile basics.
● Acquire best practices in mobile Web development.
● Create an opportunity to continue to work with us after the
webinar to demonstrate what you learned.
● Gain access after the webinar to a free Web server so you can
see your mobile Web app/site live.
Quick Poll
Does your library have:
Mobile-optimized Website
Shareable content (Twitter etc.) Only if it is built in to the app Web links can be shared. Social API’s
allow 1-click posting
Access to hardware sensors Yes: camera, gyroscope, microphone, Access thru browser is limited.
compass, accelerometer, GPS Geolocation works!
Development Build app for target platform (Android, Write/publish once using standard Web
iOS [Objective-C] etc.) technologies, view it anywhere with
URL. Speedy debugging and
development.
Distribution Most app stores require approval. No hassles.
Source: http://goo.gl/zSeDU
jQuery Mobile is …
Source: http://jquerymobile.com/
jQuery Mobile is well-documented and
there are great demos to get you started
Mobile Development - Demos
Demos:
www.lib.montana.edu/~jason/files.php
Your Live Site
To test your work use this URL, but change it to
your user number.
Example: http://marcomponline.
com/chadtest/Class/cil1/jquery-mobile-
template/index.html
Getting Started!
Let’s build something.
Handout: http://goo.gl/xMGp0
Rapid Prototyping for jQuery Mobile
Try it at http://codiqa.com/
Try it at http://jquerymobile.com/themeroller/
Exercise
● Pick a web site
● Define primary mobile actions
● Choose mobile entry points (links)
● Sniff for User Agent – Detection (allow the user to decide where to go)
http://m.novarelibrary.com/
Sketch ideas
Testing and validation
http://getfirebug.com/
W3C mobileOK Checker
http://validator.w3.org/mobile/
http://ready.mobi
"All sizes | Enough of this silliness | Flickr - Photo Sharing!." Last modified 10/15/2012 12:45:55. http://www.flickr.
com/photos/philhawksworth/7562460356/sizes/l/in/photostream/ (accessed 10/15/2012).
Mobile Optimization
● Minify scripts, html, css …
● Reduce HTTP requests
● Compress files with gzip
● Cache static resources
“Speed matters.”
https://developers.google.com/speed/pagespeed/insights
Mobile Analytics
● Web metrics and statistics
● Mobile search logs
● Mimic - emulates European and Japanese models: N400i and N505i. http://pukupi.com/post/2059
Handout: http://goo.gl/xMGp0
Want to
Hangout?
gplus.to/chadmairn
Jason Clark
Head of Digital Access & Web Services
Associate Professor
Montana State University Library
@jaclark - twitter.com/jaclark
[email protected]