■ index <strong>JavaScript</strong> (cont.) window methods, 73 alert(), 73 confirm(), 76 nifty <strong>JavaScript</strong>s, 78 prompt(), 76 Windows (see Windows) • N Navigation, 199 basics of, 200 browser window.history object, 203 window.location object, 202 in-page navigation, 203 currentLink property, 206 init() method, 205 inner navigation, 205 panel interface, 207 replace() method, 206 sections <strong>and</strong> sectionLinks, 209 showSection() method, 206 tabbed interface, 209 keyboard access, 201 page reload, 199 pagination, 217 changePaginationNav() method, 223 createPaginationNav() method, 221 init() method, 220 properties <strong>and</strong> methods, 219 showSection() method, 223 select box, 200 web-site navigation, 211 HTML construct, 211 init() <strong>and</strong> changeSection() methods, 213 menu item, 213 • O Object detection, 53 Object literal, 66 • P, Q Presentation layer, 101 CSS designer, 108 CSS support problems, 118 fixElements() method, 123 fix() method, 122 getHighest() method, 122 multiple-column height problem, 119 dynamic styling, 108 init() method, 113 setSwitch() method, 114 style menu, 113 style switchers, 113, 115 364 event h<strong>and</strong>ling, 128 addEventListener() method, 129 event bubbling, 131 event listener function, 130 FOUC, 143 issues, 147 for Non-W3C-Complaint World, 137 optimization, 142 preventDefault() method, 133 reading <strong>and</strong> filtering keyboard entries, 143 toggleNews() method, 136 triggering events, 128 useCapture, 129 W3C <strong>DOM</strong>-2 specification, 129 <strong>JavaScript</strong>, 127 lacking support hover, 123 peekaboo() function, 102 script maintenance, 115 style attributes, 101 categories, 103 CSS clip, 107 getAttribute() <strong>and</strong> setAttribute(), 104 match() <strong>and</strong> replace() methods, 106 removeAttribute(), 105 via <strong>JavaScript</strong>, 104 Primitive data types, 14 Progressive enhancement, 54 • R Rollover Effects definition, 152 on parent elements, 157 background navigation, 157 CSS design, 160 <strong>DOM</strong> support, 158 event h<strong>and</strong>lers, 158 navigation, 157 reset rollover, 158 variables, 158 various states, navigation, 159 several images, 152 automatedrollover, 154–155 <strong>DOM</strong>-3 h<strong>and</strong>lers, 153 function replication, 153 preloaded rollover, 155 single image, 155 backgroung <strong>and</strong> CSS, 156 • S Screen readers, 55 Slide Shows, 160 dynamic shows, 170 CSS, 171 global reset, 172 www.it-ebooks.info
■ Index initialization method, 171 links, 173 new list, images, 172 parameter, 172 preview <strong>with</strong>out <strong>JavaScript</strong>, 171 retreival of images, 173 thumbnails, 170 embedded, 161 array list, 166 CSS <strong>and</strong> HTML classes, 162 CSS class, 168 CSS vs. <strong>JavaScript</strong>, 164 initialization method, 163 links (forward <strong>and</strong> backward), 167 list replacement, 165 parameters, 165 photoListInlineSlides.js, 163 variable, 166 <strong>with</strong> <strong>JavaScript</strong>, 161 <strong>with</strong>out <strong>JavaScript</strong>, 162 Sniffing, 53 String data type, 14 Addition <strong>and</strong> Subtraction, 17 escape sequences, 15 Number() function, 21–22 operators, 16 concatenation operator, 18 Multiplication, 17 parseFloat() function, 21 parseInt() function, 21 variables, 18 advantages, 18 prompt() function, 19 • T, U, V Ternary operator, 63 Third party <strong>JavaScript</strong>, 321 API, Google maps, 329, 333 animation parameter, 332 CSS code, 330 InfoWindow object, 333 <strong>JavaScript</strong>, 330 loadMapAPI, 330 panTo() method, 334–335 of Saitama Japan, 331 type property, 330 for web developers, 329 library, 322 chainable methods, 323 code (show <strong>and</strong> hide), 324 concatenation, 323 $(document).ready () method, 325 hascode, 328 jQuery, 323 jQuery dangers, 329 PRE elements, 325 scripts, 327 syntax, 329 toggle() method, 325–326, 328 REST API <strong>and</strong> libraries, 321 callback function, 322 usage of, 322 Twitter Bootstrap, 335 addition to a site, 335 btn class, 338 button tag, 339 carousel, 341 data-slide attribute, 340 drop down menu, 338 folder layout of, 336 font specification (Helvetica), 337 HTML elements, 340 launchButton, 339 web offers, 321 Thumbnail gallery, 297 assignH<strong>and</strong>lers() method, 310 cancelClick() method, 311 captions, 304 definition, 297 dynamic, 308 fake dynamic gallery, 298 image badge, 312 array_slice() method, 314 assignH<strong>and</strong>lers() method, 317 closedir() method, 314 deletePic() method, 318 doxhr() method, 316 load method, 317 opendir() method, 314 show method, 318 str_replace() method, 315 variables, 314 init() method, 300 navPic() method, 300–301 setPic() method, 300, 302 static, 298 XHR methods, 312 • W, X, Y, Z Web accessibility, 55 Web development, 50 behavior layer, 50 business logic layer, 51 content layer, 51 presentation layer, 50 structure layer, 50 Webshims, 294 365 www.it-ebooks.info
- Page 1 and 2:
www.it-ebooks.info
- Page 3 and 4:
Contents at a Glance About the Auth
- Page 5 and 6:
Chapter 1 Getting Started with Java
- Page 7 and 8:
Chapter 1 ■ Getting Started with
- Page 9 and 10:
Chapter 1 ■ Getting Started with
- Page 11 and 12:
Chapter 1 ■ Getting Started with
- Page 13 and 14:
Chapter 1 ■ Getting Started with
- Page 15 and 16:
Chapter 1 ■ Getting Started with
- Page 17 and 18:
Chapter 2 Data and Decisions Data a
- Page 19 and 20:
Chapter 2 ■ Data and Decisions
- Page 21 and 22:
Chapter 2 ■ Data and Decisions do
- Page 23 and 24:
Chapter 2 ■ Data and Decisions
- Page 25 and 26:
Chapter 2 ■ Data and Decisions va
- Page 27 and 28:
Chapter 2 ■ Data and Decisions If
- Page 29 and 30:
Chapter 2 ■ Data and Decisions Th
- Page 31 and 32:
The Date Object Chapter 2 ■ Data
- Page 33 and 34:
Chapter 2 ■ Data and Decisions va
- Page 35 and 36:
Generating a Random Number Chapter
- Page 37 and 38:
Chapter 2 ■ Data and Decisions Le
- Page 39 and 40:
Chapter 2 ■ Data and Decisions va
- Page 41 and 42:
Chapter 2 ■ Data and Decisions Th
- Page 43 and 44:
Chapter 2 ■ Data and Decisions If
- Page 45 and 46:
Chapter 2 ■ Data and Decisions if
- Page 47 and 48:
Chapter 2 ■ Data and Decisions Ja
- Page 49 and 50:
Chapter 2 ■ Data and Decisions Ea
- Page 51 and 52:
Chapter 2 ■ Data and Decisions va
- Page 53 and 54:
Chapter 3 From DHTML to DOM Scripti
- Page 55 and 56:
Chapter 3 ■ From DHTML to DOM Scr
- Page 57 and 58:
Chapter 3 ■ From DHTML to DOM Scr
- Page 59 and 60:
Chapter 3 ■ From DHTML to DOM Scr
- Page 61 and 62:
Chapter 3 ■ From DHTML to DOM Scr
- Page 63 and 64:
Chapter 3 ■ From DHTML to DOM Scr
- Page 65 and 66:
Chapter 3 ■ From DHTML to DOM Scr
- Page 67 and 68:
Chapter 3 ■ From DHTML to DOM Scr
- Page 69 and 70:
Variable and Function Scope Chapter
- Page 71 and 72:
Chapter 3 ■ From DHTML to DOM Scr
- Page 73 and 74:
Chapter 4 HTML and JavaScript In th
- Page 75 and 76:
Chapter 4 ■ HTML and JavaScript F
- Page 77 and 78:
Chapter 4 ■ HTML and JavaScript M
- Page 79 and 80:
Chapter 4 ■ HTML and JavaScript F
- Page 81 and 82:
Chapter 4 ■ HTML and JavaScript Y
- Page 83 and 84:
Chapter 4 ■ HTML and JavaScript I
- Page 85 and 86:
Chapter 4 ■ HTML and JavaScript T
- Page 87 and 88:
Chapter 4 ■ HTML and JavaScript H
- Page 89 and 90:
Chapter 4 ■ HTML and JavaScript w
- Page 91 and 92:
Chapter 4 ■ HTML and JavaScript T
- Page 93 and 94:
Changing Attributes of Elements Cha
- Page 95 and 96:
Chapter 4 ■ HTML and JavaScript 4
- Page 97 and 98:
Chapter 4 ■ HTML and JavaScript T
- Page 99 and 100:
Shortening Your Scripts via InnerHT
- Page 101 and 102:
DOMhelp: Your Own Helper Library Ch
- Page 103 and 104:
Chapter 4 ■ HTML and JavaScript w
- Page 105 and 106:
Chapter 5 Presentation and Behavior
- Page 107 and 108:
Chapter 5 ■ Presentation and Beha
- Page 109 and 110:
Chapter 5 ■ Presentation and Beha
- Page 111 and 112:
Chapter 5 ■ Presentation and Beha
- Page 113 and 114:
Chapter 5 ■ Presentation and Beha
- Page 115 and 116:
Chapter 5 ■ Presentation and Beha
- Page 117 and 118:
Chapter 5 ■ Presentation and Beha
- Page 119 and 120:
Chapter 5 ■ Presentation and Beha
- Page 121 and 122:
Chapter 5 ■ Presentation and Beha
- Page 123 and 124:
Chapter 5 ■ Presentation and Beha
- Page 125 and 126:
Chapter 5 ■ Presentation and Beha
- Page 127 and 128:
Chapter 5 ■ Presentation and Beha
- Page 129 and 130:
Chapter 5 ■ Presentation and Beha
- Page 131 and 132:
Chapter 5 ■ Presentation and Beha
- Page 133 and 134:
Chapter 5 ■ Presentation and Beha
- Page 135 and 136:
Chapter 5 ■ Presentation and Beha
- Page 137 and 138:
Chapter 5 ■ Presentation and Beha
- Page 139 and 140:
Chapter 5 ■ Presentation and Beha
- Page 141 and 142:
Chapter 5 ■ Presentation and Beha
- Page 143 and 144:
Chapter 5 ■ Presentation and Beha
- Page 145 and 146:
Chapter 5 ■ Presentation and Beha
- Page 147 and 148:
Chapter 5 ■ Presentation and Beha
- Page 149 and 150:
Chapter 5 ■ Presentation and Beha
- Page 151 and 152:
Chapter 5 ■ Presentation and Beha
- Page 153 and 154:
Chapter 6 Common Uses of JavaScript
- Page 155 and 156:
Chapter 6 ■ Common Uses of JavaSc
- Page 157 and 158:
Chapter 6 ■ Common Uses of JavaSc
- Page 159 and 160:
Chapter 6 ■ Common Uses of JavaSc
- Page 161 and 162:
Rollover Effects on Parent Elements
- Page 163 and 164:
Chapter 6 ■ Common Uses of JavaSc
- Page 165 and 166:
Embedded Slide Shows Chapter 6 ■
- Page 167 and 168:
Chapter 6 ■ Common Uses of JavaSc
- Page 169 and 170:
Chapter 6 ■ Common Uses of JavaSc
- Page 171 and 172:
Chapter 6 ■ Common Uses of JavaSc
- Page 173 and 174:
Chapter 6 ■ Common Uses of JavaSc
- Page 175 and 176:
Chapter 6 ■ Common Uses of JavaSc
- Page 177 and 178:
Chapter 6 ■ Common Uses of JavaSc
- Page 179 and 180:
Chapter 6 ■ Common Uses of JavaSc
- Page 181 and 182:
User Feedback Methods The user feed
- Page 183 and 184:
Chapter 6 ■ Common Uses of JavaSc
- Page 185 and 186:
Chapter 6 ■ Common Uses of JavaSc
- Page 187 and 188:
Chapter 6 ■ Common Uses of JavaSc
- Page 189 and 190:
Chapter 6 ■ Common Uses of JavaSc
- Page 191 and 192:
Chapter 6 ■ Common Uses of JavaSc
- Page 193 and 194:
Chapter 6 ■ Common Uses of JavaSc
- Page 195 and 196:
Chapter 6 ■ Common Uses of JavaSc
- Page 197 and 198:
Chapter 6 ■ Common Uses of JavaSc
- Page 199 and 200:
Chapter 6 ■ Common Uses of JavaSc
- Page 201 and 202:
Chapter 6 ■ Common Uses of JavaSc
- Page 203 and 204:
Chapter 7 ■ JavaScript and User I
- Page 205 and 206:
Chapter 7 ■ JavaScript and User I
- Page 207 and 208:
Chapter 7 ■ JavaScript and User I
- Page 209 and 210:
Chapter 7 ■ JavaScript and User I
- Page 211 and 212:
Chapter 7 ■ JavaScript and User I
- Page 213 and 214:
Chapter 7 ■ JavaScript and User I
- Page 215 and 216:
Chapter 7 ■ JavaScript and User I
- Page 217 and 218:
Chapter 7 ■ JavaScript and User I
- Page 219 and 220:
Chapter 7 ■ JavaScript and User I
- Page 221 and 222:
Chapter 7 ■ JavaScript and User I
- Page 223 and 224:
Chapter 7 ■ JavaScript and User I
- Page 225 and 226:
Chapter 7 ■ JavaScript and User I
- Page 227 and 228:
Chapter 7 ■ JavaScript and User I
- Page 229 and 230:
Chapter 7 ■ JavaScript and User I
- Page 231 and 232:
Chapter 7 ■ JavaScript and User I
- Page 233 and 234:
Chapter 7 ■ JavaScript and User I
- Page 235 and 236:
Chapter 7 ■ JavaScript and User I
- Page 237 and 238:
Chapter 7 ■ JavaScript and User I
- Page 239 and 240:
Chapter 7 ■ JavaScript and User I
- Page 241 and 242:
Chapter 7 ■ JavaScript and User I
- Page 243 and 244:
Chapter 7 ■ JavaScript and User I
- Page 245 and 246:
Chapter 7 ■ JavaScript and User I
- Page 247 and 248:
Chapter 7 ■ JavaScript and User I
- Page 249 and 250:
Chapter 8 Back-End Interaction with
- Page 251 and 252:
Chapter 8 ■ Back-End Interaction
- Page 253 and 254:
Chapter 8 ■ Back-End Interaction
- Page 255 and 256:
Chapter 8 ■ Back-End Interaction
- Page 257 and 258:
Chapter 8 ■ Back-End Interaction
- Page 259 and 260:
Chapter 8 ■ Back-End Interaction
- Page 261 and 262:
Replacing XML with JSON Chapter 8
- Page 263 and 264:
Chapter 8 ■ Back-End Interaction
- Page 265 and 266:
Chapter 8 ■ Back-End Interaction
- Page 267 and 268:
Chapter 8 ■ Back-End Interaction
- Page 269 and 270:
Chapter 8 ■ Back-End Interaction
- Page 271 and 272:
Chapter 8 ■ Back-End Interaction
- Page 273 and 274:
Chapter 8 ■ Back-End Interaction
- Page 275 and 276:
Chapter 8 ■ Back-End Interaction
- Page 277 and 278:
Chapter 8 ■ Back-End Interaction
- Page 279 and 280:
Summary Chapter 8 ■ Back-End Inte
- Page 281 and 282:
Chapter 9 ■ Data Validation Techn
- Page 283 and 284:
Chapter 9 ■ Data Validation Techn
- Page 285 and 286:
Chapter 9 ■ Data Validation Techn
- Page 287 and 288:
Chapter 9 ■ Data Validation Techn
- Page 289 and 290:
Chapter 9 ■ Data Validation Techn
- Page 291 and 292:
Chapter 9 ■ Data Validation Techn
- Page 293 and 294:
Chapter 9 ■ Data Validation Techn
- Page 295 and 296:
Chapter 9 ■ Data Validation Techn
- Page 297 and 298:
Chapter 10 Modern JavaScript Case S
- Page 299 and 300:
Chapter 10 ■ Modern JavaScript Ca
- Page 301 and 302:
Chapter 10 ■ Modern JavaScript Ca
- Page 303 and 304:
Chapter 10 ■ Modern JavaScript Ca
- Page 305 and 306:
Chapter 10 ■ Modern JavaScript Ca
- Page 307 and 308:
Chapter 10 ■ Modern JavaScript Ca
- Page 309 and 310:
Chapter 10 ■ Modern JavaScript Ca
- Page 311 and 312: Chapter 10 ■ Modern JavaScript Ca
- Page 313 and 314: Chapter 10 ■ Modern JavaScript Ca
- Page 315 and 316: Chapter 10 ■ Modern JavaScript Ca
- Page 317 and 318: Chapter 10 ■ Modern JavaScript Ca
- Page 319 and 320: Chapter 10 ■ Modern JavaScript Ca
- Page 321 and 322: Chapter 11 ■ Using Third-Party Ja
- Page 323 and 324: Chapter 11 ■ Using Third-Party Ja
- Page 325 and 326: Chapter 11 ■ Using Third-Party Ja
- Page 327 and 328: Chapter 11 ■ Using Third-Party Ja
- Page 329 and 330: Chapter 11 ■ Using Third-Party Ja
- Page 331 and 332: Chapter 11 ■ Using Third-Party Ja
- Page 333 and 334: Chapter 11 ■ Using Third-Party Ja
- Page 335 and 336: Chapter 11 ■ Using Third-Party Ja
- Page 337 and 338: Chapter 11 ■ Using Third-Party Ja
- Page 339 and 340: Chapter 11 ■ Using Third-Party Ja
- Page 341 and 342: Chapter 11 ■ Using Third-Party Ja
- Page 343 and 344: APPENDIX A ■ Debugging JavaScript
- Page 345 and 346: APPENDIX A ■ Debugging JavaScript
- Page 347 and 348: APPENDIX A ■ Debugging JavaScript
- Page 349 and 350: APPENDIX A ■ Debugging JavaScript
- Page 351 and 352: APPENDIX A ■ Debugging JavaScript
- Page 353 and 354: APPENDIX A ■ Debugging JavaScript
- Page 355 and 356: APPENDIX A ■ Debugging JavaScript
- Page 357 and 358: APPENDIX A ■ Debugging JavaScript
- Page 359 and 360: Index • A Anonymous function, 67
- Page 361: ■ Index • F Flash of unstyled c
- Page 365 and 366: Beginning JavaScript with DOM Scrip
- Page 367 and 368: For Dad. Thanks for Saturdays full
- Page 369 and 370: ■ Contents The Composite Data Typ
- Page 371 and 372: ■ Contents Slide Shows 160 Summar
- Page 373 and 374: ■ Contents ■■Chapter 10: Mode
- Page 375 and 376: About the Authors Russ Ferguson is
- Page 377: Acknowledgments I want to thank eve