Simulating HTML5 Local Storage Support

by Brett Wejrowski on January 14th, 2010 5  

I have been wanting to use HTML5’s local storage for a while, but I haven’t had a project where I can just ignore the older browsers. So I put together a little ( <1Kb gzipped ) script that checks for HTML5’s local storage API, and simulates the method for browsers that do not support it. For those browsers, the script implements a nearly identical interface to localStorage for persistent storage of name/value pairs, except it uses cookies.

Read More

simpleCart(js) Version 2.0 Released!

by Brett Wejrowski on August 10th, 2009 52  

We are happy to announce the release of simpleCart(js) version 2.0 today. We have been working hard to add several features that you all have requested, and we’re excited to get this script in your hands. There are several new features, including GoogleCheckout, easy currency settings, tax, shipping, and a new method for adding items to your cart that requires no javascript, and allows for different inputs and options. There is also a brand new site to go along with this update: simplecartjs.com . Please take a minute to check out all the new features, documentation, and demo. Thanks to all those who have been helping test for the past few weeks, we couldn’t have released this new version without your help.

Read More

Javascript Number.toCurrency()

by Brett Wejrowski on July 31st, 2009 2  

While working on simpleCart(js) 2.0 and a few shopping carts for clients, I found myself writing several helper functions for formatting strings and numbers. One of the most useful helpers was a toCurrency() method for numbers.

Read More

Let’s Make a Deal – 15 Things You Need in a Web Contract

by Kyle on June 1st, 2009 5  

Writing the perfect web contract can be a daunting task – but here are 15 tips on what to include and some additional resources for help.

Read More

Simple Pagination with Rails

by Brett Wejrowski on May 5th, 2009 5  

While I was developing Motionspire, I needed to implement a pagination system for the video content.  I looked through the existing plugins, but found that I really desired something extremely simple and custom to work within my search controller.  With only a few lines of code, I created a very basic system for managing pagination [...]

Read More