Category: Javascript

Programming Windows 8 Apps with HTML, CSS, and JavaScript

Author Kraig Brockschmidt
Format PDF
Price free

This book is about writing Windows 8 apps in HTML, CSS, and JavaScript. The earlier chapters are indeed very specific to that particular choice of language and presentation layer, along with the Windows Library for JavaScript.

Somewhere around Chapters 7 and 8, however, we really begin to transition more into the WinRT APIs that are applicable to apps written in any language. I’m finding this especially true as I’m writing Chapter 13 on live tiles and notifications—very little of it, other than the code snippets, is unique to JavaScript, especially when talking about tile-updating web services written with server-side technologies like PHP and ASP.NET! My point in saying this is that while I’ve written this book ostensibly for web developers who are and will be looking to create apps for Windows 8 and the Windows Store, much of this book will also be very helpful to Windows 8 developers in general. And since it is a free ebook, you can’t lose!

Continue reading

Sams Teach Yourself JavaScript in 24 Hours

Sams Teach Yourself JavaScript in 24 Hours


Author Michael Moncur
Format online HTML
Price free

JavaScript is one of the easiest, most straightforward ways to enhance a Web site with interactivity.

Sams Teach Yourself JavaScript in 24 Hours serves as an easy-to-understand tutorial on both scripting basics and JavaScript itself. The book is written in a clear and personable style with an extensive use of practical, complete examples.

Readers will learn how to use JavaScript to enhance Web pages with interactive forms, objects, and cookies. They will also discover how to use JavaScript to work with games, animation, and multimedia.

Continue reading

Smooth CoffeeScript

My image
  • Author: Marijn Haverbeke.
  • Format: HTML
  • Price: free

Smooth CoffeeScript is a book about CoffeeScript and programming. Start with programming fundamentals, learn about functional programming with Underscore and problem solving, study object orientation and modularity. It covers client/server web apps with Canvas and WebSockets.

No previous programming knowledge is required. CoffeeScript lets you write web oriented applications simply and elegantly. It is closely related to JavaScript but without its quirky corners. Together with the JavaScript Basics supplement you can learn both at once.

Chapters include:

  • Introduction
  • Basic CoffeeScript
  • Functions
  • Data Structures
  • Error Handling
  • Functional Programming
  • Searching
  • Object Orientation
  • Regular Expressions
  • Modularity
  • Language Extras
  • Binary Heaps
  • Performance
  • Command Line Utility
  • Language Reference
  • Reserved Words
  • Underscore
  • QuickCheck
  • Additional Words

jQuery Fundamentals

My image
  • Author: Rebecca Murphey
  • Format: online HTML
  • Price: free

jQuery is fast becoming a must-have skill for front-end developers. The purpose of this book is to provide an overview of the jQuery JavaScript library; when you’re done with the book, you should be able to complete basic tasks using  jQuery, and have a solid basis from which to continue your learning. This book was designed as material to be used in a classroom setting, but you may find it useful for individual study.

Chapters include:

  • Introduction
  • JavaScript Basics
  • jQuery Basics
  • jQuery Core
  • Events
  • Effects
  • Ajax
  • Plugins
  • Custom Events
  • Code Organization
  • Performance Best Practices

Read the book: jQuery Fundamentals

JavaScript Basics

My image
  • Author: Marijn Haverbeke
  • Format: Markdown, PDF, HTML
  • Price: free

JavaScript is a rich and expressive language in its own right. This book covers the basic concepts of JavaScript, as well as some frequent pitfalls for people who have not used JavaScript before. While it will be of particular value to people with no programming experience, even people who have used other programming languages may benefit from learning about some of the peculiarities of JavaScript.

Chapters include:

  • Overview
  • Syntax Basics
  • Basic Operators
  • Operations on Numbers & Strings
  • Logical Operators
  • Comparison Operators
  • Conditional Code
  • Truthy and Falsy Things
  • Conditional Variable Assignment with The Ternary Operator
  • Switch Statements
  • The for loop
  • The while loop
  • The do-while loop
  • Breaking and continuing
  • Reserved Words
  • Arrays
  • Objects
  • Using Functions
  • Self-Executing Anonymous Functions
  • Functions as Arguments
  • Testing Type
  • The this keyword
  • Scope
  • Closures

Eloquent JavaScript: A Modern Introduction to Programming

My image
  • Author: Marijn Haverbeke
  • Format: online HTML, archived HTML
  • Price: free

Eloquent JavaScript is a book providing an introduction to the JavaScript programming language and programming in general.

Chapters include:

  • Introduction
  • Basic JavaScript: values, variables, and control flow
  • Functions
  • Data structures: Objects and Arrays
  • Error Handling
  • Functional Programming
  • Searching
  • Object-oriented Programming
  • Modularity
  • Regular Expressions
  • Web programming: A crash course
  • The Document-Object Model
  • Browser Events
  • HTTP requests

Felix’s Node.js Guide

  • Author: Felix Geisendörfer
  • Format: online HTML
  • Price: free

Felix Geisendörfer’s (an early node.js core contributor) opinionated and unofficial guide to help people getting started in Node.js.

Continue reading

The Node Beginner Book

My image
  • Author: Manuel Kiessling
  • Format: online HTML
  • Price: free

The aim of this document is to get you started with developing applications with Node.js, teaching you everything you need to know about “advanced” JavaScript along the way. It goes way beyond your typical “Hello World” tutorial.

It is intended for people that are experienced with at least one object-oriented language like Ruby, Python, PHP or Java, only little experience with JavaScript, and completely new to Node.js.

NOTE: There is an offer to purchase a PDF, ePub, or MOBI edition bundle containing this book and Pedro Teixeira’s more in depth book Hands-on Node.js on the page. Scroll past it to read the free online HTML version of The Node Beginner Book.

Chapters include:

  • JavaScript and Node.js
    • JavaScript and You
    • A word of warning
    • Server-side JavaScript
    • “Hello World”
  • A full blown web application with Node.js
    • The use cases
    • The application stack
  • Building the application stack
    • A basic HTTP server
    • Analyzing our HTTP server
    • Passing functions around
    • How function passing makes our HTTP server work
    • Event-driven callbacks
    • How our server handles requests
    • Finding a place for our server module
    • What’s needed to “route” requests?
    • Execution in the kingdom of verbs
    • Routing to real request handlers
    • Making the request handlers respond
    • o How to not do it
    • o Blocking and non-blocking
    • o Responding request handlers with non-blocking operations
    • Serving something useful
    • o Handling POST requests
    • o Handling file uploads
    • Conclusion and outlook

Eloquent JavaScript: A Modern Introduction to Programming

My image
  • Author: Marijn Haverbeke
  • Format: interactive HTML, zipped HTML, single page HTML, PDF
  • Price: free

Besides explaining JavaScript, this book tries to be an introduction to the basic principles of programming. Programming, it turns out, is hard. The fundamental rules are, most of the time, simple and clear. But programs, while built on top of these basic rules, tend to become complex enough to introduce their own rules, their own complexity. Because of this, programming is rarely simple or predictable. As Donald Knuth, who is something of a founding father of the field, says, it is an art.

To get something out of this book, more than just passive reading is required. Try to stay sharp, make an effort to solve the exercises, and only continue on when you are reasonably sure you understand the material that came before.

Chapters include:

  • Introduction
  • Basic JavaScript: values, variables, and control flow
  • Functions
  • Data structures: Objects and Arrays
  • Error Handling
  • Functional Programming
  • Searching
  • Object-oriented Programming
  • Modularity
  • Regular Expressions
  • Web programming: A crash course
  • The Document-Object Model
  • Browser Events
  • HTTP requests
  • More (obscure) control structures
  • Binary Heaps

The Web Book

My image
  • Author: Robert Schifreen
  • Format: PDF download (click the blue download button)
  • Price: Free for personal use

The Web Book is a complete 330-page book that tells you how to create a Web site from scratch. It covers everything from registering a domain name and renting some hosting space, to creating your first HTML page, to building full online database applications with PHP and MySQL. You can download The Web Book as a PDF file completely free of charge for personal use.

Contents include:

  • About The Web Book
  • Our Choice of Web Host
  • Licensing The Web Book
  • A Custom Edition For Your Company
  • Who’s Written This Book?  And Why?
  • Why We’re Here
  • From Word Processor to Web Site
  • How long should all this take?
  • What Is a Web Site Anyway?
  • How the Web Works
  • Domain Names
  • The Simple Option
  • The Flexible Option
  • About Web Content
  • Do you need a development server?
  • Getting Everything Together
  • Our Domain Name and Hosting
  • It’s Not Rude to Point
  • Our HTML Editor and FTP Client
  • Amaya
  • Make A Web Work Folder
  • Filezilla
  • Creating Your First Web Page
  • Now step away from the computer!
  • Keep On Reading
  • WWW – What, Why, Who?
  • Importing Existing Content
  • Writing For The Web
  • Fonts and Colours
  • Hyperlinks
  • Linking to Other Sites
  • Mailto: Links
  • Understanding The Basics of HTML
  • Meta tags
  • HTML and Privacy
  • Validating your HTML
  • A Bit More about Accessibility
  • Cascading Style Sheets
  • About DOCTYPEs
  • Getting Started with CSS
  • A Word About Fonts
  • Classes
  • Making Styles Work For You
  • HTML Tags Names
  • A Better CSS Editor
  • ID-based Styles
  • Extreme CSS
  • Page Layouts and Div Tags
  • The CSS Box Model
  • Pictures On Pages
  • About Image Sizes
  • Pictures As Links
  • Finding Images to Use on Your Site
  • A Browser Icon for your Site
  • The Short Cut to Great Web Pages
  • Using an Open Source Design
  • Tweaking the Text
  • Changing the Pictures
  • Changing the CSS Styles
  • Which Style Is This?
  • Adding Pages and Navigation
  • Uploading the Finished Files
  • Rules, Tables and Image Maps
  • Rules
  • Tables
  • Image Maps
  • Password-Protecting your Web Pages
  • The .htaccess File
  • The .htpasswd File
  • Protecting Multiple Folders
  • CMSes and Other Software
  • CMSes and Templates
  • Automatic Installers
  • Try Before You Install
  • A Word about Patching
  • Setting Up A Database
  • General Installation Procedures
  • Uninstalling
  • Joomla
  • Uploading the Files
  • Configuring Joomla
  • Your New Joomla Site
  • WordPress
  • Downloading the Software
  • Make a Database
  • Configure WordPress
  • Upload The Software
  • Final Configuration
  • phpBB
  • File Permissions
  • Plogger
  • Getting Started
  • The Installation Process
  • Uploading Your Pictures
  • Avoiding Data Overload
  • Installing the PSPad Editor
  • Javascript
  • Choose Your Side
  • Javascript and Semicolons
  • Email Address Obfuscation
  • Why Upload?
  • Security and Cookies
  • Morning All!
  • Getting the Screen Size
  • Javascript Toolkits and Frameworks
  • Finding Out More
  • MySQL and Web Databases
  • Databases, Tables, Fields, Rows and Columns
  • Normalization
  • Referential Integrity
  • Creating A Database
  • Using phpMyAdmin
  • Creating The Customers Table
  • Inserting Some Data
  • Querying the Customers Table
  • Introducing PHP
  • Don’t Panic
  • Your First PHP Program
  • Some More PHP
  • Random Numbers
  • Sending Email with PHP
  • Passing Information to PHP
  • Don’t Forget to Sanitize
  • Loop the Loop
  • Arrays
  • User-Defined Functions
  • HTML Forms
  • Creating a Form with Amaya
  • Naming the Form Objects
  • Handling Form Data in PHP
  • Testing The Form
  • Other Types of Form Data
  • Checkbox Arrays
  • Feedback Forms
  • Hidden Fields
  • Accessing MySQL Databases with PHP
  • Counting Rows
  • Reading Data
  • Searching A Table
  • About SQL Injection Attacks
  • Adding Data to a Table
  • Editing a Data Record
  • Deleting Data
  • Putting it All Together
  • Debugging and Global Variables
  • Syntax Errors
  • Coding Errors
  • The $_SERVER Variables
  • The Structure of a PHP Application
  • Web Servers and the Real World
  • Putting the App Together
  • Saving State
  • How to Back Up your Web Site
  • Don’t Forget the Database
  • Restoring Lost Information
  • Finance and Marketing Issues
  • Promoting Your Site
  • Making Money
  • Accepting Online Payments
  • Managing your Marketing
  • Search Engine Optimisation
  • SEO Tips
  • Keeping the Crawlers Away
  • If at First you Don’t Succeed, Pay
  • The End.  So, What Now
  • Appendix A – Building a Test Server
  • Our Goal
  • First Install the OS
  • Some Useful Commands
  • Get Updated
  • Test Your Web Server
  • Install the Telnet Server
  • An ftp server
  • Webmin
  • Webalizer
  • PHP and MySQL

Get the book: The Web Book

Dive Into Greasemonkey

  • Author: Mark Pilgrim
  • Format: online HTML, archived HTML, archived PDF, archived plain text, Palm OS, archived video demonstrations
  • Price: free

Greasemonkey is a Firefox extension that allows you to write scripts that alter the web pages you visit. You can use it to make a web site more readable or more usable. You can fix rendering bugs that the site owner can’t be bothered to fix themselves. You can alter pages so they work better with assistive technologies that speak a web page out loud or convert it to Braille. You can even automatically retrieve data from other sites to make two sites more interconnected.

There is a huge repository of user scripts that do all kinds of amazing things at
But Firefox isn’t the only browser that you can write these scripts for. There is also a macro for K-Meleon called GreaseMeleon, that will allow that browser to use Greasemonkey scripts, too. And there is even a way to use them in Google’s Chrome browser. (instructions)

All this is great if all you want to do is use Greasemonkey scripts, but what if you want to write your own? That’s where Dive Into Greasemonkey can help.

It takes you step-by-step from explaining what Greasemonkey is, installing it into Firefox, installing user scripts, to actually writing and debugging your own. Chock full of information that will help the beginner and expert, alike.

Dive into Greasemonkey is a valuable reference for anyone that wants to truly unleash the power of user scripts.

Chapters include:

  • What is Greasemonkey?
  • Installing Greasemonkey
  • Installing a user script
  • Managing your user scripts
  • Hello World
  • Describing your user script with metadata
  • Coding your user script
  • Editing your user script
  • Debugging User Scripts
  • Tracking crashes with JavaScript Console
  • Logging with GM_log
  • Inspecting elements with DOM Inspector
  • Evaluating expressions with Javascript Shell
  • Other debugging tools
  • Executing a user script on a domain and all its subdomains
  • Testing whether a Greasemonkey function is available
  • Testing whether a page includes an HTML element
  • Doing something for every HTML element
  • Doing something for every instance of a specific HTML element
  • Doing something for every element with a certain attribute
  • Inserting content before an element
  • Inserting content after an element
  • Removing an element
  • Replacing an element with new content
  • Inserting complex HTML quickly
  • Adding images without hitting a central server
  • Adding CSS styles
  • Getting an element’s style
  • Setting an element’s style
  • Post-processing a page after it renders
  • Matching case-insensitive attribute values
  • Getting the current domain name
  • Rewriting links
  • Redirecting pages
  • Intercepting user clicks
  • Overriding a built-in Javascript method
  • Parsing XML
  • Case Studies
  • Case study: GMail Secure
  • Case study: Bloglines Autoload
  • Case study: Ain’t It Readable
  • Case study: Offsite Blank
  • Case study: Dumb Quotes
  • Case study: Frownies
  • Case study: Zoom Textarea
  • Case study: Access Bar
  • Storing and retrieving persistent data
  • Adding items to the menubar
  • Integrating data from other sites
  • Compiling your user script into an extension
  • Greasemonkey API Reference
  • GM_log – log messages to the JavaScript Console
  • GM_getValue – get script-specific configuration value
  • GM_setValue – set script-specific configuration value
  • GM_registerMenuCommand – add a menu item to the User Script Commands submenu
  • GM_xmlhttpRequest – make an arbitrary HTTP request
  • List of “further reading” links
  • List of tips
  • List of examples
  • List of procedures

Visit: Dive Into Greasemonkey