-
Recent Posts
Recent Comments
- Recording the git commit hash in your assembly with TeamCity | Richard Dingwall on Adding git commit information to your assemblies
- Mga555 on Use gitk to understand git – merge and rebase
- HB on Coordinating multiple ajax requests with jquery.when
- Anonymous on A smarter Rails url_for helper
- Mark IJbema on A smarter Rails url_for helper
Archives
- March 2012
- February 2012
- January 2012
- October 2011
- August 2011
- June 2011
- May 2011
- February 2011
- January 2011
- November 2010
- October 2010
- September 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- September 2008
Categories
Meta
Category Archives: jquery
$(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
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
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
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
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
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
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
TrafficCop: A jQuery Plugin To Limit AJAX Requests For A Resource
A while back, I wrote about asynchronous template loading for Backbone applications. At the bottom of that post, I showed some code that I wrote which would limit the number of AJAX calls that are made to the server, to … Continue reading
Resizing KendoUI Splitter To Fill Screen Vertically
I dropped the jQuery.Layout plugin in favor of KendoUI’s Splitter control yesterday. Kendo’s Splitter is just so much easier to use and more flexible. It was a no-brainer for me, really. But I ran in to a problem: how to … Continue reading
Handling DOM Events With EmberJS Views And Controllers
Hot on the heels of picking up Ember and starting to learn it, I think I’ve actually learned something useful! I certainly hope I have, at least. Otherwise, I’m going to be in trouble soon. In my EmberCloneMail app, I … Continue reading
