1. Trang chủ
  2. » Công Nghệ Thông Tin

Advanced JavaScript, Third Edition pot

617 371 2

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 617
Dung lượng 5,69 MB

Nội dung

[...]... Introduction The Third Edition Several things have been updated in this book First, the text in general has been updated due to changes in the Internet and web development since the last edition I have also dropped a few items that are outdated (such as hiding scripts from older browsers) and expanded coverage of topics like the Document Object Model I think this book is even better than the last edition, ... Resources 582 Index 584 Acknowledgments n xxi Acknowledgments This book was a wonderful project and one I was eager to do for some time The first two editions of Advanced JavaScript had been well received, but it was time for an update I would like to take the time to thank several people who were indispensable in making this project happen: Tim McEvoy and... Math-Related Functions parseInt() parseFloat() eval() Math Examples Creating a Curve drawBlank(num) drawDot() getRadian(deg) getSpot(deg) get3DigitNum(num) printDeg(deg) drawLine(deg) drawCurve(lastDeg, jump) Global Statements General Plotting Utility root(a, b) logab(a, b) factorial(a)... basic knowledge or requiring a refresher course, Appendix A is a basic HTML primer that will teach you all of the skills you will need How to Read This Book As the title suggests, this book focuses on advanced JavaScript programming and has the experienced JavaScript programmer in mind However, the first few chapters and Appendix A do provide basic primers on both HTML and JavaScript Those with limited... that take a long time to find are almost invariably simple mistakes Warning for Programmers If your programming experience has been in strictly procedural languages such as C and Pascal, hold on tight JavaScript, like Java, is object oriented This will be a whole new approach to programming for you But not to worry—this book will walk you through it step by step However, if you are an experienced object-oriented... throughout most of this book We will, in a much later chapter, look at editors that make writing JavaScript much easier; however, you can certainly write JavaScript without the use of such editors With JavaScript, an HTML page might contain a form that processes data on the client side A server-side JavaScript might pull data out of a relational database and format it in HTML on the fly A page might... that run on both the client and the server Chapter 1 Introduction to JavaScript 6 n Chapter 1 Who Can Benefit from JavaScript? Generally speaking, the people who visit your web site benefit most from JavaScript, because they have the opportunity to enjoy the language’s capabilities in the form of games, animation, interaction, and so forth Netscape Communications benefited from JavaScript early on,... JavaScript is tightly connected to browser objects, including forms and their elements; therefore, it provides a great amount of control over forms Form validation is one of the most common applications of JavaScript, and one we will certainly be using in this book A classic form-related script is one that validates a form’s fields before it is submitted and cancels the submission to the server if an error... configuration script, which is actually a JavaScript code The JavaScript code is located in a text file on the server but is not compiled like server-side JavaScript As you can see, there is plenty to do with JavaScript, and JavaScript is now one of the most important languages for web development We will cover the most important implementations of the language in this book JavaScript and Java JavaScript Resembles . alt="" Advanced JavaScript ™ Third Edition Chuck Easttom Wordware Publishing, Inc. Library of Congress Cataloging-in-Publication Data Easttom, Chuck. Advanced. 195 Creating a Curve 195 drawBlank(num) 198 drawDot() 198 getRadian(deg) 199 getSpot(deg) 199 get3DigitNum(num) 199 printDeg(deg) 200 drawLine(deg) 200 drawCurve(lastDeg,

Ngày đăng: 06/03/2014, 00:21

TỪ KHÓA LIÊN QUAN