I’m a web developer, that’s what I do, and I love it. But, the unfortunate side of offering web development services, is that you usually…
CSS text stroke
While webkit browsers have native CSS support for text stroke, you'll have better cross-browser compatibility if you use the text-shadow style appropriately. The following CSS…
jQuery to “link” labels with checkboxes
If you generate checkboxes and labels dynamically, or just don't feel like assigning ids to all of your checkboxes and corresponding for attributes to all…
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…
Labelling form fields without using labels – Method II
Here's a handy method I came up with to "move" labels inside form fields, to save real estate. It also degrades gracefully if the user…
Vertically center a div with jQuery
$('.vcenter').each(function() { $(this).css('margin-top', (parseInt($(this).parent().css('height')) – parseInt($(this).css('height'))) / 2); });
Focus on first empty field
It's a common practice on many sites to put the focus on the first input. But, in many cases, this first input has already been…
ColdFusion – copy form or url scope to request scope
<cfset StructAppend(request, form)> OR <cfset StructAppend(request, url)> Handy in the event that you're not sure which scope to expect your "inputs" from.
PDFs / Docs in mobile browsers
Not all mobile browsers posses native support for PDF, DOC and other formats. But, by leveraging Google's Document Viewer, you're able to present these files…
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…