Skip to content

SiteKickr Web Development

search
search
Oct03March 18, 2015One-Liner, Security, Server / Performance

One-Liners to Improve Server Security

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…

Jul19CSS, Style & Presentation, One-Liner

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…

Jun29JavaScript, One-Liner

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…

Jun26June 26, 2011JavaScript, One-Liner

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…

May19May 19, 2011JavaScript, One-Liner

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…

Apr22JavaScript, One-Liner

Vertically center a div with jQuery

$('.vcenter').each(function() { $(this).css('margin-top', (parseInt($(this).parent().css('height')) – parseInt($(this).css('height'))) / 2); });

Apr06April 7, 2011JavaScript, One-Liner

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…

Mar13March 13, 2011ColdFusion, One-Liner

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.

Mar07JavaScript, One-Liner

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…

Mar01March 1, 2011JavaScript, One-Liner

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…

Posts navigation

1 2 Next
© 2023 SiteKickr