Web Development with jQuery®

(Elliott) #1

632


GET requests (AJAX) – jQuery

bindex.indd 02/20/2015 Page 632


GET requests (AJAX), 181
data, sending, 188 –189
JSON formatted data, 189–192
XML formatted data, 182–188
getAttribute( ) method, 248
getFileSize( ) method, 316
$.getScript( ) method, 200–205
grep( ) method, 147–151, 368
gzip, server side, 14

H


h.264 video, 462–463
hasClass( ) method, 101
Hello World, 8–9
hide( ) method, 223–230
hiding elements, 223–230
hierarchy, selectors, 493
hover( ) wrapper method, 67
HTML
methods and, 525, 527–531
setting, 104 –106
multiple items, 106–108
snippets, AJAX and, 195–200
html( ) method, 103
<html> element, 35
HTML5
drag and drop
event setup, 289–294
events, 280
fi le uploads, 294–319
implementation, 279–294
plugins, 286–288
fallback video/audio, 461–462
MediaElement plugin, 459
HTTP, Access-Control-Allow-Methods,
213 –219
Hunt, Lachlan, 28

I


id names, 11–12
taggers, 11
type selectors, 11–12
if keyword, 20
inArray( ) method, 158–160, 368
indenting, JavaScript, 19–20
indexOf( ) method, 150, 368
<input> element, 42, 43, 93
click( ) event, 229
insertAfter( ) method, 103,
112 –117
insertBefore( ) method, 103,
112 –117
is( ) method, 34, 43–44
iteration, 135–136
selections, 141–143
in selections, 43–45

J


JavaScript
Allman Style, 21
control structures, 20–22
conventions, 15–25
curly braces, 22–23
external documents, 25
indenting, 19–20
line length, 19–20
loading, dynamically, 200–205
namespaces, 24–25
nonintrusive, 10
One True Brace, 21
semicolons, 22–23
jQuery
benefi ts, 5–7
developers, 7

http://www.it-ebooks.info

Free download pdf