JavaScript Novice To Ninja.pdf
(
9665 KB
)
Pobierz
Summary of Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxv
1. Hello JavaScript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2. Programming Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3. Arrays, Logic, and Loops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
4. Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
5. Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
6. The Document Object Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
7. Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183
8. Forms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
9. The Window Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
10. Testing and Debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
11. Functional JavaScript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 291
12. Object-oriented Programming in JavaScript . . . . . . . . . . . . . . . . . . . . . . . 327
13. Ajax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 377
14. HTML5 APIs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 399
15. Organizing Your Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 427
16. Next Steps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 461
JAVASCRIPT:
NOVICE TO
NINJA
BY
DARREN JONES
iv
JavaScript: Novice to Ninja
by Darren Jones
Copyright
©
2014 SitePoint Pty. Ltd.
Product Manager:
Simon Mackie
Technical Editor:
Craig Buckler
English Editor:
Kelly Steele
Cover Designer:
Alex Walker
Notice of Rights
All rights reserved. No part of this book may be reproduced, stored in a retrieval system or transmitted
in any form or by any means, without the prior written permission of the publisher, except in the case
of brief quotations embodied in critical articles or reviews.
Notice of Liability
The author and publisher have made every effort to ensure the accuracy of the information herein.
However, the information contained in this book is sold without warranty, either express or implied.
Neither the authors and SitePoint Pty. Ltd., nor its dealers or distributors will be held liable for any
damages to be caused either directly or indirectly by the instructions contained in this book, or by the
software or hardware products described herein.
Trademark Notice
Rather than indicating every occurrence of a trademarked name as such, this book uses the names only
in an editorial fashion and to the benefit of the trademark owner with no intention of infringement of
the trademark.
Published by SitePoint Pty. Ltd.
48 Cambridge Street Collingwood
VIC Australia 3066
Web: www.sitepoint.com
Email: business@sitepoint.com
ISBN 978-0-9924612-2-5 (print)
ISBN 978-0-9924612-1-8 (ebook)
Printed and bound in the United States of America
v
About Darren Jones
Darren has been playing around with programming and building websites for over a decade.
He wrote the SitePoint book
Jump Start Sinatra,
and also produced the
Getting Started With
Ruby
video tutorials for Learnable, as well as writing a number of articles published on
SitePoint.
In recent years, having seen just how powerful the language can be, Darren has started to use
JavaScript much more heavily. He believes that JavaScript will be the most important pro-
gramming language to learn in the future.
About SitePoint
SitePoint specializes in publishing fun, practical, and easy-to-understand content for web
professionals. Visit http://www.sitepoint.com/ to access our blogs, books, newsletters, articles,
and community forums. You’ll find a stack of information on JavaScript, PHP, Ruby, mobile
development, design, and more.
Plik z chomika:
razorek02
Inne pliki z tego folderu:
JavaScript Novice To Ninja.pdf
(9665 KB)
Inne foldery tego chomika:
100 Excel VBA Macros
CSS Master by Tiffany B.Brown
Czasopisma
Dom Nocy
HTML & CSS For The Real World
Zgłoś jeśli
naruszono regulamin