JavaScript & jQuery: the missing manual; the book that should have been in the box
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Buch |
Sprache: | English |
Veröffentlicht: |
Sebastopol, CA
O'Reilly
2012
|
Ausgabe: | 2. ed. |
Schlagworte: | |
Online-Zugang: | Inhaltstext Inhaltsverzeichnis |
Beschreibung: | XVI, 518 S. Ill., graph. Darst. |
ISBN: | 9781449399023 1449399029 |
Internformat
MARC
LEADER | 00000nam a2200000 c 4500 | ||
---|---|---|---|
001 | BV039905902 | ||
003 | DE-604 | ||
005 | 20121008 | ||
007 | t | ||
008 | 120222s2012 ad|| |||| 00||| eng d | ||
015 | |a 11,N45 |2 dnb | ||
016 | 7 | |a 1016633238 |2 DE-101 | |
020 | |a 9781449399023 |c : EUR 38.00 (DE) (freier Pr.) |9 978-1-449-3-9902-3 | ||
020 | |a 1449399029 |9 1-449-39902-9 | ||
035 | |a (OCoLC)761927095 | ||
035 | |a (DE-599)DNB1016633238 | ||
040 | |a DE-604 |b ger |e rakddb | ||
041 | 0 | |a eng | |
049 | |a DE-1051 |a DE-92 |a DE-83 |a DE-1049 |a DE-523 |a DE-355 | ||
082 | 0 | |a 005.133 |2 23 | |
084 | |a ST 250 |0 (DE-625)143626: |2 rvk | ||
084 | |a ST 253 |0 (DE-625)143628: |2 rvk | ||
084 | |a 004 |2 sdnb | ||
100 | 1 | |a McFarland, David Sawyer |e Verfasser |4 aut | |
245 | 1 | 0 | |a JavaScript & jQuery |b the missing manual; the book that should have been in the box |c David Sawyer McFarland |
246 | 1 | 3 | |a JavaScript and jQuery |
250 | |a 2. ed. | ||
264 | 1 | |a Sebastopol, CA |b O'Reilly |c 2012 | |
300 | |a XVI, 518 S. |b Ill., graph. Darst. | ||
336 | |b txt |2 rdacontent | ||
337 | |b n |2 rdamedia | ||
338 | |b nc |2 rdacarrier | ||
650 | 0 | 7 | |a JavaScript |0 (DE-588)4420180-1 |2 gnd |9 rswk-swf |
650 | 0 | 7 | |a jQuery |0 (DE-588)7681087-2 |2 gnd |9 rswk-swf |
689 | 0 | 0 | |a jQuery |0 (DE-588)7681087-2 |D s |
689 | 0 | 1 | |a JavaScript |0 (DE-588)4420180-1 |D s |
689 | 0 | |5 DE-604 | |
856 | 4 | 2 | |m X:MVB |q text/html |u http://deposit.dnb.de/cgi-bin/dokserv?id=3868792&prov=M&dok_var=1&dok_ext=htm |3 Inhaltstext |
856 | 4 | 2 | |m HBZ Datenaustausch |q application/pdf |u http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=024764655&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |3 Inhaltsverzeichnis |
943 | 1 | |a oai:aleph.bib-bvb.de:BVB01-024764655 |
Datensatz im Suchindex
_version_ | 1805146145190576128 |
---|---|
adam_text |
Titel: JavaScript and jQuery
Autor: McFarland, David Sawyer
Jahr: 2012
Table of Contents
The Missing Credits. xiii
Introduction. 1
Part One: Getting Started with JavaScript
Chapter 1: Writing Your First JavaScript Program. 21
Introducing Programming. 22
What's a Computer Program?. 24
How to Add JavaScript to a Page. 25
External JavaScript Files. 27
Your First JavaScript Program. 29
Writing Text on a Web Page. 31
Attaching an External JavaScript File. 33
Tracking Down Errors. 34
The Firefox JavaScript Console. 35
Displaying the Internet Explorer 9 Console. 37
Opening the Chrome JavaScript Console. 38
Accessing the Safari Error Console. 39
Chapter 2: The Grammar of JavaScript. 41
Statements. 41
Built-in Functions. 42
Types of Data. 42
Numbers. 43
Strings. 43
Booleans. 44
Variables. 45
Creating a Variable. 45
Using Variables. 48
Working with Data Types and Variables . 50
Basic Math. 50
The Order of Operations. 51
Combining Strings. 51
Combining Numbers and Strings. 52
Changing the Values in Variables. 53
Tutorial: Using Variables to Create Messages. 55
Tutorial: Asking for Information. 57
Arrays. 59
Creating an Array. 60
Accessing Items in an Array. 62
Adding Items to an Array. 63
Deleting Items from an Array. 66
Tutorial: Writing to a Web Page Using Arrays. 66
A Quick Object Lesson. 70
Comments. 72
When to Use Comments. 73
Comments in This Book. 74
Chapter 3: Adding Logic and Control to Your Programs. 77
Making Programs React Intelligently. 77
Conditional Statement Basics. 79
Adding a Backup Plan. 82
Testing More Than One Condition. 83
More Complex Conditions. 86
Nesting Conditional Statements. 88
Tips for Writing Conditional Statements. 88
Tutorial: Using Conditional Statements. 89
Handling Repetitive Tasks with Loops. 93
While Loops. 93
Loops and Arrays. 95
For Loops. 97
Do/While Loops. 98
Functions: Turn Useful Code Into Reusable Commands. 100
Mini-Tutorial. 101
Giving Information to Your Functions. 102
Retrieving Information from Functions. 104
Keeping Variables from Colliding. 105
Tutorial: A Simple Quiz. 108
Part Two: Getting Started with/Query
Chapter 4: Introducing jQuery. 117
About JavaScript Libraries. 117
Getting jQuery. 119
Adding jQuery to a Page. 122
Modifying Web Pages: An Overview. 124
Understanding the Document Object Model. 127
VI TABLE OF CONTENTS
Selecting Page Elements: The jQuery Way. 129
Basic Selectors. 130
Advanced Selectors. 133
jQuery Filters. 135
Understanding jQuery Selections. 136
Adding Content to a Page. 138
Replacing and Removing Selections. 140
Setting and Reading Tag Attributes. 141
Classes. 142
Reading and Changing CSS Properties. 143
Changing Multiple CSS Properties at Once. 144
Reading, Setting, and Removing HTML Attributes. 146
Acting on Each Element in a Selection. 147
Anonymous Functions. 148
this and $(this). 149
Automatic Pull Quotes. 150
Overview. 151
Programming. 152
Chapter 5: Action/Reaction: Making Pages Come
Alive with Events. 157
What Are Events?. 157
Mouse Events. 159
Document/Window Events. 160
Form Events. 161
Keyboard Events. 162
Using Events the jQuery Way. 162
Tutorial: Introducing Events. 165
More jQuery Event Concepts. 169
Waiting for the HTML to Load. 169
jQuery Events. 171
The Event Object. 173
Stopping an Event's Normal Behavior. 175
Removing Events. 175
Advanced Event Management. 177
Other Ways to Use the bindO Function. 179
Tutorial: A One-Page FAQ. 180
Overview of the Task. 180
The Programming. 180
Chapter 6: Animations and Effects. 185
jQuery Effects. 185
Basic Showing and Hiding. 187
Fading Elements In and Out. 187
Sliding Elements. 188
TABLE OF CONTENTS vK
Tutorial: Login Slider. 190
The Programming. 191
Animations. 192
Easing. 194
Performing an Action After an Effect Is Completed. 196
Tutorial: Animated Dashboard. 198
The Programming. 200
Part Three: Building Web Page Features
Chapter 7: Improving Your Images.207
Swapping Images. 207
Changing an Image's src Attribute. 208
Preloading Images. 209
Rollover Images. 210
Tutorial: Adding Rollover Images. 211
Overview of the Task. 212
The Programming. 213
Tutorial: Photo Gallery with Effects. 216
Overview of Task. 217
The Programming. 218
Advanced Gallery with jQuery FancyBox. 222
The Basics. 223
Creating a Gallery of Images. 225
Customizing FancyBox. 226
Tutorial: FancyBox Photo Gallery. 231
Chapter 8: Improving Navigation.235
Some Link Basics. 235
Selecting Links with JavaScript. 235
Determining a Link's Destination. 236
Don't Follow That Link. 237
Opening External Links in a New Window. 238
Creating New Windows. 240
Window Properties. 241
Opening Pages in a Window on the Page. 245
Tutorial: Opening a Page Within a Page. 248
Basic, Animated Navigation Bar. 249
The HTML. 250
The CSS. 252
The JavaScript. 253
The Tutorial. 254
VIII TABLE OF CONTENTS
Chapter 9: Enhancing Web Forms.257
Understanding Forms 257
Selecting Form Elements 259
Getting and Setting the Value of a Form Element 261
Determining Whether Buttons and Boxes Are Checked 262
Form Events 265
Adding Smarts to Your Forms 268
Focusing the First Field in a Form 268
Disabling and Enabling Fields 269
Hiding and Showing Form Options 271
Tutorial Basic Form Enhancements 272
Focusing a Field 275
Disabling Form Fields 273
Hiding Form Fields 276
Form Validation 278
iQuery Validation Plug in 2A0
Basic Validation 281
Advanced Validation 284
Styling Error Messages 290
Validation Tutorial 291
Basic Validation 292
Advanced Validation 294
Validating Checkboxes and Radio Buttons 297
Formatting the Error Messages 299
Chapter 10: Expanding Your Interface.301
Organizing Information in Tabbed Panels 301
The HTML 302
The CSS 304
The JavaScript 306
Tabbed Panels Tutorial 307
Adding a Content Slider to Your Site 312
Using AnythingSlider 313
AnythingSlider Tutorial 314
Customizing the Slider Appearance 316
Customizing the Slider Behavior 318
Determining the Size and Position of Page Elements 319
Determining the Height and Width of Elements 319
Determining the Position of Elements on a Page 322
Determining a Page's Scrolling Position 324
Adding Tooltips 326
The HTML 326
The CSS 328
The JavaScript 328
Tooltips Tutorial 329
IAIH I ( ONII NIS Ix
Part Four: Ajax: Communication with the Web Server
Chapter 11: Introducing Ajax.341
WhatlsAjax?. 342
Ajax: The Basics. 343
Pieces of the Puzzle. 344
Talking to the Web Server. 346
Ajax the jQuery Way. 349
Using the loadO Function. 349
Tutorial: The loadO Function. 352
The getO and postO Functions. 356
Formatting Data to Send to the Server. 357
Processing Data from the Server. 360
Handling Errors. 364
Tutorial: Using the getO Function. 365
JSON. 370
Accessing JSON Data. 372
Complex JSON Objects. 373
Chapter 12: Flickr and Google Maps.377
Introducing JSONP. 377
Adding a Flickr Feed to Your Site. 378
Constructing the URL. 379
Using the $.geUSON0 Function. 381
Understanding the Flickr JSON Feed. 381
Tutorial: Adding Flickr Images to Your Site. 383
Adding Google Maps to Your Site. 387
Setting a Location for the Map. 390
Other GoMap Options. 391
Adding Markers. 393
Adding Information Windows to Markers. 397
GoMap Tutorial. 397
Part Five: Tips, Tricks, and Troubleshooting
Chapter 13: Getting the Most from jQuery. 403
Useful jQuery Tips and Information. 403
$0 Is the Same as jQueryO. 403
Saving Selections Into Variables. 404
Adding Content as Few Times as Possible. 405
Optimizing Your Selectors. 406
Using the jQuery Docs. 407
Reading a Page on the jQuery Docs Site. 411
Traversing the DOM. 413
More Functions For Manipulating HTML. 419
Advanced Event Handling. 421
TABLE OF CONTENTS
Chapter 14: Going Further with JavaScript. 425
Working with Strings. 425
Determining the Length of a String 425
Changing the Case of a String 426
Searching a String: indexOfQ Technique 427
Extracting Part of a String with sliceQ 428
Finding Patterns in Strings. 430
Creating and Using a Basic Regular Expression 431
Building a Regular Expression 432
Grouping Parts of a Pattern 435
Useful Regular Expressions 436
Matching a Pattern 441
Replacing Text 443
Trying Out Regular Expressions 444
Working with Numbers 445
Changing a String to a Number. 445
Testing for Numbers 447
Rounding Numbers. 448
Formatting Currency Values. 448
Creating a Random Number. 449
Dates and Times. 450
Getting the Month. 451
Getting the Day of the Week. 452
Getting the Time. 452
Creating a Date Other Than Today. 456
Putting It All Together. 457
Using External JavaScript Files. 457
Writing More Efficient JavaScript. 459
Putting Preferences in Variables. 460
Ternary Operator. 461
The Switch Statement. 462
Creating Fast-Loading JavaScript. 465
Chapter 15: Troubleshooting and Debugging. 467
Top JavaScript Programming Mistakes. 467
Non-Closed Pairs. 467
Quotation Marks. 472
Using Reserved Words. 472
Single Equals in Conditional Statements. 473
Case-Sensitivity. 473
Incorrect Path to External JavaScript File. 474
Incorrect Paths Within External JavaScript Files 474
Disappearing Variables and Functions. 476
Debugging with Firebug. 477
Installing and Turning On Firebug. 477
Viewing Errors with Firebug 478
TABLE OF CONTENTS Xi
Using consoleJogO to Track Script Progress. 479
Tutorial: Using the Firebug Console. 481
More Powerful Debugging. 485
Debugging Tutorial. 489
Appendix A: JavaScript Resources.497
Index.503
XII TABLE OF CONTENTS |
any_adam_object | 1 |
author | McFarland, David Sawyer |
author_facet | McFarland, David Sawyer |
author_role | aut |
author_sort | McFarland, David Sawyer |
author_variant | d s m ds dsm |
building | Verbundindex |
bvnumber | BV039905902 |
classification_rvk | ST 250 ST 253 |
ctrlnum | (OCoLC)761927095 (DE-599)DNB1016633238 |
dewey-full | 005.133 |
dewey-hundreds | 000 - Computer science, information, general works |
dewey-ones | 005 - Computer programming, programs, data, security |
dewey-raw | 005.133 |
dewey-search | 005.133 |
dewey-sort | 15.133 |
dewey-tens | 000 - Computer science, information, general works |
discipline | Informatik |
edition | 2. ed. |
format | Book |
fullrecord | <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>00000nam a2200000 c 4500</leader><controlfield tag="001">BV039905902</controlfield><controlfield tag="003">DE-604</controlfield><controlfield tag="005">20121008</controlfield><controlfield tag="007">t</controlfield><controlfield tag="008">120222s2012 ad|| |||| 00||| eng d</controlfield><datafield tag="015" ind1=" " ind2=" "><subfield code="a">11,N45</subfield><subfield code="2">dnb</subfield></datafield><datafield tag="016" ind1="7" ind2=" "><subfield code="a">1016633238</subfield><subfield code="2">DE-101</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9781449399023</subfield><subfield code="c">: EUR 38.00 (DE) (freier Pr.)</subfield><subfield code="9">978-1-449-3-9902-3</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">1449399029</subfield><subfield code="9">1-449-39902-9</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(OCoLC)761927095</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-599)DNB1016633238</subfield></datafield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">DE-604</subfield><subfield code="b">ger</subfield><subfield code="e">rakddb</subfield></datafield><datafield tag="041" ind1="0" ind2=" "><subfield code="a">eng</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">DE-1051</subfield><subfield code="a">DE-92</subfield><subfield code="a">DE-83</subfield><subfield code="a">DE-1049</subfield><subfield code="a">DE-523</subfield><subfield code="a">DE-355</subfield></datafield><datafield tag="082" ind1="0" ind2=" "><subfield code="a">005.133</subfield><subfield code="2">23</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">ST 250</subfield><subfield code="0">(DE-625)143626:</subfield><subfield code="2">rvk</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">ST 253</subfield><subfield code="0">(DE-625)143628:</subfield><subfield code="2">rvk</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">004</subfield><subfield code="2">sdnb</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">McFarland, David Sawyer</subfield><subfield code="e">Verfasser</subfield><subfield code="4">aut</subfield></datafield><datafield tag="245" ind1="1" ind2="0"><subfield code="a">JavaScript & jQuery</subfield><subfield code="b">the missing manual; the book that should have been in the box</subfield><subfield code="c">David Sawyer McFarland</subfield></datafield><datafield tag="246" ind1="1" ind2="3"><subfield code="a">JavaScript and jQuery</subfield></datafield><datafield tag="250" ind1=" " ind2=" "><subfield code="a">2. ed.</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">Sebastopol, CA</subfield><subfield code="b">O'Reilly</subfield><subfield code="c">2012</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">XVI, 518 S.</subfield><subfield code="b">Ill., graph. Darst.</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="b">txt</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="b">n</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="b">nc</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">JavaScript</subfield><subfield code="0">(DE-588)4420180-1</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">jQuery</subfield><subfield code="0">(DE-588)7681087-2</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="689" ind1="0" ind2="0"><subfield code="a">jQuery</subfield><subfield code="0">(DE-588)7681087-2</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="0" ind2="1"><subfield code="a">JavaScript</subfield><subfield code="0">(DE-588)4420180-1</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="0" ind2=" "><subfield code="5">DE-604</subfield></datafield><datafield tag="856" ind1="4" ind2="2"><subfield code="m">X:MVB</subfield><subfield code="q">text/html</subfield><subfield code="u">http://deposit.dnb.de/cgi-bin/dokserv?id=3868792&prov=M&dok_var=1&dok_ext=htm</subfield><subfield code="3">Inhaltstext</subfield></datafield><datafield tag="856" ind1="4" ind2="2"><subfield code="m">HBZ Datenaustausch</subfield><subfield code="q">application/pdf</subfield><subfield code="u">http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=024764655&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA</subfield><subfield code="3">Inhaltsverzeichnis</subfield></datafield><datafield tag="943" ind1="1" ind2=" "><subfield code="a">oai:aleph.bib-bvb.de:BVB01-024764655</subfield></datafield></record></collection> |
id | DE-604.BV039905902 |
illustrated | Illustrated |
indexdate | 2024-07-21T00:25:15Z |
institution | BVB |
isbn | 9781449399023 1449399029 |
language | English |
oai_aleph_id | oai:aleph.bib-bvb.de:BVB01-024764655 |
oclc_num | 761927095 |
open_access_boolean | |
owner | DE-1051 DE-92 DE-83 DE-1049 DE-523 DE-355 DE-BY-UBR |
owner_facet | DE-1051 DE-92 DE-83 DE-1049 DE-523 DE-355 DE-BY-UBR |
physical | XVI, 518 S. Ill., graph. Darst. |
publishDate | 2012 |
publishDateSearch | 2012 |
publishDateSort | 2012 |
publisher | O'Reilly |
record_format | marc |
spelling | McFarland, David Sawyer Verfasser aut JavaScript & jQuery the missing manual; the book that should have been in the box David Sawyer McFarland JavaScript and jQuery 2. ed. Sebastopol, CA O'Reilly 2012 XVI, 518 S. Ill., graph. Darst. txt rdacontent n rdamedia nc rdacarrier JavaScript (DE-588)4420180-1 gnd rswk-swf jQuery (DE-588)7681087-2 gnd rswk-swf jQuery (DE-588)7681087-2 s JavaScript (DE-588)4420180-1 s DE-604 X:MVB text/html http://deposit.dnb.de/cgi-bin/dokserv?id=3868792&prov=M&dok_var=1&dok_ext=htm Inhaltstext HBZ Datenaustausch application/pdf http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=024764655&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA Inhaltsverzeichnis |
spellingShingle | McFarland, David Sawyer JavaScript & jQuery the missing manual; the book that should have been in the box JavaScript (DE-588)4420180-1 gnd jQuery (DE-588)7681087-2 gnd |
subject_GND | (DE-588)4420180-1 (DE-588)7681087-2 |
title | JavaScript & jQuery the missing manual; the book that should have been in the box |
title_alt | JavaScript and jQuery |
title_auth | JavaScript & jQuery the missing manual; the book that should have been in the box |
title_exact_search | JavaScript & jQuery the missing manual; the book that should have been in the box |
title_full | JavaScript & jQuery the missing manual; the book that should have been in the box David Sawyer McFarland |
title_fullStr | JavaScript & jQuery the missing manual; the book that should have been in the box David Sawyer McFarland |
title_full_unstemmed | JavaScript & jQuery the missing manual; the book that should have been in the box David Sawyer McFarland |
title_short | JavaScript & jQuery |
title_sort | javascript jquery the missing manual the book that should have been in the box |
title_sub | the missing manual; the book that should have been in the box |
topic | JavaScript (DE-588)4420180-1 gnd jQuery (DE-588)7681087-2 gnd |
topic_facet | JavaScript jQuery |
url | http://deposit.dnb.de/cgi-bin/dokserv?id=3868792&prov=M&dok_var=1&dok_ext=htm http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=024764655&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |
work_keys_str_mv | AT mcfarlanddavidsawyer javascriptjquerythemissingmanualthebookthatshouldhavebeeninthebox AT mcfarlanddavidsawyer javascriptandjquery |