17. jQuery
● Includes
○ Powerful selectors
○ DOM manipulation
○ Ajax methods
● Fixes browser issues
● Fast & stable
● Used on ⅓ of sites in the internet
● No reason not to use it
19. Backbone.js
● MVC Library
● Solves common problems
● Lightweight
● Uses jQuery
● Popular for modern web apps
● See examples: http://documentcloud.github.
com/backbone/#examples
20. Backbone.js - Solves common problems
● Structure - important for teams
● Validation
● Sorting
● Events
● History & Routes
21. Backbone - RESTful Data Layer
create → POST /collection
read → GET /collection[/id]
update → PUT /collection/id
delete → DELETE /collection/id
27. PhoneGap - Example
<!DOCTYPE html>
<html>
<head>
<title>Notification Example</title>
<script type="text/javascript" charset="utf-8" src="phonegap.js"></script>
<script type="text/javascript" charset="utf-8">
// Wait for PhoneGap to load
//
document.addEventListener("deviceready", onDeviceReady, false);
// PhoneGap is ready
//
function onDeviceReady() {
// Empty
}
// alert dialog dismissed
function alertDismissed() {
// do something
}
// Show a custom alert
//
function showAlert() {
navigator.notification.alert(
'You are the winner!', // message
28. PhoneGap Build
1. Write your app using HTML, CSS and JavaScript
2. Upload it to the PhoneGap Build service
3. Get back app-store ready apps for Apple iOS, Google
Android, Palm, Symbian, Blackberry and more.
29. Background sync
● PhoneGap - Push notification not supported
● Could do server push
● Problems with HTTP
○ One direction
○ Message overhead
● WebSockets - push technology for the web
○ Network protocol
○ Javascript API
○ Only supported in Chrome
30. There are some libraries
● Kaazing
● jWebSockets
● Juggernaut
● There is no silver bullet !