Listing 1:
<html>
<head>
<title>Hello World!</title>
 <meta name="PalmComputingPlatform" content="true">
</head>

<body>
Hello World!
<body>
<html>
 
 

Listing 2
<html>
<head>
 <title>ColdFusion!</title>
 <meta name="PalmComputingPlatform" content="true">
 <meta name="LocalIcon" content="images/allaire.gif">
</head>

<body>

<table>
 <tr>
     <td><IMG height=30 src="images/allaire.gif" width=30></TD>
     <td>The following is a sample ColdFusion Web Clipping Application</TD>
   </tr>
 </table>
<a href="http://www.etechdev.com/palm/coldfusion_form.cfm">Launch ColdFusion Sample App!</a>

</body>
</html>
 
 

Listing 3:
<html>

<head>
 <title>ColdFusion!</title>
 <meta name="PalmComputingPlatform" content="true">
</head>

<body>

Enter part of a company name or last name and hit search.
<form action="coldfusion_result.cfm" method=post>
 <INPUT name=KeyWord>
 <INPUT name=Search type=submit value=Search>
</form>

</body>
</html>
 

Listing 4:
<html>
<head>
 <title>ColdFusion!</title>
 <meta name="PalmComputingPlatform" content="true">
</head>

<body>

<!­- Query the database for the available contents by last name and company. ­->
<cfset myvar='%' & UCase(form.keyword) & '%'>
<CFQUERY NAME="contacts" DATASOURCE="Sales">
 select c.company_name, p.first_name, p.last_name, p.phone_1, address_line_1, city,
state_province, zip_code
  from company c, people p, address a
  where c.client_id = p.client_id and a.client_id = c.client_id and a.record_type = '1' and
           (ucase(company_name) like '#myvar#' or ucase(last_name) like '#myvar#')
  order by company_name, last_name
</CFQUERY>

<!--- Display the records found. --->
<CFOUTPUT QUERY="contacts">
<tr>
 <td >
  <b>#contacts.company_name#</b><br>
  #contacts.first_name# #contacts.last_name#<br>
  #contacts.phone_1#<br>
  #contacts.address_line_1#<br>
  #contacts.city# #contacts.state_province# #contacts.zip_code#<br><br><br><br>
 </td>
</tr>
</CFOUTPUT>

<!--- If no records were found matching keyword, then return message. --->
<cfif contacts.recordcount EQ 0>
 No Records Found.
</cfif>

</body>
</html>