24
Chapter 2: Changes in ColdFusion MX 7
Using cfform in a multihomed environment
In ColdFusion 5, the
cfform
tag used inline JavaScript code for validation. In ColdFusion MX,
cfform
includes the CFIDE/scripts/cfform.js file, which contains all JavaScript. However, if your
application runs in a hosted environment with multiple virtual websites, your virtual website may
not contain a CFIDE directory, which causes JavaScript errors when using
cfform
.
If you encounter this problem, use one of the following solutions:
•
Use the Default CFFORM ScriptSrc Directory field on the ColdFusion MX Administrator to
specify the default path (relative to the web root) of the directory containing the cfform.js file.
•
Ask your hosting provider to provide a copy of cfform.js and change your cfform tags to use
the
scriptsrc
attribute, specifying the location of this file.
•
Ask your hosting provider to modify your virtual website to include a virtual mapping for the
CFIDE directory.
The application.cfc file
The updated application framework in ColdFusion MX 7 lets you use a file named
Application.cfc to control your application and keep track of application events. You use
Application.cfc instead of Application.cfm. Application.cfc methods are triggered when
application, sessions, and requests start or stop, and when the application encounters an
exception.
If your application already uses a file named Application.cfc, you must rename it.
Running multiple ColdFusion versions
If you run ColdFusion MX 7 alongside a previous ColdFusion version, only one version can use
an external web server. In this case, use the built-in web server with ColdFusion MX 7 until you
are ready to switch the external web server. At that point, run the Web Server Configuration Tool,
as described in
Configuring and Administering ColdFusion MX
.
Scheduler considerations
When you install ColdFusion MX 7 on a computer that is running a previous ColdFusion
version, the ColdFusion Administrator automatically migrates a variety of settings, including
scheduled tasks. If you run ColdFusion MX 7 alongside ColdFusion MX or ColdFusion MX 6.1,
scheduled tasks with the same name can collide. To avoid this issue, open the ColdFusion
Administrator and rename scheduled tasks for one version or the other.
Other changes in ColdFusion MX 7
This section describes changes and enhancements in ColdFusion MX 7. Many of these changes
may result in changes to your applications. For a complete list of features, enhancements, and
changes in ColdFusion MX 7, see the Release Notes at
www.macromedia.com/go/
cfmx7_releasenotes
.