mobile webkit development and jqtouch

54
Mobile WebKit and jQTouch with David Kaneda

Upload: john-wilker

Post on 18-May-2015

11.450 views

Category:

Technology


0 download

DESCRIPTION

A cursory look at the Mobile WebKit platform and the benefits of having Javascript at ones disposal. Broad categories covered will include AJAX in the mobile environment, CSS transitions, and iPhone-specific features. Specifically, I will demonstrate how to build a mobile application with a custom, native-looking, interface which uses dynamic data.

TRANSCRIPT

Page 1: Mobile WebKit Development and jQTouch

Mobile WebKit and jQTouch

with David Kaneda

Page 2: Mobile WebKit Development and jQTouch

* Artist rendering by Jean Bakey

Page 3: Mobile WebKit Development and jQTouch

David KanedaDesigner, Developer, and Rock Band Superstar

davidkaneda.comtwitter.com/davidkaneda

Page 4: Mobile WebKit Development and jQTouch

the mobile landscape

Page 5: Mobile WebKit Development and jQTouch

5%6%

13%

3%

12%

61%

iPhoneAndroidPalmRIMWindows MobileOther

US Mobile Traffic

http://metrics.admob.com/

Page 6: Mobile WebKit Development and jQTouch

NOT the future of

* SRRY NOKIA

Page 7: Mobile WebKit Development and jQTouch

NOT the future of

* SRRY NOKIA

Page 8: Mobile WebKit Development and jQTouch

The Future of Mobile

Page 9: Mobile WebKit Development and jQTouch

The Future of Mobile

Android, Palm, AppleTouch Screen

Resolution & ColorWebKit

Page 10: Mobile WebKit Development and jQTouch

WebKit Rocks!• CSS3• Transforms,

Transitions, and Animations

• Canvas• SQLite• Cache Manifest• Geo-Location

Page 11: Mobile WebKit Development and jQTouch

WebKit Rocks!• CSS3• Transforms,

Transitions, and Animations

• Canvas• SQLite• Cache Manifest• Geo-Location

Page 12: Mobile WebKit Development and jQTouch

jQTouch

Page 13: Mobile WebKit Development and jQTouch
Page 14: Mobile WebKit Development and jQTouch
Page 15: Mobile WebKit Development and jQTouch

Icon (no gloss)Startup Screen

Full ScreenBlack Status Bar

No Zooming

Page 16: Mobile WebKit Development and jQTouch

Javascript

Page 17: Mobile WebKit Development and jQTouch

HTML

Page 18: Mobile WebKit Development and jQTouch

Full Screen Options

Page 19: Mobile WebKit Development and jQTouch

Full Screen Options

• icon string null

Page 20: Mobile WebKit Development and jQTouch

Full Screen Options

• icon string null• addGlossToIcon boolean true

Page 21: Mobile WebKit Development and jQTouch

Full Screen Options

• icon string null• addGlossToIcon boolean true• fixedViewport boolean true

Page 22: Mobile WebKit Development and jQTouch

Full Screen Options

• icon string null• addGlossToIcon boolean true• fixedViewport boolean true• fullScreen boolean true

Page 23: Mobile WebKit Development and jQTouch

Full Screen Options

• icon string null• addGlossToIcon boolean true• fixedViewport boolean true• fullScreen boolean true• fullScreenClass string ‘fullscreen’

Page 24: Mobile WebKit Development and jQTouch

Full Screen Options

• icon string null• addGlossToIcon boolean true• fixedViewport boolean true• fullScreen boolean true• fullScreenClass string ‘fullscreen’• startupScreen string null

Page 25: Mobile WebKit Development and jQTouch

Full Screen Options

• icon string null• addGlossToIcon boolean true• fixedViewport boolean true• fullScreen boolean true• fullScreenClass string ‘fullscreen’• startupScreen string null• statusBar string ’normal’

Page 26: Mobile WebKit Development and jQTouch

More Options

Page 27: Mobile WebKit Development and jQTouch

More Options• preloadImages array null

Page 28: Mobile WebKit Development and jQTouch

More Options• preloadImages array null• touchSelector string ‘a, .touch’

Page 29: Mobile WebKit Development and jQTouch

More Options• preloadImages array null• touchSelector string ‘a, .touch’• formSelector string ‘form’

Page 30: Mobile WebKit Development and jQTouch

More Options• preloadImages array null• touchSelector string ‘a, .touch’• formSelector string ‘form’• submitSelector string ‘.submit’

Page 31: Mobile WebKit Development and jQTouch

animations

Page 32: Mobile WebKit Development and jQTouch
Page 33: Mobile WebKit Development and jQTouch

Animation Options

Page 34: Mobile WebKit Development and jQTouch

Animation Options• backSelector string ‘.back, .cancel’• slideSelector string ‘body > * > ul li a’• slideUpSelector string ‘.slideup’• flipSelector string ‘.flip’• cubeSelector string ‘.cube’• swapSelector string ‘.swap’• fadeSelector string ‘.fade’• useTransitions boolean true

Page 35: Mobile WebKit Development and jQTouch

HTML

Page 36: Mobile WebKit Development and jQTouch

themes

Page 37: Mobile WebKit Development and jQTouch

apple jqt

Page 38: Mobile WebKit Development and jQTouch
Page 39: Mobile WebKit Development and jQTouch
Page 40: Mobile WebKit Development and jQTouch
Page 41: Mobile WebKit Development and jQTouch

AJAX

Page 42: Mobile WebKit Development and jQTouch
Page 43: Mobile WebKit Development and jQTouch

GET/POSTCaching

Live Events

Page 44: Mobile WebKit Development and jQTouch

GET/POSTCaching

Live Events

Page 45: Mobile WebKit Development and jQTouch

custom events

Page 46: Mobile WebKit Development and jQTouch
Page 47: Mobile WebKit Development and jQTouch

swipepageTransitionStartpageTransitionEnd

turn

Page 48: Mobile WebKit Development and jQTouch

swipepageTransitionStartpageTransitionEnd

turn

Page 49: Mobile WebKit Development and jQTouch

swipe detection

Page 50: Mobile WebKit Development and jQTouch

distribution

Page 51: Mobile WebKit Development and jQTouch

PhoneGap• Simple, Javascript-based access to

Accellorometer, Magnometer (that’s a compass!), Camera, Sound

• Distribute on App Store• PROFIT!!!• Easy to port to other devices like Android

and Blackberry

http://www.phonegap.com/

Page 52: Mobile WebKit Development and jQTouch

LiquidGear• iPhone-specific• Javascript access to Accelerometer, Admob,

Contacts, Camera, Photos, Badges, Sound/Vibrate, Tabs, Youtube

• Building native jQTouch integration

http://www.liquidgear.net/

Page 53: Mobile WebKit Development and jQTouch

</presentation><discussion>