[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Cfform help

Posted on 2009-04-16
Medium Priority
Last Modified: 2013-12-24
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.
Question by:usky1
LVL 19

Expert Comment

ID: 24161809
you will have to recreate a mapping

Author Comment

ID: 24161847
If I copy the cffrom.js to another directory and map to it, will the cfform parameters find it?
LVL 36

Expert Comment

ID: 24162878
"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

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

LVL 27

Accepted Solution

azadisaryev earned 2000 total points
ID: 24163738
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.

LVL 27

Expert Comment

ID: 24163744
PS: "anywhere you want" = under your web root or in a virtual dir configured in your web server.


Author Closing Comment

ID: 31571168
thanks for the information.

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question