The Development Process; Writing Code - MACROMEDIA COLDFUSION 4.5-DEVELOPING WEB Develop Manual

Developing web applications with coldfusion
Table of Contents

Advertisement

10

The Development Process

Whether you are creating a static HTML page or a ColdFusion application page, you
follow the same iterative process:
Write some code.
Save the code to a document or page.
View the page in a browser.
Modify the page.
Save the page again.
View it in a browser.
and so on...

Writing Code

Although you can code your application pages using NotePad or any HTML editor, this
manual will use ColdFusion Studio because it affords many features that make
ColdFusion development easier. See Using ColdFusion Studiofor details. If you haven't
already done so, you should install ColdFusion Studio.
From a coding perspective, the major difference between a static HTML page and a
ColdFusion application page is that ColdFusion pages contain ColdFusion Markup
Language (CFML). CFML is a markup language that's very similar in syntax to HTML
so Web developers find it intuitive.
Unlike HTML which defines how things are displayed and formatted on the client,
CFML identifies specific operations that are performed by ColdFusion Server.
To create a ColdFusion application page:
1.
Open ColdFusion Studio.
2.
Select File > New and select the Default Template for your new page.
3.
Edit the file so that it appears as below:
<HTML>
<HEAD>
<TITLE>Call Department</TITLE>
</HEAD>
<BODY>
<STRONG>Call Department</STRONG>
<CFSET Department="Sales">
<CFOUTPUT>
I'd like to talk to someone in #Department#.
</CFOUTPUT>
</BODY>
</HTML>
Developing Web Applications with ColdFusion

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 4.5-DEVELOPING WEB and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Coldfusion 4.5

Table of Contents