Please consider donating: a local project in memory of my daughter

Archive for January, 2007

jQuery tutorial: Text box hints

Updated March ’08: I’ve separated the plugin to a separate jquery.hint.js file and included a fix to get around Firefox’s autocomplete You will see a lot of web sites with search boxes have text already populated inside of the field and when you select the input text box it disappears and reappears when it’s not [...]

How to fake an apache request

I wrote a little tool to help me command line test URLs in my mod_perl dev environment. It lets me pass ful URLs + query strings via the command line, and see, or more importantly, debug the output. Apache is running with mod_perl and we are using the PerlHandler to forward requests to. There’s really [...]

ssh without a password

I do a lot of work that requires me to log in and out of remote machines using SSH. As a result, I prefer to configure my laptop (working machine) to SSH without prompting for a password on those machines I know to be secure. Here’s how to do it.

Importing colour in to TextMate

While I was working on one of my client’s web site, I realised that I hadn’t taken any note of the (hex) colours during my mock up phase. Initially thinking I should download a colour picker, I realised I could probably drag and drop.

Auto-populating Select Boxes using jQuery & AJAX

Update: due to popular demand, I’ve caved in, and written a plugin and demos with multiple-select boxes populating each other and driven from MySQL. View: Auto-populate multiple select boxes If you are familiar with using select boxes for categorisation and sub-categories, such as ebay does when selling an item, usually this can require a lot [...]

How I achieved cross site scripting

Before I get flamed for claiming the impossible, this is how I achieved a goal that was entirely in AJAX, but I needed it to across different domains! Some background: Some time ago I found, and implemented this awesome heatmap click tracking for the company I work for. However, since our test machines run everything [...]

Broken AJAX? Nothing coming back?

I recently came across a funny bug where I was executing an AJAX method and the response was empty. I check the server side and I know that my particular query is returning a result, but thanks to Firebug I can see it’s failing in the browser. So there was something definitely amiss.