Home

Annoucing the launch of spritewizard.com

I'm proud to announce the lauch of spritewizard.com a web service that allows you to create and maintain css sprites with an easy drag and drop interface. I created SpriteWizard because I could never get all of the images from a designer at once.  Having a simple web interface that manages all of that for you.  So please check it out and let me know what you think.

Data Registry, Simple Data Caching for JavaScript

In most of the web apps I have written I have had to track / cache simple. It might a jQuery selector or a small group of objects in an array.  In some form or another I end up doing something like this to get / set data.

appname.data.user[appname.data.state.activeUser].username;

Enter dataReg! Its a simple data caching object that allows you to simplify this process. You can turn that fragment of code into

Setting new default options for jQuery UI widgets

I was messing around with the dialog widget trying to figure out away to have it remove its self after the user closed the dialog.  I tried listening to the dialogclose event but that didn't work.  After playing around with it turns out you can override the default options like so.

Internet Explorer Bug: readyState on empty cache slow to == complete

Recently I ran in to a small bug in Internet Explorer where on an empty cache it would take minutes for script.readyState to equal 'complete' after the script had been successfully loaded  from the server. But if you refreshed the page , script.readyState would equal complete on page load.

Using jQuery to create an overflow menu as seen in Google Wave

Tags:

One of the features UI that Google wave uses is what I call the "overflow" menu. If you have a wave account you may have noticed that depending on your browser window size not all of the menu options are shown.  The hidden options tucked away nicely in a drop down menu.  On resizing your browser widow, options are added or removed from the menu.  I thought that was pretty slick and thought it would be pretty easy to recreate the functionality using jQuery. So enough with the story on to the code. 

Using Regular Expressions to Test Variable values

Tags:

When creating a function in javascript its a good idea to check object the object type(s) of the arguments pasted to function.  Lots of times you end up with code looking like this to do this

Get the fulll URL of the current page

Tags:

Here is a simple function that will get the url of the current page.

Code and Content Copyright 2010, Jesse Baird.