If you have user generated photos, and wish to crop them down to a thumbnail, it's not always easy to decide which area of the…
jQuery disable right click context menu
You can find a quick one-liner on how to disable the browser context menu anywhere, but I just wanted to make sure you know about…
jQuery combine all lists into one list
This little trick comes in handy if your site runs on a CMS. The editors within CMS's have a tendency to create multiple lists to…
IE 7 z-index bug – drop-down menus
If you've struggled to figure out why your drop down menus are showing behind other content, you may have come across the IE 7 z-index…
jQuery dialog load external URL
The solution is simple, but coming to it was quite the opposite. After browsing many posts which don't deal with the fact that external URL…
jQuery search term highlighting
Highlighting keywords from a search can be done on the server-side, by using your development languages string replace functions, but this can add complexity to…
Vertically center a div with jQuery
$('.vcenter').each(function() { $(this).css('margin-top', (parseInt($(this).parent().css('height')) – parseInt($(this).css('height'))) / 2); });
AJAX calls being cached
I spent a couple hours this morning trying to figure out why Internet Explorer was return the same result from an AJAX request which returns…