• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 199
  • Last Modified:

Cfform help

Is there a way to move the cfform.js to a separate directory and still have a mapping to it.
My company has disable the mapping to CFIDE and it has killed all the form functions because of cffrom. I know that I can go and putting javascripting but because of the the number of sites and forms I wanted to see if anyone had a way around this.
0
usky1
Asked:
usky1
1 Solution
 
erikTsomikSystem Architect, CF programmer Commented:
you will have to recreate a mapping
0
 
usky1Author Commented:
If I copy the cffrom.js to another directory and map to it, will the cfform parameters find it?
0
 
SidFishesCommented:
"My company has disable the mapping to CFIDE "

exactly why would they do that? A ton of the functions of cf require access to cfide... that's why it's hard coded into cfadmin. Without it cf is severely crippled

if they are concerned about access to admin functions (and they -should- be on a production server) simply remove the administrator subdir of cfide



0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
azadisaryevCommented:
copy the whole CFIDE/scripts folder to anywhere you want, then use either <cfajaximport scriptsrc="path/to/new/scripts/folder"> at the top of your page, or the scriptsrc attribute of <cfform> tag. note that you can have only one scriptsrc per page - so if you have several cfforms on the same page use the <cfajaximport> way.

Azadi
0
 
azadisaryevCommented:
PS: "anywhere you want" = under your web root or in a virtual dir configured in your web server.

Azadi
0
 
usky1Author Commented:
thanks for the information.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now