Category Archives: jQuery

Architecture for a SignalR Synchronized Webpage Application

using: signalR aspnetmvc knockoutjs javascript jquerymobile x10 Part 1 – Synchronizing webpages across devices with SignalR Part 2 – Architecture for a SignalR Synchronized Webpage Application Part 3 – Publish Subscribe using SignalR Part 4 – Front End Code Review … Continue reading 

| Leave a comment

Synchronizing webpages across devices with SignalR – Part 1

After your done with this post, explore the others in this series: Part 1 – Synchronizing webpages across devices with SignalR Part 2 – Architecture for a SignalR Synchronized Webpage Application Part 3 – Publish Subscribe using SignalR Part 4 … Continue reading 

| 12 Comments

Extending Objects in jQuery

Welcome to my journey of  extending objects in JavaScript frameworks; let’s explore jQuery! Extending an object in jQuery is simple, there are just a few rules you need to understand. Extension works from left to right and you’re allowed to … Continue reading 

| 10 Comments

$(function(){…}) vs (function($){…})($) or DOMReady vs The Module Pattern

This was originally a StackOverflow question. I’m re-posting here because I think the question is fairly common, and I like the answer that I provided.  Why define anonymous function and pass it jQuery as the argument? This is the original … Continue reading 

| 7 Comments

Backbone.Syphon: Serialize Form Inputs To JavaScript Objects

Working with form elements in a Backbone view can become very tedious very quickly. You will either end up writing a lot of repetitive code to read values from the form, or end up using a key-value-observer or data-binding solution … Continue reading 

| 25 Comments

Wrapping $.ajax In A Thin “Command” Framework For Backbone Apps

A large number of my recent client applications, built on Backbone, have been using straight jQuery AJAX calls. Sometimes its in combination with Backbone’s persistence method, but other times I end up using AJAX calls in place of Backbone calls. … Continue reading 

| 7 Comments

Managing A Modal Dialog With Backbone And Marionette

My current client project is using Twitter Bootstrap, and I have to say I’m loving it. It provides a simple way to get started with common layout and design elements, and includes a handful of UI widgets and features that … Continue reading 

| 35 Comments

JavaScript Performance: Pre-Compiling And Caching HTML Templates

If you’re using HTML templates with a JavaScript application, you need to be caching the template’s raw text and/or pre-compiled version of the template. All of this spawned from a fun thread of discussion on a StackOverflow question. DOM Selection … Continue reading 

| 7 Comments

Composite Views: Tree Structures, Tables, And More

One of the more recent features that I added to my Backbone.Marionette framework is the CompositeView. It’s actually been in the code for a while now, but in a recent version I extracted it out of the CollectionView and in … Continue reading 

| 30 Comments

Providing Synchronous / Asynchronous Flexibility With jQuery.when

I’ve quickly become a fan of jQuery’s Deferred / Promise features. They’ve been around for a little bit now, but I only recent started using them and they’ve helped me solve a number of problems with my asynchronous JavaScript code. … Continue reading 

| 8 Comments