9. Document
Location
History
Frames
BOM
Navigator Browser Object Model
Inside jQuery @auchenberg kenneth.io
10. HTML
DOM
Document Object Model
Inside jQuery @auchenberg kenneth.io
11. SVG DOM
Scalable Vector Graphics
MathML DOM
Mathematical Markup Langugage
SMIL DOM
Synchronized Multimedia Integration Language
DOM
Document Object Model
Inside jQuery @auchenberg kenneth.io
16. “ Looking at how Behaviour works, I've never
been completely happy - it simply seems too
tedious and verbose for everyday ”
John Resig
December 2005
Quote from http://ejohn.org/blog/selectors-in-javascript/
Inside jQuery @auchenberg kenneth.io
19. jQuery
Prototype
Trend
October 2010
Scale is based on the average worldwide traffic of jquery javascript from 2004 to 2010.
Source: http://www.google.com/trends?q=dojo+javascript,+jquery+javascript,+yui+javascript,+prototype+javascript,+mootools+javascript&ctab=0&geo=all&date=all&sort=1
Inside jQuery @auchenberg kenneth.io
20. Prototype
jQuery Usage
October 2010
Distribution is calculated from a cross section of website domains provided by URLs entered at BuiltWith.com and the Quantcast Top Million. Last calculated on October 19 2010.
Source: http://trends.builtwith.com/javascript
Inside jQuery @auchenberg kenneth.io
22. var $ = ‘Hello World’;
var € = ‘Hello World’;
var @ = ‘Hello World’;
var _ = ‘Hello World’;
Identifies Names
Inside jQuery @auchenberg kenneth.io
23. “
7.6 Identifier Names and Identifiers
Identifier Names are tokens that are interpreted according
to the grammar given in the “Identifiers” section of chapter
5 of the Unicode standard, with some small modifications.
An Identifier is an IdentifierName that is not a
ReservedWord (see 7.6.1). The Unicode identifier
grammar is based on both normative and informative
character categories specified by the Unicode Standard.
The characters in the specified categories in version 3.0
of the Unicode standard must be treated as in those
categories by all conforming ECMAScript
implementations.
This standard specifies specific character additions: The
dollar sign ($) and the underscore (_) are permitted
anywhere in an IdentifierName. ECMA-262
…”
Quote from Standard ECMA-262 ECMAScript Language Specification
Inside jQuery @auchenberg kenneth.io
31. jQuery code begins $
followed by a selector
and ends with action(s)
$(’div’).addClass(‘kenneth’);
$(’div.groups‐panel’).addClass(‘kenneth’).find(’span:first‐
child’).text(‘rocks’).show();
Inside jQuery @auchenberg kenneth.io
32. Selectors and actions can be attached to
events.
$(’body’).click(function() {
$(’div’).addClass(‘kenneth’) ;
});
$(’body’).live(’click’, function() {
$(’div’).addClass(‘kenneth’) ;
});
Inside jQuery @auchenberg kenneth.io
87. MIME‐Version: 1.0 HTTP/1.1 200 OK
Content‐Type: multipart/mixed; boundary="frontier" Content‐Type: text/plain
Transfer‐Encoding: chunked
This is a message with multiple parts in MIME format.
‐‐frontier 25
Content‐Type: text/plain This is the data in the first chunk
This is the body of the message. 1C
‐‐frontier and this is the second one
Content‐Type: application/octet‐stream
Content‐Transfer‐Encoding: base64 0
PGh0bWw+CiAgPGhlYWQ+CiAgPC9oZ
XHR Multipart
MIME
Inside jQuery @auchenberg kenneth.io