25.02.2013 Views

Peter Lubbers - Pro HTML 5 Programming

Pro HTML 5 Programming

Pro HTML 5 Programming

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

■ J<br />

JägerMonkey, 22<br />

JavaScript<br />

coding Web Worker JavaScript file, 197<br />

loading and executing, 195<br />

logging and debugging, 20–21<br />

JavaScript engine, 22<br />

JavaScript methods, to find elements, 18<br />

JavaScript Object Notation (JSON), 21<br />

JSON object storage, 238–239<br />

JSON.parse() function, 239<br />

just-in-time (JIT) compilation engine, 22<br />

■ K<br />

Kaazing WebSocket Gateway, 147<br />

key attribute, 222<br />

key(index) function, 220<br />

■ L<br />

latency, reduction in with WebSockets, 144<br />

latitude coordinates, 88<br />

length attribute, 220<br />

lineCap property, 38<br />

lineTo(x, y) function, 31, 36<br />

list attribute, 178, 187<br />

load() function, 74<br />

loadData() function, 239<br />

loadDemo() function, 61–62, 104–107, 154,<br />

161, 231<br />

localStorage object, 214, 219<br />

location information, 87–91<br />

■ INDEX<br />

cell phone data, 90–91<br />

GPS data, 89–90<br />

IP address-based, 89<br />

latitude and longitude coordinates, 88<br />

privacy issues and, 95<br />

sources of, 88–89<br />

user-defined data, 91<br />

Wi-Fi data, 90<br />

location tracker application<br />

building, with WebSockets, 158–164<br />

adding Geolocation code, 162<br />

adding WebSocket code, 161–162<br />

code listing, 164–167<br />

coding <strong>HTML</strong> file, 159–160<br />

logging, JavaScript, 20–21<br />

longitude coordinates, 88<br />

long-polling, 138<br />

loop attribute, 75, 84<br />

■ M<br />

manifest attribute, 246<br />

manifest files, 247–251<br />

markup elements<br />

deprecated, 10<br />

new, 9–13<br />

max attribute, 178<br />

maximumAge attribute, 100<br />

maxLength constraint, 188<br />

media controls, 74, 76<br />

277

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!