Accessibility

TechNote (Archived)

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 scriptSrc attribute of thecfform tag 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


AlertThis 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!

Get Adobe Flash Player

Creative Commons License

Search Support


Document Details

ID:tn_18653
Browser:Chrome
Internet Explorer
Netscape
Opera
Safari
Firefox

Products Affected:

coldfusion