HTML Css Javascript
HTML Css Javascript
HTML Css Javascript
you) support?
How long will it take to build native on N number of
platforms?
How much effort will be duplicated?
What if you bet on the wrong platform?
Who writes the code? Hire out? Retrain/retool
yourself or your devs?
Common Components
Web documents
Server-side programming
Client-side programming
Web services
jQuery
Web Documents
presentation
Cascading Style Sheets presentation information
only
HTML documents contain little formatting
Many Choices
Build a Native app (for specific platform) that
PhoneGap (phonegap.com)
Easily create apps with the only free open source
https://build.phonegap.com/
ZIP your www directory
Upload it to the server
After a few minutes, download your .apk or other
app files for installation on your devices
Sencha
Build mobile apps for iPhone,
jQT (jqtjs.com)
Zepto/jQuery plugin for mobile
Dashcode
jQuery Mobile
(jquerymobile.com)
jQuery Mobile isnt a
full application
framework like
SproutCore or Sencha
Touch, but the new
initiative does aim to
bring more native
controls to mobile web
apps.
Not supported on all
browsers.
http://jquerymobile.com/gbs
The Redirect
Its not a bad idea to also redirect your main
Request 1
REQUEST
Request 2
dynamic
content?
Yes
No
Response 2
Static content
(HTML, PNG,
JPG)
Response 1
Dynamically
generated
content
Processing
DB
What is JavaScript?
Interpreted, object-oriented programming language
with dynamic typing
Introduced by Netscape with Netscape 2.0 in 1995
Standardized as ECMAScript by ECMA (European
Computer Manufacturers Association)
Not related to Java other than the name
<i>
simple
paragraph
Web Services
JQuery
Powerful JavaScript library
Access parts of a page using CSS or XPath-like
expressions
Modify the appearance of a page
Alter the content of a page
Change the users interaction with a page
Rich library of methods for AJAX development (AJAX
= Asynchronous JavaScript and XML)
With jQuery and AJAX, you can request text, HTML,
XML, or JSON from a remote server using both HTTP
Get and HTTP Post.
Basic JQuery
Selecting part of a document is a fundamental
operation
A JQuery object is a wrapper for a selected group of
DOM nodes
$() function is a factory method that creates JQuery
objects
$(dt) is a JQuery object containing all the dt
elements in the document
Basic JQuery
.addClass() method changes the DOM nodes by
Basic JQuery
To make this change, put it in a function and call it
when the document has been loaded and the DOM
is created. Example Function:
function
doEmph()
{
$(dt).addClass(emphasize)
}
<body
onLoad=doEmph()>
Basic JQuery
JQuery provides an independent scheduling point
});
<html><head>
<script
src="jquery.js"
type="text/javascript"></script>
<script
src="test.js"
type="text/javascript"></script>
Questions?