Home

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... Read more

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... Read more

Using Regular Expressions to Test Variable values

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 if(typeof(foo)=='undefined'|| foo==''){ ////do something } Earlier this week I ran across Paul Irish's jQuery Anti-Patterns... Read more

Get the fulll URL of the current page

Here is a simple function that will get the url of the current page. /** * getFullCurrentURL() * @author Jesse Baird <jebaird@gmail.com> * @since 09/18/2009 * @uses gets the full url of the current page * @return string | IE http://www.jebaird.com?var=val&test=yes */ function getFullCurrentURL() { $url = 'http://'; //are we... Read more

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... Read more
  1. Previous
  2. Next