Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Getting Started / March 2007



Tip: Looking for answers? Try searching our database.

what is the difference between input vs cfinput??

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
susanring - 21 Mar 2007 21:30 GMT
what is the difference between input vs cfinput??  

 major benefits??

thanks
jdeline - 21 Mar 2007 21:39 GMT
<INPUT> is a HTML construct, while <CFINPUT> is a ColdFusion object.  Purists
tend to use <FORM> and the HTML constructs that accompany it.  

Check out
http://livedocs.adobe.com/coldfusion/5.0/CFML_Reference/Tags53.htm#1100379 for
the attributes associated with <CFINPUT>
Dan Bracuk - 21 Mar 2007 21:52 GMT
In an html form cfinput is a deluxe model input.  It gives you access to some
javascript so you don't have to write your own.  Many of the attributes for
cfinput (you have to read jdeline's reference) are not available with input.

In a flash form, it's the only thing you can use.
susanring - 30 Mar 2007 16:32 GMT
what is better to use?

for my cf projects?

what is common ?

flexibility?
Ian Skinner - 30 Mar 2007 17:05 GMT
> what is better to use?
>
[quoted text clipped - 3 lines]
>
> flexibility?

Personally I use input until I need the functionality of cfinput then I
use that one.

If it hasn't been clearly stated, when using cfinput's in html mode,
they create input tags in the output.
SafariTECH - 30 Mar 2007 17:08 GMT
Either pathway is valid and common ... it's just a really good idea to stick
with one path for a project once you start one way or the other however.

If you want to use CFINPUT you have to use CFFORM

If you have need for simple validations (or even a few complex ones) CFFORM
and CFINPUT give you all that built in w/o you needing to know javascript and
is somewhat flexible in so much as you can specify your own error messages and
even specify your own forumations using the Regular Expression functions.

I use either one, but I determine the project's requirements beforehand to
make sure one or teh other is a good fit before using it.
numerical07 - 30 Mar 2007 17:34 GMT
If your a coldfusion developer, you might as well take advantage of coldfusion technology. Use CFINPUT. its always good with clientside and serverside validation
BKBK - 31 Mar 2007 08:19 GMT
[i]what is the difference between input vs cfinput??
major benefits??[/i]

I can think immediately of

<input>
- familiarity
- simplicity

<cfinput>
- available in HTML, Flash, XML; thanks to cfform, does all <input> can do and
more
- preserveData
- client-side and server-side validation
- dateField
- binding
- (URL of) images to use on buttons
- mask
- tooltip
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.