Cfform help

Posted on 2009-04-16
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

    you will have to recreate a mapping

    Author Comment

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

    Expert Comment

    "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

    LVL 27

    Accepted Solution

    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

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


    Author Closing Comment

    thanks for the information.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
    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…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now