March 13, 2010

jQuery, Dealing with Checkboxes

This post will show you how to get checkbox values with jQuery and how to set checkbox values with jQuery. In my application I wanted to have two checkboxes and when one box was unchecked to check the other checkbox (to always keep one check box checked) But I didn’t want to use radio buttons. [...]

February 14, 2010

Flying over the Rockies

As I write this, I’m in a 737 flying over the Rocky mountains on my way home from a long week in Denver, Colorado. When you think about all the infrastructure that is in place to facilitate a flight from one US city to another it boggles the mind. Not just software and hardware; but [...]

May 5, 2009

jQuery, Selecting the Previous Element With Filtering

Recently I was looking for a solution to this problem. My HTML looked like this: <a class="file" href="download/876243.pdf">876243.pdf</a> <a class="tagcontrol" id="876243.pdf">tag</a> <a class="tag" href="index.php?tag=test">test</a> <img class="delete" title="remove this tag" src="img/tag-del.png" /> The idea being that you would click the image with the “delete” class and submit an ajax call to delete the tag for that [...]

February 21, 2009

File Uploads in a Hidden iframe using jQuery

I wanted to create a file uploading application in an Ajax style (that wouldn’t reload the page), but I found I didn’t like any of  the jQuery plugins that I found to do them.  I found that either they didn’t work or the result was not able to be styled the way I wanted.  Here [...]