JavaScript Testing Beginner's Guide - Test and debug JavaScript the easy way

by Newebug 23. October 2010 07:49

JavaScript Testing Beginner's Guide  - Test and debug JavaScript the easy way
by Liang Yuxian Eugene

ISBN: 978-1-849510-00-4

JavaScript Testing Beginner's Guide  - Test and debug JavaScript the easy way

About the Author
  Liang Yuxian Eugene enjoys solving difficult problems creatively in the form of building web applications by using Python/Django and JavaScript/JQuery. He also enjoys doing research related to the areas of recommendation algorithms, link analysis, data visualization, data mining, information retrieval, business intelligence, and intelligent user interfaces. He is currently pursuing two degrees, Business Administration and Computer Science at National Cheng Chi University (NCCU) at Taipei, Taiwan. Eugene has recently started a personal blog at http://www.liangeugene.com.

Preface
  JavaScript is an important part of web development in today's Web 2.0 world. Although there are many JavaScript frameworks in the market, learning to write, test, and debug JavaScript without the help of any framework will make you a better JavaScript developer. However, testing and debugging can be time-consuming, tedious and painful. This book will ease your woes by providing various testing strategies, advice, and tool guides that will make testing smooth and easy.
  This book is organized in an easy-to-follow, step-by-step tutorial style, in order to maximize your learning. You will first learn about the different types of errors that you will most often encounter as a JavaScript developer. You will also learn the most essential features of JavaScript through our easy-to-follow examples.
  As you go along, you will learn how to write better JavaScript code through validation; learning how to write validated code alone will help you improve tremendously as a JavaScript developer and, most importantly, help you to write JavaScript code that runs better, faster, and with less bugs.
  As our JavaScript program gets larger, we need better ways of testing our JavaScript code. You will learn about various testing concepts and how to use them in your test plan. After which, you will learn how to implement the test plan for your code. To accommodate more complex JavaScript code, you will learn more about the built-in features of JavaScript, in order to identify and catch different types of JavaScript error; such information helps to
spot the root of the problem so that you can act on it.
  Finally, you will learn how to make use of the built-in browser tools and other external tools to automate your testing process.

Who this book is for
  This book is for beginner JavaScript programmers or beginner programmers who may have little experience in using JavaScript, with HTML and CSS.

Download JavaScript Testing Beginner's Guide:

javascript-testing-beginners-guide.rar (2.37 MB)


Tags:

Javascript

JavaScript Patterns

by Newebug 23. October 2010 07:31

JavaScript Patterns
by Stoyan Stefanov

ISBN: 978-0-596-80675-0

JavaScript Patterns

Target Audience
  This book is not a beginner’s book; it’s targeted at professional developers and programmers who want to take their JavaScript skills to the next level.
  Some of the basics (like loops, conditionals, and closures) are not discussed at all. If you find you need to brush up on some of those topics, refer to the list of suggested reading:

  At the same time, some topics (such as object creation or hoisting) may look too basic to be in this book, but they are discussed from a patterns perspective and, in my opinion, are critical to harnessing the power of the language. If you’re looking for best practices and powerful patterns to help you write better, maintainable, robust JavaScript code, this book is for you.

Introduction
  JavaScript is the language of the Web. It started as a way to manipulate a few selected types of elements in a web page (such as images and form fields), but it has grown tremendously. In addition to client-side browser scripting, these days you can use JavaScript to program for an increasing variety of platforms. You can write server-side code (using .NET or Node.js), desktop applications (that work on all operating systems) and application extensions (e.g., for Firefox or Photoshop), mobile applications, and command-line scripts.
  JavaScript is also an unusual language. It doesn’t have classes, and functions are firstclass objects used for many tasks. Initially the language was considered deficient by many developers, but in more recent years these sentiments have changed. Interestingly, languages such as Java and PHP started adding features such as closures and anonymous functions, which JavaScript developers have been enjoying and taking for granted for a while.
  JavaScript is dynamic enough that you can make it look and feel like another language you’re already comfortable with. But the better approach is to embrace its differences and study its specific patterns.

Download JavaScript Patterns:

javascript-patterns.rar (2.83 MB)


Tags:

Javascript

Pro PHP and jQuery

by Newebug 11. October 2010 14:58

Pro PHP and jQuery - Add quick, smooth, and easy interactivity to your PHP sites with jQuery
by Jason Lengstorf

ISBN-13 (pbk): 978-1-4302-2847-9
ISBN-13 (electronic): 978-1-4302-2848-6

Pro PHP and jQuery

About the Author
  Jason Lengstorf is a web designer and developer based in Big Sky country. He specializes in content management software using PHP, MySQL, AJAX, and web standards.
  He spends most of his time running Ennui Design: a collection of web designers and developers from all over the world specializing in premium custom websites. In his off hours, he runs a clothing company called Humblecock? and tries to make time for hobbies including golf, travel, and hunting down new beers.

Contents at a Glance
About the Author xii
About the Technical Reviewer xiii
Acknowledgements xiv
PART 1: Getting Comfortable with jQuery 1
 1: Introducing jQuery 3
 2: Common jQuery Actions and Methods 25
PART 2: Getting Into Advanced PHP Programming 85
 3: Object-Oriented Programming 87
 4: Build an Events Calendar 119
 5: Add Controls to Create, Edit, and Delete Events 167
 6: Password Protecting Sensitive Actions and Areas 199
PART 3: Combining jQuery with PHP Applications 233
 7: Enhancing the User Interface with jQuery 235
 8: Editing the Calendar with AJAX and jQuery 263
PART 4: Advancing jQuery and PHP 309
 9: Performing Form Validation with Regular Expressions 311
 10: Extending jQuery 345
Index 361

Introduction
  1 Getting Comfortable with jQuery
  In the first part of this book, you’ll be getting familiar with the history and basic capabilities of jQuery. By the end of this section, you will have a general grasp on the overarching concepts behind jQuery, and—after you’ve revisited object-oriented PHP in Part 2—you’ll be ready to tackle the exercises in Part 3 (where you actually start building a real-world project with jQuery and PHP).
  2 Getting Into Advanced PHP Programming
  At this point, you’re going to put your new jQuery knowledge aside for a bit and focus on the backend using PHP. Part 2 teaches you how to plan and implement an objectoriented backend solution for an events calendar that you will later enhance using your new knowledge of jQuery. This book assumes you have a reasonably sound grasp on the basic concepts of PHP (variables, functions, the basic language constructs); to brush up on your PHP basics, check out PHP for Absolute Beginners (Apress, 2009).
  3 Combining jQuery with PHP Applications
  With the calendar running properly, you can now enhance the application with jQuery to improve the user experience. In the following chapters, you’ll create a layer of JavaScript that will sit on top of your app to add AJAX functionality.
  4 Advancing jQuery and PHP
  At this point, you've got a functional calendar application. However, there are some things that you could add to improve the user experience, such as form validation. This part of the book will also cover advanced techniques such as validating user input with regular expressions and building custom jQuery plugins.

Download Pro PHP and jQuery:

pro-php-and-jquery.rar (7.87 MB)


Tags:

Javascript | PHP

Beginning JavaScrip Fourth Edition

by Newebug 10. October 2010 10:58

Beginning JavaScrip Fourth Edition
by Paul Wilton, Jeremy McPeak

ISBN: 978-0-470-52593-7

Beginning JavaScrip Fourth Edition

About the Authors
  Paul Wilton started as a Visual Basic applications programmer at the Ministry of Defense in the UK and then found himself pulled into the Net. Having joined an Internet development company, he spent three years helping create Internet solutions. He’s now running his own successful and rapidly growing company developing online holiday property reservation systems.
  Jeremy McPeak is a self-taught programmer who began his career by tinkering with web sites in 1998. He is the co-author of Professional Ajax, 2nd Edition (Wiley 2007) and several online articles covering topics such as XSLT, ASP.NET WebForms, and C#. He is currently employed in an energy-based company building in-house conventional and web applications.

Whom This Book Is For
  To get the most out of this book, you’ll need to have an understanding of HTML and how to create a static web page. You don’t need to have any programming experience. This book will also suit you if you have some programming experience already and would like to turn your hand to web programming. You will know a fair amount about computing concepts, but maybe not as much about web technologies.
  Alternatively, you may have a design background and know relatively little about the web and computing concepts. For you, JavaScript will be a cheap and relatively easy introduction to the world of programming and web application development.
  Whoever you are, we hope that this book lives up to your expectations.

What This Book Covers
  You’ll begin by looking at exactly what JavaScript is, and taking your fi rst steps with the underlying language and syntax. You’ll learn all the fundamental programming concepts, including data and data types, and structuring your code to make decisions in your programs or to loop over the same piece of code many times.
  Once you’re comfortable with the basics, you’ll move on to one of the key ideas in JavaScript — the object. You’ll learn how to take advantage of the objects that are native to the JavaScript language, such as dates and strings, and fi nd out how these objects enable you to manage complex data and simplify your programs. Next, you’ll see how you can use JavaScript to manipulate objects made available to you in the browser, such as forms, windows, and other controls. Using this knowledge, you can start to create truly professional-looking applications that enable you to interact with the user.
  Long pieces of code are very hard to get right every time — even for the experienced programmer — and JavaScript code is no exception. You look at common syntax and logical errors, how you can spot them, and how to use the JavaScript debuggers for Firefox, Internet Explorer, Safari/Chrome, and Opera to aid you with this task. Also, you need to examine how to handle the errors that slip through the net, and ensure that these do not detract from the experience of the end user of your application.
  From here, you’ll move on to more advanced topics, such as using cookies and jazzing up your web pages with dynamic HTML and XML. Finally, you’ll be looking at a relatively new and exciting technology: Ajax. This allows your JavaScript in a HTML page to communicate directly with a server, and useful for, say, looking up information on a database sitting on your server. If you have the Google toolbar you’ll have seen something like this in action already. When you type a search word in the Google toolbar, it comes up with suggestions, which it gets via the Google search database.
  Finally, you’ll explore some of the time saving JavaScript frameworks such as jQuery, Prototype, and MooTools and seeing how they work and how they can help you create sophisticated JavaScript powered applications.
  All the new concepts introduced in this book will be illustrated with practical examples, which enable you to experiment with JavaScript and build on the theory that you have just learned. You’ll fi nd four appendixes at the end of the book. Appendix A provides solutions to the exercises included at the end of most chapters throughout the book. The remaining appendixes contain the reference material that your authors hope you fi nd useful and informational. Appendix B contains the JavaScript language’s core reference. Appendix C contains a complete W3C DOM Core reference — as well as information on the HTML DOM and DOM Level 2 Event model. Appendix D contains the decimal and hexadecimal character codes for the Latin-1 character set.

Table of Content
Introduction xxv
 1: Introduction to JavaScript and the Web 1
 2: Data Types and Variables 17
 3: Decisions, Loops, and Functions 51
 4: Common Mistakes, Debugging, and Error Handling 87
 5: JavaScript — An Object-Based Language 133
 6: Programming the Browser 189
 7: HTML Forms: Interacting with the User 219
 8: Windows and Frames 263
 9: String Manipulation 301
 10: Date, Time, and Timers 347
 11: Storing Information: Cookies 367
 12: Dynamic HTML and the W3C Document Object Model 391
 13: Using ActiveX and Plug-Ins with JavaScript 469
 14: Ajax 491
 15: JavaScript Frameworks 527
Appendix A: Answers to Exercises 591
Appendix B: JavaScript Core Reference 665
Appendix C: W3C DOM Reference 697
Appendix D: Latin-1 Character Set 725
Index 733

Downlaod: Beginning JavaScrip Fourth Edition

beginning-javascript.rar (4.94 MB)


Tags:

Javascript

The JavaScript PocketGuide

by Newebug 7. September 2010 13:52

The JavaScript PocketGuide
by Lenny Burdette

ISBN-13: 978-0-321-70095-7
ISBN-10: 0-321-70095-3

The JavaScript PocketGuide

About the Author
  In the seventh grade, Lenny Burdette checked out the book Teach Yourself HTML in 24 Hours from the public library, and the rest, as they say, is history. Since graduating from UCLA, Burdette has worked at Schematic in Los Angeles, California, where he is the reigning Guitar Hero champion. Schematic (http://www.schematic.com) is a digital marking agency that has given him opportunities to develop JavaScript for Web sites, e-commerce platforms, TV, and mobile.

Who Should Read This Book
  You’ll need a solid foundation of HTML and CSS because there’s little room to explain either of those languages in this book. Ideally, you’ve seen JavaScript before; maybe you’ve even copied some code from an online tutorial into your blog. If you’re coming from a different programming background, I’ll briefly touch on the factors that make JavaScript fairly unique among popular languages today.

What’s in This Book
  The fi rst half of this book (Chapters 1–8) begins with some basics followed by explanations of the fundamental parts of the language. You won’t learn too many practical uses of JavaScript until the second half (Chapters 9–17), which covers programming Web pages and contains in-depth tutorials for a variety of tasks. Throughout the chapters and code examples, I emphasize the important concepts more than the minute details, but you’ll also be able to take much of this code and use it in your own sites right away.

The JavaScript PocketGuide Download:

the-javascript-pocket-guide.rar (1.25 MB)


Tags:

Javascript

Comments

Comment RSS

About

新网虫电子书重出江湖,分享计算机编程电子书下载。