Perfect, Easy, CSS Styled Buttons Example

This is a well thought out and clearly explained tutorial explaining how to create CSS styled buttons.

There are a million examples but his approach by using just two images and shifting the pixels up and down for pressing and releasing is a neat idea.

how-to-make-sexy-buttons-with-css

Form Validation with qForms

I’ve been using qForms for form validation for a long time now. I was fortunate to have a fellow developer tell me about it and have used it ever since. I thought I’d pass the information on to you.

You can view an example of how I use it in the most basic way:

http://www.cfblogs.com/vincecollins/qforms/

Integrating it within your application framework is trivial yet there are so many validation methods to choose from such as email, integar, numeric, alphanumeric, required, length etc.

This of course does not mean you don’t have to validate on the serverside before writing to your DB of choice. You have to assume that someone will turn off javascript and thus you must validate on the backend. If you don’t, you will expose your database to all kinds of risky scenarios.

I suggest that if you find it useful, you should consider contributing to the ongoing effort of improving it. Click on the “PayPal” link on their site here: http://pengoworks.com/index.cfm?action=get:qforms

Enjoy!

Javascript to Sort a Table

Just the other day my client wanted to have the ability to sort a
column of data. I could have spent some time writing some custom
server-side code using ColdFusion but I figured someone else probably
had a solution I could use.Sure enough, You can include a simple javascript file called http://www.cfblogs.com/vincecollins/TableSort/sorttable.js
and then just insert the class in the table tag.

<table class=”sortable” id=”unique_id”>

I tried it on a table of data from my cfblogs.com site here:

http://www.cfblogs.com/vincecollins/TableSort
Pretty cool eh?

You can ad fancy sorting icons and more by visiting Stuart’s site here:

http://www.kryogenix.org/code/browser/sorttable/