Skip to content

Tag: javascript

What is a Self Invoking Function
JavaScript

What is a Self Invoking Function

In JavaScript, it’s common to hear lots of strange terminology without a lot of description around what it is or what it…

October 5, 2017
Why JavaScript
Cloud Computing

Why JavaScript

In the earlier days of the web, there was a battle between two scripting languages VBScript and JavaScript. VBScript, thankfully, eventually died…

October 3, 2017
JavaScript

How to Use Reduce on JavaScript Arrays

In functional programming, being able to reduce is one of the fundamental concepts. Reduce is used to iterate through the values in…

October 2, 2017
Detecting Inactivity in JavaScript
JavaScript

Detecting Inactivity in JavaScript

In a lot of web applications, it can be really useful to detect whether the user is still active or not. For…

September 26, 2017
How to Merge Objects in JavaScript
JavaScript

How to merge Objects together in JavaScript

Merging objects together in JavaScript isn’t very difficult although there’s quite a few different ways that it can be done. Note, I’m…

September 21, 2017
5 Resources for Learning JavaScript
JavaScript

5 Resources for Learning JavaScript

Traditionally when somebody said JavaScript, they were talking about a language that just did stuff on the client side like form validation…

March 24, 2017
Updating Salesforce Records Using JavaScript
Salesforce

Updating Salesforce Records Using JavaScript

Over the last few years, Salesforce has made some really significant changes that allow JavaScript to increasingly be used. By using Salesforce’s…

March 22, 2017
JavaScript

Avoiding Globals in JavaScript

JavaScript uses functions as the primary way to define scope any variable defined inside of a function is in the local scope. A variable defined outside of a function is in the global scope.

March 15, 2016
Sorting Elements Alphabetically in JavaScript
JavaScript

Sorting Elements in an Array Alphabetically in JavaScript

There's a lot of reasons why you may want to sort an array, often it is done to make things easier for the user of the application to understand the data. Arrays are normally sorted to be in ascending order (or alphabetical).

May 19, 2015
Recreating PHP's time() function in JavaScript
JavaScript

Recreating PHP’s time() function in JavaScript

PHP's time() function returns the current unix timestamp. JavaScript doesn't exactly have the same functionality, but it's pretty close. Put a different and more understandable way, it returns the current time measured in seconds since the Unix Epoch (00:00:00 UTC on 1 January 1970). JavaScript has a similar way of getting the time but it's in milliseconds since the Unix Epoch.

May 12, 2015
JavaScript

JavaScript IsNumeric Function

In the past, there’s been so many times I needed to tell if an object was numeric. With the below function, it’s…

January 13, 2015
Dealing With Dates in JavaScript
JavaScript

Dealing With Dates in JavaScript

Dates and DateTimes are difficult to deal with in most languages. The Date object is a datatype that’s built in the JavaScript…

July 5, 2011
Firefox

Component returned failure code: 0x805e000a

Error: uncaught exception: [Exception… “Component returned failure code: 0x805e000a [nsIXMLHttpRequest.open]” nsresult: “0x805e000a ()” AdBlock interferes with the XmlHTTPRequest object and is known…

March 4, 2011
Book Review

Book Review: jQuery in Action

jQuery in Action, First Edition is written by Bear Bibeault and Yehuda Katz and is probably the simplest and easiest to understand…

September 28, 2010