Greg's Blog

helping me remember what I figure out

Two CFCs Released

| Comments

I have just completed putting together two CFCs that I hope will help reduce some of my UI coding time. The first is a form CFC and you can see a small demo of it here. It allows you to build up form elements and their labels programmatically, while taking away the chore of making sure you specify all the attributes that make it web standards compliant form (it validates as xHTML 1.0 transitional) and also ensuring that it adheres to accessibility guidelines. Furthermore you can pass in dynamic values, queries (for drop downs), enable and disable fields. Have a look at index.cfm to see how I used it for the example (or explore the component using the component browser).

The second is a table CFC (demo here). Like the form CFC it aims to take the chore out of creating tables, remembering all the right attributes (this one too validates as xHTML 1.0 transitional) and adhering the accessibility guidelines. Yep , no more excuses now (at least not while it comes to tables and forms). Feedback, suggestions, problems, etc, are welcomed!!