jQuery :contains selector and unicode characters

March 24, 2010
By SeanJA

I have an element like this (to save space in the menu since they can put up to 255 characters in it): <span class="tool_tip" title="The full title">The ful&#8230;</span> While this seems to work: jQuery('span:contains(…)'); this does not: jQuery('span:contains(&#8230;)'); I am pretty sure that it would be bad to use the first one because if...
Read more »

Documenting PHP Code

March 17, 2010
By SeanJA
Documenting PHP Code

I know we all hate documenting code, but it can really help out future you or me when we need to go back and fix something. Poorly documented code is the bane of anyone who will be taking on your code after you leave (or invite more people into) the project. One thing that...
Read more »

Using the jQuery-UI Autocomplete Widget

March 10, 2010
By SeanJA

The latest version of jQuery-ui has an autocomplete widget. No more looking for one that will work (you get the point) with the version of jQuery that you have. All you have to do is pull the latest one down from the jQuery-ui site and you are good to go. First the jQuery to...
Read more »

Finding corrupted images

March 3, 2010
By SeanJA
Finding corrupted images

As zoe kindly pointed out, two Wednesdays have passed since I last posted. I blame the Olympics (I was in Vancouver for the first week, and I was still recovering from it the second week Go Canada!). You can see my photos on flickr.com as I post them here. Apparently you can only post...
Read more »

Getting Started With PHPUnit

February 11, 2010
By SeanJA

We all agree that testing code is better than not testing it right? So why do we tend to avoid writing unit tests to make sure that we are writing code that works? I’m looking at you PHP guys. Good thing there is PHPUnit and it is as easy as can be to get...
Read more »

New posts every Wednesday

February 9, 2010
By SeanJA

So, it turns out that having a blog is not of much use if you don’t actually post anything on it. Unfortunately I have been neglecting mine as of late, so I am going to try and remedy that by forcing myself to post something on every Wednesday. Why Wednesday? Why not. Share and...
Read more »

Simple Tool Tip with jQuery

December 1, 2009
By SeanJA

I saw a post that talked about how to make a simple tool tip with jQuery, but that post did not make a plugin of it. It just added the function to the global scape, meaning that it was not chainable and it would only be applied to the a element. So I took...
Read more »