cfform errors with ColdFusion MX on multihomed servers
Issue
When running ColdFusion MX in a multihomed environment,cfform may not work correctly. The symptoms can include:
- JavaScript runtime errors
- 404 errors for the /CFIDE/scripts/cfform.js file
- Required attribute validation does not occur
In ColdFusion 5, cfform generated inline JavaScript code to perform validation. In ColdFusion MX, that JavaScript is kept in a file instead and included where needed. The file, /CFIDE/scripts/cfform.js, may not be available in a hosted environment or if multiple websites have been defined on the server.
Solution
To resolve the issue, use one of the following solutions:
- Put a copy of the cfform.js file into a directory in your webroot and use the
scriptSrcattribute of thecfformtag to reference it.<cfform scriptSrc=/mysite/scripts/cfform.js> ...</cfform>
- Create a virtual directory within your website configuration to point to the /CFIDE/scripts directory under the default website.
- Copy the /CFIDE/scripts directory into the webroot of the new site.
Additional Information
- Hot fix issued for expired certificate on cfform controls (TechNote 18352)
- ColdFusion MX: Recommended configuration of multihomed Microsoft IIS web servers (TechNote 18307)
This content requires Flash
To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player.
Download the free Flash Player now!
