0 - 11 of 11 tags for javascript

This article introduces jQuery.on and jQuery.off as the preferred methods for binding events in jQuery 1.7+.

This article will exam function currying in JavaScript and introduce currying via native binding.

Well not exactly printf(), but still pretty darn cool. I consider myself a decent JavaScript programmer with a fair amount of debugger knowledge. However, I stumbled across an interesting bit of new (to me) information last night. Maybe everybody else is already hip to this.

A common problem with web applications is that sorting results are inconsistent between the front-end and back-end because the browser and server collation tables differ. These differences force a developer to do all sorting either in the front-end or back-end, which is not very good solution.

This blog entry provides a brief introduction to underscore.js mixins.

This article is a continuation of Part 2: Backbone.js + Require.js, Further Modularization and Just in Time Dependency Loading. It describes how to use a cache manifest to improve just in time dependency loading performance. It also provides a cache priming alternative in the event that the user’s browser does not support a cache manifest, i.e. IE.

This article is a continuation of Part 1: Backbone.js + Require.js. It outlines further modularizing the Todos application presented in part 1 and introduces “just in time” module loading. 

This article provides a brief introduction to JavaScript AMD and MVC technologies. It then details a working example of modularizing the Backbone.js 101 tutorial, “Todos” by Jérôme Gravel-Niquet, using Require.js. The article assumes basic familiarity with the aforementioned libraries, concepts, and example. This will be part one of a four part series. If you already know the basics or would like to dispense with the pleasantries then skip ahead to Let’s Get Started.

Backbone.js is a lightweight JavaScript MVC framework. The default transport mechanism for CRUD operations is XHR. Socket.io is a Node.js Web Socket server. This article provides an overview of using socket.io as the transport mechanism for Backbone.js CRUD operations via a custom Backbone.sync method.

The native JavaScript String.length is a count of 16 bit code points in a string, which can present a problem in some cases when counting characters and splitting strings in internationalized web applications because some characters are comprised of two code points.

The following code works fine on most browsers but IE has a problem with it. Can you figure it out?

<head>
<title>Puzzler1</title>
</head>
<body onload="addClickHandler()">
<button id="myButton">Click Me</button>

<script>
function clickHandler(){
   ...
}

function addClickHandler(){
   myButton = document.getElementById("myButton");
   myButton.onclick = clickHandler;
}
</script>
</body>