Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cfform.js and Apache

Status
Not open for further replies.

mochalova

MIS
Sep 20, 2007
15
US
Hello,

I notice my cfform validation works in IIS but not on an Apache box.

Does cfform not work on Apache?

Thanks
 
It is most likely a problem with your mappings. CFForms use some additional files for validation. So it requires a mapping "/CFIDE/scripts" to access those file.



Enabling access to the cfform.js file
If you do not create a web server mapping for /CFIDE, and any of the applications under a virtual host use the cfform tag, you must enable the virtual host to find the JavaScript files under the CFIDE/scripts directory. To enable access to the these scripts, use one of the following options:

* Copy the original_web_root/CFIDE/scripts directory to a CFIDE/scripts directory on your virtual host.
* Modify all cfform tags to use the scriptsrc attribute to specify the location of the cfform.js file.




----------------------------------
 
Even with IIS, You'll find that your scripts will work fine in firefox and chrome without doing the mapping. The mapping is an issue with all versions of IE browsers.

It isn't a problem unless you want to use cfform / ajax / anything that generates flash content, etc.

Vegans are friends, not food...
 
You'll find that your scripts will work fine in firefox and chrome without doing the mapping

Really? I had always assumed that when /cfide was broken, it was universal ;) Too much time on intranets I suppose. Learn something new every day.

----------------------------------
 
A simple test of this is to create a page with 2 charts on a site without mapping. One jpg and one flash. In FF/Chrome you can see both. In IE, the JPG chart will display fine but the flash chart will not display.

Vegans are friends, not food...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top