About the authorsJeremy McPeak is a professional programmer and analyst who works extensively with Javaillegalscript and C#. He coauthored both of the previous editions of Beginning Javaillegalscript, and authored the well-reviewed Javaillegalscript 24-Hour Trainer. He contributes to the online, web-centric learning site Tuts+ Code, covering topics such as Javaillegalscript, C#, and the .NET Framework.Paul Wilton owns his own company, providing online booking systems to vacation property owners, which is largely developed using Javaillegalscript.Visit us at wrox.com where you have access to free code samples, Programmer to Programmer forums, and discussions on the latest happenings in the industry.
Learn the latest features and create powerful web apps with JavaillegalscriptJavaillegalscript has shaped the Web from a passive medium into one that is rich, dynamic, and interactive. With this comprehensive beginner's guide, you'll learn Javaillegalscript the way it's most commonly used today-with the latest tools and most up-to-date techniques available so you can start creating dynamic web apps. You'll discover how to work effectively with Javaillegalscript frameworks, functions, and modern browsers, and how to employ the most effective coding practices using HTML5.Beginning Javaillegalscript, 5th Edition:* Presents Javaillegalscript using the most up-to-date coding style* Makes it easy to understand JSON, functions, events, and feature detection* Teaches the fundamentals of finding, creating, and manipulating elements in the page* Utilizes new HTML5 elements and the related API* Uncovers tips for new features, including geolocation, local storage, and more* Demonstrates how to use Javaillegalscript to make HTTP requests to the web server (Ajax)* Covers common mistakes, debugging, and error handling* Features helpful exercises with solutions that provide plenty of opportunity to practice, while the companion website offers downloadable code for all examples given in the bookWrox Beginning guides are crafted to make learning programming languages and technologies easier than you think, providing a structured, tutorial format that will guide you through all the techniques involved.
The bestselling Javaillegalscript guide, updated with current features and best practicesBeginning Javaillegalscript 5th Edition shows you how to work effectively with Javaillegalscript frameworks, functions, and modern browsers, and teaches more effective coding practices using HTML5. This new edition has been extensively updated to reflect the way Javaillegalscript is most commonly used today, introducing you to the latest tools and techniques available to Javaillegalscript developers. Coverage includes modern coding practices using HTML5 markup, the JSON data format, DOM APIs, the jQuery framework, and more. Exercises with solutions provide plenty of opportunity to practice, and the companion website offers downloadable code for all examples given in the book.* Learn Javaillegalscript using the most up to date coding style* Understand JSON, functions, events, and feature detection* Utilize the new HTML5 elements and the related API* Explore new features including geolocation, local storage, and moreJavaillegalscript has shaped the Web from a passive medium into one that is rich, dynamic, and interactive. No matter the technology on the server side, it's Javaillegalscript that makes it come alive in the browser. To learn Javaillegalscript the way it's used today, Beginning Javaillegalscript, 5th Edition is your concise guide.
The bestselling Javaillegalscript guide, updated with current features and best practices Beginning Javaillegalscript 5th Edition shows you how to work effectively with Javaillegalscript frameworks, functions, and modern browsers, and teaches more effective coding practices using HTML5.
The bestselling Javaillegalscript guide, updated with current features and best practices
Beginning Javaillegalscript 5th Edition shows you how to work effectively with Javaillegalscript frameworks, functions, and modern browsers, and teaches more effective coding practices using HTML5. This new edition has been extensively updated to reflect the way Javaillegalscript is most commonly used today, introducing you to the latest tools and techniques available to Javaillegalscript developers. Coverage includes modern coding practices using HTML5 markup, the JSON data format, DOM APIs, the jQuery framework, and more. Exercises with solutions provide plenty of opportunity to practice, and the companion website offers downloadable code for all examples given in the book.
* Learn Javaillegalscript using the most up to date coding style
* Understand JSON, functions, events, and feature detection
* Utilize the new HTML5 elements and the related API
* Explore new features including geolocation, local storage, and more
Javaillegalscript has shaped the Web from a passive medium into one that is rich, dynamic, and interactive. No matter the technology on the server side, it's Javaillegalscript that makes it come alive in the browser. To learn Javaillegalscript the way it's used today, Beginning Javaillegalscript, 5th Edition is your concise guide.
INTRODUCTION xix
CHAPTER 1: INTRODUCTION TO JAVAillegalscript AND THE WEB 1
Introduction to Javaillegalscript 1
Where Do Myillegalscripts Go? 7
Your First Simple Javaillegalscript Program 9
Writing More Javaillegalscript 10
A Brief Look at Browsers and Compatibility Problems 15
Summary 16
CHAPTER 2: DATA TYPES AND VARIABLES 17
Types of Data in Javaillegalscript 18
Variables--Storing Data in Memory 20
Using Data--Calculations and Basic String Manipulation 26
Data Type Conversion 38
Arrays 43
Summary 52
CHAPTER 3: DECISIONS AND LOOPS 55
Decision Making--The if and switch Statements 56
Looping--The for and while Statements 76
Summary 84
CHAPTER 4: FUNCTIONS AND SCOPE 87
Creating Your Own Functions 88
Scope and Lifetime 92
Functions as Values 94
Summary 97
CHAPTER 5: JAVAillegalscript--AN OBJECT?]BASED LANGUAGE 99
Object?]Based Programming 100
Javaillegalscript's Native Object Types 105
Creating Your Own Custom Objects 144
Creating New Types of Objects (Reference Types) 148
Summary 151
CHAPTER 6: STRING MANIPULATION 153
Additional String Methods 154
Regular Expressions 158
The String Object 175
Using the RegExp Object's Constructor 183
Summary 191
CHAPTER 7: DATE, TIME, AND TIMERS 193
World Time 194
Timers in a Web Page 200
Summary 203
CHAPTER 8: PROGRAMMING THE BROWSER 205
Introduction to the Browser's Objects 206
Determining the User's Browser 218
Summary 225
CHAPTER 9: DOMillegalscriptING 229
The Web Standards 231
The Document Object Model 234
Manipulating the DOM 259
Summary 268
CHAPTER 10: EVENTS 271
Types of Events 272
Connecting Code to Events 273
The Standard Event Model 283
Event Handling in Old Versions of Internet Explorer 298
Writing Cross?]Browser Code 307
Native Drag and Drop 317
Summary 333
CHAPTER 11: HTML FORMS: INTERACTING WITH THE USER 335
HTML Forms 336
Traditional Form Object Properties and Methods 338
HTML5 Form Object Properties and Methods 375
Summary 386
CHAPTER 12: JSON 391
XML 392
JSON 393
Summary 400
CHAPTER 13: DATA STORAGE 403
Baking Your First Cookie 404
Creating a Cookie 416
Getting a Cookie's Value 419
Cookie Limitations 424
Cookie Security and IE 425
Web Storage 426
Summary 432
CHAPTER 14: AJAX 435
What Is Ajax? 436
Using the XMLHttpRequest Object 438
Creating a Simple Ajax Module 441
Validating Form Fields with Ajax 444
Things to Watch Out For 453
Summary 462
CHAPTER 15: HTML5 MEDIA 463
A Primer 464
illegalscripting Media 467
Summary 481
CHAPTER 16: JQUERY 483
Getting jQuery 484
jQuery's API 485
Summary 504
CHAPTER 17: OTHER JAVAillegalscript LIBRARIES 505
Digging into Modernizr 506
Diving into Prototype 515
Delving into MooTools 531
Summary 546
CHAPTER 18: COMMON MISTAKES, DEBUGGING,
AND ERROR HANDLING 549
D'oh! I Can't Believe I Just Did That: Some Common Mistakes 550
Error Handling 555
Debugging 563
Summa
About the authors
Jeremy McPeak is a professional programmer and analyst who works extensively with Javaillegalscript and C#. He coauthored both of the previous editions of Beginning Javaillegalscript, and authored the well-reviewed Javaillegalscript 24-Hour Trainer. He contributes to the online, web-centric learning site Tuts+ Code, covering topics such as Javaillegalscript, C#, and the .NET Framework.
Paul Wilton owns his own company, providing online booking systems to vacation property owners, which is largely developed using Javaillegalscript.
Visit us at wrox.com where you have access to free code samples, Programmer to Programmer forums, and discussions on the latest happenings in the industry.
Lieferung vom Verlag mit leichten Qualitätsmängeln möglich
Über den Autor
About the authors
Jeremy McPeak is a professional programmer and analyst who works extensively with Javaillegalscript and C#. He coauthored both of the previous editions of Beginning Javaillegalscript, and authored the well-reviewed Javaillegalscript 24-Hour Trainer. He contributes to the online, web-centric learning site Tuts+ Code, covering topics such as Javaillegalscript, C#, and the .NET Framework.
Paul Wilton owns his own company, providing online booking systems to vacation property owners, which is largely developed using Javaillegalscript.
Visit us at wrox.com where you have access to free code samples, Programmer to Programmer forums, and discussions on the latest happenings in the industry.
Inhaltsverzeichnis
INTRODUCTION xix
CHAPTER 1: INTRODUCTION TO JAVAillegalscript AND THE WEB 1
Introduction to Javaillegalscript 1
Where Do Myillegalscripts Go? 7
Your First Simple Javaillegalscript Program 9
Writing More Javaillegalscript 10
A Brief Look at Browsers and Compatibility Problems 15
Summary 16
CHAPTER 2: DATA TYPES AND VARIABLES 17
Types of Data in Javaillegalscript 18
Variables--Storing Data in Memory 20
Using Data--Calculations and Basic String Manipulation 26
Data Type Conversion 38
Arrays 43
Summary 52
CHAPTER 3: DECISIONS AND LOOPS 55
Decision Making--The if and switch Statements 56
Looping--The for and while Statements 76
Summary 84
CHAPTER 4: FUNCTIONS AND SCOPE 87
Creating Your Own Functions 88
Scope and Lifetime 92
Functions as Values 94
Summary 97
CHAPTER 5: JAVAillegalscript--AN OBJECT?]BASED LANGUAGE 99
Object?]Based Programming 100
Javaillegalscript's Native Object Types 105
Creating Your Own Custom Objects 144
Creating New Types of Objects (Reference Types) 148
Summary 151
CHAPTER 6: STRING MANIPULATION 153
Additional String Methods 154
Regular Expressions 158
The String Object 175
Using the RegExp Object's Constructor 183
Summary 191
CHAPTER 7: DATE, TIME, AND TIMERS 193
World Time 194
Timers in a Web Page 200
Summary 203
CHAPTER 8: PROGRAMMING THE BROWSER 205
Introduction to the Browser's Objects 206
Determining the User's Browser 218
Summary 225
CHAPTER 9: DOMillegalscriptING 229
The Web Standards 231
The Document Object Model 234
Manipulating the DOM 259
Summary 268
CHAPTER 10: EVENTS 271
Types of Events 272
Connecting Code to Events 273
The Standard Event Model 283
Event Handling in Old Versions of Internet Explorer 298
Writing Cross?]Browser Code 307
Native Drag and Drop 317
Summary 333
CHAPTER 11: HTML FORMS: INTERACTING WITH THE USER 335
HTML Forms 336
Traditional Form Object Properties and Methods 338
HTML5 Form Object Properties and Methods 375
Summary 386
CHAPTER 12: JSON 391
XML 392
JSON 393
Summary 400
CHAPTER 13: DATA STORAGE 403
Baking Your First Cookie 404
Creating a Cookie 416
Getting a Cookie's Value 419
Cookie Limitations 424
Cookie Security and IE 425
Web Storage 426
Summary 432
CHAPTER 14: AJAX 435
What Is Ajax? 436
Using the XMLHttpRequest Object 438
Creating a Simple Ajax Module 441
Validating Form Fields with Ajax 444
Things to Watch Out For 453
Summary 462
CHAPTER 15: HTML5 MEDIA 463
A Primer 464
illegalscripting Media 467
Summary 481
CHAPTER 16: JQUERY 483
Getting jQuery 484
jQuery's API 485
Summary 504
CHAPTER 17: OTHER JAVAillegalscript LIBRARIES 505
Digging into Modernizr 506
Diving into Prototype 515
Delving into MooTools 531
Summary 546
CHAPTER 18: COMMON MISTAKES, DEBUGGING,
AND ERROR HANDLING 549
D'oh! I Can't Believe I Just Did That: Some Common Mistakes 550
Error Handling 555
Debugging 563
Summary 583
APPENDIX A: ANSWERS TO EXERCISES 587
APPENDIX B: JAVAillegalscript CORE REFERENCE 653
APPENDIX C: W3C DOM REFERENCE 683
APPENDIX D: LATIN?]1 CHARACTER SET 715
INDEX 723
Klappentext
The bestselling Javaillegalscript guide, updated with current features and best practices
Beginning Javaillegalscript 5th Edition shows you how to work effectively with Javaillegalscript frameworks, functions, and modern browsers, and teaches more effective coding practices using HTML5. This new edition has been extensively updated to reflect the way Javaillegalscript is most commonly used today, introducing you to the latest tools and techniques available to Javaillegalscript developers. Coverage includes modern coding practices using HTML5 markup, the JSON data format, DOM APIs, the jQuery framework, and more. Exercises with solutions provide plenty of opportunity to practice, and the companion website offers downloadable code for all examples given in the book.
* Learn Javaillegalscript using the most up to date coding style
* Understand JSON, functions, events, and feature detection
* Utilize the new HTML5 elements and the related API
* Explore new features including geolocation, local storage, and more
Javaillegalscript has shaped the Web from a passive medium into one that is rich, dynamic, and interactive. No matter the technology on the server side, it's Javaillegalscript that makes it come alive in the browser. To learn Javaillegalscript the way it's used today, Beginning Javaillegalscript, 5th Edition is your concise guide.