Blogs

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.

Clearing a Firefox Session Manually

Every once in a while I run in to a small issue with Firefox not loading correctly when i save my session.  It seems to happen when I have multiple tabs open that have lots of JavaScript running in them.  In my case I couldn't access the GUI like in the method shown here or here.  I had to manually delete the session file in my Firefox profile. Here's how to do it.

Before you move to Voice over IP have these bases covered

EdgeCore just moved office buildings and I was put in charge of setting up the network and phone systems. A couple of the guys recommended VoIP. It sounded like a good idea at the time. So I went along with the recommendation. I got a quote from 8x8.com and everything looked good. My next step was to call up the local utility company and get an internet connection that would support VoIP. The local utility company recommended the 8mb down and 1.5mb up for voice over IP for $80 a month.

timeout, a setTimeout wrapper for jQuery

Tags:

Timeout is a simple jQuery plugin that allows you to delay the execution of code for a certain number of milliseconds. It works like the jQuery delay plugin http://www.evanbot.com/article/jquery-delay-plugin/4 which i didn't know existed at the time I wrote this plugin.

plugin code

Code and Content Copyright 2010, Jesse Baird.