The definitive keyword reference for the JavaScript scripting language
Javascript References
-
Web Scraping JavaScript Rendered Content
HTML parsers like jsoup only see the raw page source and are completely unaware of any content that is added to the DOM via JavaScript. Rob Gravelle shows us how to automate the Chrome headless browser from a Python script.
-
Modify jQuery Autocomplete Widget Response Data
Rob Gravelle shows us how to customize the jQuery Autocomplete widget's menu content and appearance using the response event and _renderItem extension point.
-
The Advantages of Backwards Iteration as Demonstrated in JavaScript
There have been many of exchanges between JS developers on the efficacy of backwards looping versus the usual forward kind. The purpose of this tutorial is not to put every loop type to the test. Rather, Rob Gravelle describes what kind of scenario might logically benefit from backwards iteration and how to recognize such a situation should you come across one in the future.
-
Display JSON Data Using the JsRender Template Engine
In the JavaScript Template Engines article, we learned how Template Engines help us separate HTML from JavaScript. In this tutorial, Rob Gravelle shows us how to insert a JSON array of names into our HTML document using only three lines of JS code.
-
Intro to JavaScript Template Engines
Remember back in classic ASP how you were able to insert server data into the page using special <%= %> tags? JavaScript has gotten to the point now where it is capable of utilizing the same technique, using one of the many outstanding JavaScript templating libraries. Rob Gravelle explains how these libraries work and provides some code examples.
-
The 2017 Guide to Polyfills
The Internet landscape changes in so many ways and with such rapidity that it seldom remains static for any length of time. So too with the world of Polyfills. Rob Gravelle presents specialized Polyfills for CSS and ECMAScript 2015, as well as libraries that tailor Polyfills to the browser.
-
Build a Birthday Countdown Calculator using Moment.js
In this follow-up to the Formatting JavaScript Date Intervals into Years, Months, Weeks, and Days article, Rob Gravelle describes how to construct an HTML5 form that provides detailed information about a person's age and birthdays based on their date of birth.
-
Formatting JavaScript Date Intervals into Years, Months, Weeks, and Days
Rob Gravelle describes how to express time intervals in terms of weeks, months, and years using the moment.js JavaScript library.
-
Code and Deploy a Simple Angular 2 Application in Eclipse
The time has come to code our first Angular 2 app, all be it the ubiquitous Hello World app, it will provide a familiarity with the parts and steps required to create a full blown Angular 2 application.
-
Developing Angular 2 Apps In Eclipse
Along with many new features, Angular 2 incorporates many changes that developers have been asking for. Rob Gravelle walks you through the steps to create a node.js-driven Angular 2 app in Eclipse.
-
Working with Large JSON Data Sets in Android
Working with large JSON data sets in Android can be challenging because it only allocates so much memory to your applications. Rob Gravelle shows us how to parse a JSON-formatted stream without loading the entire JSON structure into memory using the Gson library.
-
Asynchronous Programming in ECMAScript 6
Released in 2015, ECMAScript 6 standardizes the usage of promises. Rob Gravelle shows us how to use promises to have our functions return their results asynchronously.
-
Class Member Encapsulation in JavaScript: Method Hiding
In a recent article we built on our Person class from the introduction article by adding a prototype interface, created a variable scope using a closure, as well as added constructor arguments and default values. Today we'll be moving on to method hiding, which comes with its own caveats and challenges.
-
Javascript Functors Explained
A JavaScript functor is a sort of interface that defines a behavior. In this article, excerpted from Functional Programming in JavaScript, I will explain just what this means.
-
Implement a Dynamic toString() using JavaBeans Introspection
In the Building a Better toString() Method tutorial, we utilized Java's powerful Reflection API to create a generic toString() that displayed an object's declared fields and their values. Rob Gravelle demonstrates another way to achieve the same result using the JavaBeans API.
-
New ECMAScript 2015 Features: Object Literals to Destructuring Assignments
In this second installment of a two-part series on ECMAScript 2015 (ES6), Rob Gravelle talks about the new-and-improved object literals as well as destructuring assignments.
-
New ECMAScript 2015 Features: Arrows to Tail Calls
The General Assembly of Ecma International recently announced the approval of the ECMAScript 6 Language Specification. In part 1 of a two-part series, Rob Gravelle presents some of the exciting new additions to the JS language.
-
Mapping XML Feed Fields with jQuery
In the Parsing XML Feeds with jQuery article, Rob Gravelle introduced a script that loaded an Atom feed from the current location and extracted each entry's address fields. In today's follow-up, he maps the address fields into a new format and displays a side-by-side comparison of the original and transformed fields.
-
A Guide to JavaScript Fuzzy Search Libraries
Blame it on Google, but today's web surfers expect the search process to know what they mean even when they themselves aren't sure that they are looking for. That's where fuzzy searching comes in. Rob Gravelle reviews a few such libraries for JavaScript.
-
Set the Font for All Document Elements at Runtime
Rob Gravelle demonstrates how to set the font for all the elements in a web page from a listbox.
-
A Roundup of Popular JavaScript Date Parsing Libraries: XDate
In this third installment in a series on Date Parsing JavaScript libraries, Rob Gravelle continues his quest for a JS library that can parse dates from a block of text. Today's contender is the XDate library.
-
Testing DOM Events Using jQuery and Jasmine 2.0
Jasmine makes it possible to test that a given DOM event occurred and what the results of the event were. In today's article, Rob Gravelle demonstrates how to write tests for the button click event using Jasmine 2.0, jQuery, and an additional third-party library called jasmine-jquery.
-
The Word of the Day Is "Nonce"
You may not have heard of nonces yet, but they can be of great use in securing Web applications. Rob Gravelle shows how they work and their usage in protecting against malicious or duplicate requests that could cause undesired consequences to your web site.
-
Special Edition Using HTML 4: JavaScript Keyword Reference
JavaScript Objects
-
Special Edition Using HTML 4: JavaScript Keyword Reference
JavaScript Methods
-
Special Edition Using HTML 4: JavaScript Keyword Reference
JavaScript Terms
-
Special Edition Using HTML 4: JavaScript Keyword Reference
JavaScript Properties
-
Special Edition Using HTML 4: JavaScript Keyword Reference
JavaScript Event Handlers
-
Special Edition Using HTML 4: JavsScript Keyword Reference