No.  all you do is just use CF tags instead of the regular html tags.
 ColdFusion does all the xml for you.

In fact, you could easily use them throughout your site wthout ever
knowing what XML is or touching it at all.   Here's what a simple XML
form looks like:

<cfform name="formname" action="#cgi.Script_Name#" method="post"
format="XML" skin="Silver">
<cfinput type="text"  name="firstname" label="First name"
required="Yes" message="You must provide your first name"
value="#personbean.getFirstName()#"/>
<cfinput type="text"  name="email" label="Your email address"
required="no" validate="email" message="we're sorry that doesnt look
like an email address. Please check it"
value="#personbean.getEmail()#" />
<cfselect name="state" label="State" query="qStates" value="stateID"
display="statename" selected="#personbean.getState()#" />
<cfinput type="submit" name="submit" value="Submit" />
</cfform>


Put that into a CFM page and see how it looks.  Just like that, you
have all the styling, css, xml is handled, if you view source on the
final rendered page you'll see the javascript is written.  Put
something in the email field and click submit and you'll see it's
pretty rigorous about ensuring you have a well formatted email address
in there.

Note that you dont put any html in the CFFORM becuase i'ts not usually
needed, but if you do need ot have some html you can if you put it
between tags like this:
<cfformitem type="html">
html here
</cfformitem>

The XML cfforms is really worth checking out if you havent already.
And as i said earlier,  unlike the flash forms, it doesnt take 2/3 of
an eon to load.

I suspect they aren't used as much as they might because they are
called XML format.   And a lot of people think "i dont know much about
XML so I better not attempt that".  But in fact it's ColdFusion that
writes all the XML and XSLT unless you want to tinker around with it.
I've been using them extensively since last January and never once
touched any XML with them.


Cheers
Mike Kear
Windsor, NSW, Australia
Adobe Certified Advanced ColdFusion Developer
AFP Webworks
http://afpwebworks.com
ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month


On 12/14/06, skateboard.com.au <[EMAIL PROTECTED]> wrote:
>
> Hey Mike
>
> Sounds good. I have done a bunch of xml/xslt translations etc so am cool
> in that regard. How does the XML fit into the CFForm scheme of things?
> Does CF parse the xml you provide to produce the form with associated
> javascript for client side validation? How does server side validation
> fit in? Feel free to RTFM me on this :)
>
> Thanks
>
> Drew Peacock
>
>
>
> -----Original Message-----
> From: "Mike Kear" <[EMAIL PROTECTED]>
> To: cfaussie@googlegroups.com
> Date: Thu, 14 Dec 2006 16:45:48 +1100
> Subject: [cfaussie] Re: Form building/validating cf tools
>
> >
> > I use the CFFORMS almost exclusively now.  I always thought CFFORMS
> > was a GREAT idea, but was disappointed in what a dog it was.  now,
> > with CF7, it performs as advertised.
> >
> > The XML format is a hugely underrated thing.  I have written a very
> > simple tool that looks at a table and automatically creates a XML
> > form, complete wiht validation, mandatory fields,  drop down selects
> > for any date fields, etc.  It does the vast amount of the grunt for a
> > form in about 30 seconds, then 10 minutes to tweak and tidy up adn
> > its' done.  Complete with all the javascript validation.
> >
> > The XML format flies.  It's completely stylable using the supplied CSS
> > files or make your own.  I am yet to be convinced about flash forms
> > because they seme to take too long to load, but XML forms load at the
> > same speed as the rest of your HTML.
> >
> > And you dont have to konw about XML to use them, although you can
> > tinker around with the XSL if you know what you're doing and feel
> > inclined to.
> >
> > Give it a try.  It's not hard.
> >
> > Cheers
> > Mike Kear
> > Windsor, NSW, Australia
> > Adobe Certified Advanced ColdFusion Developer
> > AFP Webworks
> > http://afpwebworks.com
> > ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month
> >
> >
> >
> > On 12/14/06, Toby Tremayne <[EMAIL PROTECTED]> wrote:
> > >
> > > cfform in cf7 is awesome - some very good features not to mention
> > > flashforms and xml forms.  I'd agree that you shouldn't use cfform
> > > and it's ilk before cf7 but now it's pretty good.
> > >
> > > If you don't want to go down that route however, I would seriously
> > > recommend qForms.  It's very easy to use and very powerful - has just
> > > about everything you need for validation.
> > >
> > > Toby
> >
> > >
>
>
>
> >
>


--

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to