|
cold fusion tutorials - Editor B L
RajaSrinivas
The Tutorial starts with tool for developing ColdFusion Application.
Macromedia presents us Macromedia Dreamweaver MX for building ColdFusion MX
applications.
Dreamweaver has visual design feature and best code editing feature of
ColdFusion Studio.
Dreamweaver supports the latest ColdFusion MX feature and all required tags.
The Dreamweaver is shown below
It supports the latest ColdFusion MX features and tags. Macromedia HomeSite+
is also included which combines all the features of ColdFusion Studio and
HomeSite 5.
With Dreamweaver you can test your application code from a local or remote
client. Using this tool the application can be saved directly to the server
computer where ColdFusion is installed.
To download Dreamweaver & flashplayer
http://www.macromedia.com/devnet/mx/coldfusion/articles/rd_cf.html
Advanced tag in ColdFusion 5
The Applications you have built very well but you will come across some
scripts take along time to process. Sometimes it takes 15 seconds to display
the page. Manytimes Web Server doesn’t response immediately. Thus the
powerful progress meter is been used here. The Progress meters display
graphically.
CFFLUSH
CFFLUSH is a new feature in ColdFusion 5. used to speed up the delivery of
their Web pages. For example:
Welcome to ColdFusion
<CFLOOP INDEX=”Y” FROM=1 TO =”600000”>
<CFSET A = Y * 2>
</CFLOOP>
Done
The text Welcome to ColdFusion is under the loop 1 to 600000. since the text
appear before loop won’t see anything in your browser until ColdFusion has
finished looping six hundred thousand times. You can see immediately both
“Welcome to ColdFusion” and “Done” at the same time.
CFFLUSH allows us to push the text to the browser without waiting for the
script to be done. CFFLUSH after execution sends all the previous text that
has been rendered to the browser.
Welcome to ColdFusion
<CFFLUSH>
<CFLOOP INDEX=”Y” FROM=1 TO =”600000”>
<CFSET A = Y * 2>
</CFLOOP>
Done
When you run this script on your IE browser you won’t able to view “ Welcome
to Coldfusion” even though browser receives it. In order to view the text on
IE slight modification is required.
Welcome to ColdFusion
<CFOUPUT>#RepeatString(“ “, 300)# <CFOUTPUT>
<CFFLUSH>
<CFLOOP INDEX=”Y” FROM=1 TO =”600000”>
<CFSET A = Y * 2>
</CFLOOP>
Done
To make visible in IE the set of blanks are outputted. The RepeadString
function will add 300 blank spaces to the text. This will never reduce your
downloaded speed.
Now try running all the three code in your browser. You could see “ Welcome
to ColdFusion appear immediately then after 20 to 30 seconds “Done” is
displayed.
Thus with one line of code ie according to the count of IE pad we made our
script appear to run faster.
To install Macromedia ColdFusion MX 6.1
http://www.macromedia.com/support/documentation/en/coldfusion/index.html -
tutorials
Some of the sites listed below for Coldfusion installation and documentation
http://www.macromedia.com/software/coldfusion/productinfo/features/whats_new
http://www.macromedia.com/support/coldfusion/tutorial_index.html
Cold fusion index
what is cold fusion
cold fusion servers
cold fusion web hosting
cold fusion tutorial
variable in cold fusion |