Home Posts tagged "tutorial"
formats

Top 10 JavaScript Links: Native JavaScript

There are a ton of websites that offer information about JavaScript. Some are ok, some are good, some are great. These are the ten websites that I feel offer great information about JavaScript. This list will change often. Mozilla Developer Network MDN JavaScript Home MDN JavaScript Search Mozilla describes themselves as: “…a proudly non-profit organization

(More)…

formats

JavaScript Closures – The Absolute Basics: Getters and Setters

The next step in mastering JavaScript closures is being able to “get” or “set” a private variable In Part I of this series: JavaScript Closures – The Absolute Basics, I discussed wrapping one function with another, which produces a closure. When that returned function is assigned to a variable, as long as that variable is

(More)…

formats

JavaScript Closures – The Absolute Basics

Demystifying this topic is one of the most important steps towards truly understanding the JavaScript language It is a little difficult to get your head around JavaScript closures without a basic understanding of scope. I will not attempt to tackle that subject in any kind of detail here. But let’s at least consider this thought: JavaScript

(More)…

formats

Iterating Over a jQuery Collection with the .each() Method

in jQuery.

jQuery makes it super easy to get a reference to a collection of DOM elements. The .each() method allows you to execute a function against each one of the elements in the collection. So you have a bunch of elements in the page. Maybe that bunch is “every <a> tag” or “every <li> inside of

(More)…

formats

How to Create a CSS Cache Buster Using JavaScript

Use the Date() constructor to create a unique query string; ensure each GET request is not cached The other day, I was working with a customer whose iPad app was consuming an HTML page. I was making changes to the CSS, yet was not seeing them in the iPad app. I kept adding a new

(More)…

formats

Creating an HTML Option Element Using the JavaScript Option() Constructor

The little-known JavaScript Option() constructor allows you to avoid the verbose syntax of creating DOM elements We all love jQuery. Among the many awesome qualities of this library is the ability to easily create DOM elements and place them in the document without the normally verbose syntax of native JavaScript. There is a little-known feature

(More)…

formats

Associative Arrays in JavaScript

You may be finding conflicting information about associative arrays in JavaScript. Well, the answer is quite simple…. and then things start to get a little odd If you are frustrated because you have been getting different answers on this subject, I”ve got good news and bad news. The good news is, the answer is simple:

(More)…

formats

How to Use the jQuery replaceWith Method

When you need to completely remove an element and put another in its place One of the fun things about jQuery is learning about a method that introduces you to a DOM manipulation scenario you may not otherwise have thought of. The replaceWith() method allows you to chop out one piece of the page and

(More)…

show
 
close