Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 793

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Requesting and Presenting Information
<cfform name="comments" format="xml" skin="basiccss" width="400" preservedata="Yes" >
<cfinput type="hidden" name="revision" value="12a">
<cfformgroup type="fieldset" label="Basic Information">
<cfformgroup type="vertical">
<cfformgroup type="horizontal" label="Name">
<cfinput type="text" size="20" name="firstname" required="yes">
<cfinput type="text" size="25" name="lastname" required="yes">
</cfformgroup>
<cfinput type="text" name="email" label="E-mail" validate="email" maxlength="35">
<cfselect name="satisfaction" style="width:120px" multiple="false"
label="Satisfaction">
<option selected>very satisfied</option>
<option>somewhat satisfied</option>
<option>somewhat dissatisfied</option>
<option>very dissatisfied</option>
<option>no opinion</option>
</cfselect>
</cfformgroup>
</cfformgroup>
<cfformitem name="html1" type="html">
<p><b>We value your input</b>.<br>
<em>Please tell us a little about yourself and your thoughts.</em></p>
</cfformitem>
<cftextarea name="thoughts" label="Additional Comments" rows="5" cols="66">We really want
to hear from you!</cftextarea>
<cfformgroup type="horizontal">
<cfinput type="submit" name="submit" style="width:80" value="Tell Us">
<cfinput type="reset" name="reset" style="width:80" value="Clear Fields">
</cfformgroup>
</cfform>
ColdFusion XML format
The XML generated from a ColdFusion
toward creating your own XSL skins.
XML namespace use
The XML that ColdFusion generates for forms uses elements and attributes in several XML namespaces. Namespaces
are named collections of names that help ensure that XML names are unique. They often correspond to a web standard,
a specific document type definition (DTD), or a schema. In XML, the namespace name and a colon (:) precede the name
of the tag that is defined in that namespace; for example
ColdFusion uses several standard XML namespaces defined by the World Wid Web Consortium (W3C). These
namespaces correspond to specifications for standard XML dialects such as XHTML, XForms, and XML Events.
ColdFusion XML forms also use a custom namespace for skinnable forms XML extensions. The following table lists
the namespaces in the XML that ColdFusion generates.
Prefix
URL
html
http://www.w3.org/1999/xhtml
tag and its children are described here. It provides a building block
cfform
for the XForms namespace
xf:model
Used for
Form tag information, including action, height, width, and name. XHTML
compliant.
Last updated 1/20/2012
788
tag.
model

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents