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!

ColdFusion and Microsoft’s ADAM Chapter 1

So one of my clients needs me to integrate a ColdFusion application with the backend directory of ADAM. I’ll be using CFLDAP to read from it and to write to it. I just need to replicate the existing ADAM into a test schema and then I’ll be updating and testing with that and will eventually move it to the live ADAM instance. I think the largest challenge will be to figure out how to use/manage/install and change ADAM. Once I figure that out, I suppose it will be pretty straight forward.

I’ll let you know how it turns out soon.

Oh, and let me know if you have any wisdom you would like to share if you have experience using ADAM.

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/