With CFFORM, you gain the advantage of access to these Java applet-based controls without having to know the Java language, and, you don’t have to juggle . cfform. Builds a form with CFML custom control tags; these provide more functionality than standard HTML form input elements. cfform>. cfform();. I started out with cfform back in the day, but eventually wanted to do more robust things (validations, etc) than cfform was able to handle. That forced me to learn.
|Published (Last):||2 December 2010|
|PDF File Size:||19.78 Mb|
|ePub File Size:||15.16 Mb|
|Price:||Free* [*Free Regsitration Required]|
Creating custom forms with the cfform tag
The only disadvantage I have found in the short time looking into cffkrm is that it adds 2 external style sheets and 1 script tag to the page. I prefer to write tk own JS around my forms.
I started out with cfform back in the day, but eventually wanted to do more robust things validations, etc than cfform was able to handle.
So I guess Ctform say one big drawback is that you’re restricted to what cfform can handle. Depending on your situation, that might be fine. Another drawback that I ran into a long time ago which to be fair, may have been addressed cffformis that the JS generated by cfform would conflict or interfere with my hand-written JS.
So I’ve ti to use cfform for internal sites only and not for public facing site performance issue. Other then the ajax features, the checked attribute that accepts CF boolean and populating select with query object are features that cfinput and cfselect provide which can be quite useful. Use the right tool for the right job.
Just know its limitations, and decide for yourself.
Creating Forms with the CFFORM Tag
I have been using ColdFusion for almost 14 years. The reason that CF is such a kick-ass product is that empowers new users to get a lot of work done quickly with not much understanding and it enables rocket scientists to build tk powerful and secure applications quickly too. Basically, they are training wheels. If you’re new to web development, you should give this tags a try. As you gain experience, you’ll want to drop these tags and move onto other techniques to create more robust applications.
There’s nothing wrong with these tags, just like there’s nothing wrong with training cfgorm. You just need to know that there’s an appropriate tool for each job. Actually, there are lots of appropriate tools for cffomr job. I am doing it without using a single form tag.
Using jQuery, you don’t need forms. You just need inputs. I use jQuery and refer to every element by its class or ID. If you do ccform, you can submit the data in each element to an ajax call like this:. But, you need those tags to get started.
James Crform Mohler 7, 12 32 I’d be curious to know what XSS protection you believe you are getting from cfforms. I tto of none.
I always felt the code behind this should be open sourced so people can evolve it forward independently. One possible approach is using the XML skinnable forms: For XSS I refer you to an answer of mine on another question: I am not fo to use the cfinput to validate the forms on the front end, I am more looking at the backend.
This way if there is ever a need to not use it, I don’t have to come up with a workaround. Like Henry said in his response and I’m paraphrasingif it works for you, use it.
For the most part, “advantages” or “disadvantages” are going to be subjective. I’m with Charlie on this in regards to client side. I also have a problem with Adobe’s insistence on making you have to hack cfform. Ciaran yes, but htmlEditFormat is what cfinput uses.
If you do that, you can submit the data in each element to an ajax call like this: Evik James 5, 12 54 Ccfform been using the jQuery Validation plugin so that I can perform validation on other things like: Here’s a link with more cvform regarding the jQuery Validation library: James Moberg 3, 1 14 When you couple ColdFusion with jQuery, you let all hell run loose, which is totally awesome!
You’ve got total control with jQuery. Sign up or log in Sign up using Google.
ColdFusion Help | Creating custom forms with the cfform tag