In our experiments with jQuery Mobile, specifically when applying jQuery Mobile to an existing website, we've encountered one error more than any other. That error…
Country, City, State and Other location information from IP Address
If you wish to determine a remote visitor's country, city, state, postal code and other location information, I'd personally recommend integrating with a web service…
Browser caching in 60 seconds
There are a multitude of articles out there on browser caching. If you're using Apache as your web server and want to cut to the…
Valid XHTML Strict / target attribute
$('.target-blank').each(function() { $(this).attr('target', '_blank'); }); One line of jQuery, as shown above, allows you to omit your target attribute in favor of the XHTML Strict…
Two column list – the elegant way
If you have two individual lists, instead of stacking them, you'll be able reduce scrolling by placing them side-by-side. The example below demonstrates one elegant…
Labelling form fields without using labels
A couple quick lines of jQuery allows you to free up real estate on your site (useful for mobile layouts) and add some interactivity at…
CFDocument image quality
If you find that your CFDocument PDF output bears poor image quality, it may be a quick fix. Double check the resolution on your image.…
jQuery: Make the first list element expand / collapse the other list elements
$('ul li:first-child').click(function() { $(this).siblings().toggle(); });
Using redirects to avoid duplicate pages
The issue here is that search engines consider the following two locations as distinct pages: http://www.mysite.com/products http://www.mysite.com/products/ In the case above, the solution is simple…
Javascript Optimization Tip: Merging JS files
A major component of optimizing your client side scripts (JavaScript) is reducing the number of http connections required. In other words, reducing the number of…