Macromedia coldfusion 4.5-cfml language reference User Manual

Page of 608
Chapter 1:  ColdFusion Tags
225
Left
Bottom
Baseline
TextTop
AbsBottom
Middle
AbsMiddle
Right
BORDER
Optional. Places a border around the tree. Default is Yes.
HSCROLL
Optional. Permits horizontal scrolling. Default is Yes.
VSCROLL
Optional. Permits vertical scrolling. Default is Yes.
NOTSUPPORTED
Optional. The text you want to display if the page containing a Java applet-based 
CFFORM control is opened by a browser that does not support Java or has Java 
support disabled. For example:
NOTSUPPORTED="<B> Browser must support Java to
view ColdFusion Java Applets</B>"
By default, if no message is specified, the following message appears:
<B>Browser must support Java to <BR>
view ColdFusion Java Applets!</B>
Example
<!--- This example shows the use of CFTREE in a CFFORM.
The query takes a list of employees, and uses CFTREE and CFSELECT
to display the results of the query.  In addition, CFGRID is used
to show an alternate means of displaying the same data --->
<!--- set a default for the employeeNames variable --->
<CFPARAM NAME="employeeNames" DEFAULT="">
<!--- if an employee name has been passed from the form,
set employeeNames variable to this value --->
<CFIF IsDefined("form.employeeNames")>
<CFSET employeeNames = form.employeeNames>
</CFIF>
<!--- query the datasource to find the employee information--->
<CFQUERY NAME="GetEmployees" DATASOURCE="cfsnippets">
SELECT   Emp_ID, FirstName, LastName, EMail, Phone, Department
FROM     Employees where lastname 
         <CFIF #employeeNames# is not "">= ’#employeeNames#’</CFIF>
</CFQUERY>
<HTML>