B

Back button app, 46-52 background-color property, 6 backSelector property, 68 beep function, 128-131 BEGIN statement, 92 block tags (HTML), 4 body element

CSS considerations, 6 padding considerations, 23 PhoneGap example, 125 bookmarking apps, 52 border-width property, 27, 49

We'd like to hear your suggestions for improving our indexes. Send email to [email protected].

browsers (see specific browsers)

cache manifest file absolute URLs and, 94 basic overview, 93-95 creating dynamic, 99-105 syntax errors and, 107 cacheGetRequests property, 68 calorie-tracking app About panel, 58 complete HTML listing, 66-68 Date panel, 60, 75-76 Dates panel, 58-60, 75-76 Home panel, 55-58 New Entry panel, 61-63 Settings panel, 64, 72-75 Cancel button app, 62 Cascading Style Sheets (see CSS) checkBudget() function, 129 Chrome browser client-side databases and, 80 Developer Tools, 80 testing considerations, 5, 18, 28 class attribute calorie-tracking app, 63 custom selectors and, 7 id attribute comparison, 7 click handlers, 38 click() function, 76, 88 clone() function, 85 close tags (HTML), 3 colon (:), 96, 115 color code notation (HTML), 6 color property

Back button app, 49 example, 6 command-line environment, 110 COMMIT statement, 92 concatenation operator, 10 CONSTRAINT_ERR error code, 92 CREATE TABLE statement, 79, 132 createEntry() function, 80, 130, 133 Crockford, Douglas, 38 CSS (Cascading Style Sheets), 13 (see also styling HTML pages) adding, 20-23 adding look and feel, 23-24 applying stylesheets, 8

introduction to, 6-7 trailing ellipsis, 43 cubeSelector property, 68 curly braces {}, 6, 10

data storage error code reference, 91 Web SQL Database, 76-89 Web Storage data, 71-76 Database.changeVersion() method, 91 databases creating, 78-80 deleting rows, 88-89 handling result sets, 84-87 inserting rows, 80-83 selecting rows, 84-87 DatabaseSync.changeVersion() method, 91 DATABASE_ERR error code, 91 debugging considerations

JavaScript console, 105, 106-108 offline application cache, 105-108 removing debug code, 141 deleteEntryById() function, 88 deleting rows, 88-89 device emulator (see Android emulator) digital signatures, 142 dissolveSelector property, 68 Document Object Model (DOM), 10 document ready function, 28, 37 DOM (Document Object Model), 10 dot (.), 7, 102 downloading

Android SDK, 110-114 PhoneGap development tool, 114 Droid font family, 21 droidgap app, 118-122 DRY acronym, 17 dupeEntryById() function, 140

E Text Editor, 5 ellipsis, trailing, 43 em (emphasis) tag (HTML), 4 emacs (text editor), 5 entryClickHandler() function, 136 environment variables, 111, 115-116 equals sign (=), 10

equivalence logical operator, 10 error handling inserting rows, 82-83 Web SQL Database, 83, 91 errorHandler() function, 82 executeSql() method, 82, 85, 129

fadeSelector property, 68 FALLBACK: keyword, 96-99 :first-child pseudoclass, 25 fixedViewport property, 69 flipSelector property, 69 font-weight property, 49 fonts, mobile devices, 21 formSelector property, 69 fremium models, 3 fullScreen property, 69 fullScreenClass property, 69

gedit (text editor), 5 geolocation app, 132-137 getCurrentPosition() function, 133 getDate() function, 76 getFilename function, 102 getMonth() method, 76 goBack() function, 73 Google Goggles, 147 goTo() method, 137 gradients (CSS), 24 gt() function, 85

hash/pound sign (#), 6, 7 heading tags (HTML) hyperlink example, 7 wrapping text in, 3 hexadecimal notation, 6 hijackLinks() function, 37, 48 home screens, adding icons to, 52 hosting, setup considerations, 13 :hover pseudoclass, 51 href attribute absolute link example, 8 functionality, 4 relative path example, 8 .htaccess file, 94, 95

HTML, 13

(see also styling HTML pages) calorie-tracking app, 56 introduction to, 3-5 Web SQL Database spec and, 76 HTML color code notation, 6 html element functionality, 5 manifest attribute, 94 HTML tags, 4

(see also specific tags) categories supported, 4 CSS considerations, 7 hyperlinks and, 4 typical structure, 3 Hunt, Andrew, 17 hyperlinks

CSS considerations, 7 hijacking local, 45 HTML tags, 4

icon property, 69 icons adding to home screens, 52 customizing, 126 id attribute, 7 IF NOT EXISTS clause, 79 IIS (Internet Information Services), 14 !important directive, 125 indenting text, 22 index.html page, 93 inline tags (HTML), 4 innerWidth property (window), 28 INSERT statement, 92, 133 insertEntry() function, 133 Internet Explorer browser, 18 Internet Information Services (IIS), 14 Internet Service Provider (ISP), 13 ipfw command, 40 ISP (Internet Service Provider), 13

JavaScript accelerometer app, 137-140 beep, vibrate, alert functions, 128-131 controlling phones, 128-140 debugging considerations, 105, 106-108

geolocation app, 132-137 introduction to, 9-12 routing requests, 36-38 syntax considerations, 10 JAVA_HOME environment variable, 111 jQTouch library about, 55

browser toolbar and, 125 calorie-tracking app, 57 Cancel button app, 62 customizing, 68-70 goTo() method, 137 saving user settings, 74 jQuery library about, 11

adding basic behavior with, 25-30 Back button app, 51 calorie-tracking app, 58 click() function, 76, 88 document ready function, 28, 37 goBack() function, 73 gt() function, 85 hijacking onclick actions, 34 load() function, 37 progress indicator app, 39 setting page title, 41 slideUp() method, 88 toggleClass() function, 29 val() function, 73

0 0

Post a comment