Question
cfc / ajax / must be in root directory
I am just starting to work with the CF 8 ajax. I am finding
many in posts/examples that to get the cfc to work, it must be in
the root directory. I am not finding specific information on what
is causing this other than a conflict with the application.cfm /
application.cfc file.
What is allowed and what is not allowed to go into an application file to allow .cfc to work in the same directory as the file calling it?
It is very inconvenient to have to place all the cfc files at the root and not in the same directory as the file calling it.
the last example i was working with comes from:
http://www.brucephillips.name/blog/index.cfm/2007/8/8/Updating-and-Adding-Records-Being-Displayed-In-ColdFusion-8s-cfgrid
which describes the .cfm and .cfc file to be in the same directory. (which doesnt work) -- but in the comments - there is the example of locating the .cfc file in the root directory and adding a slash (/) in front of the path. and this works for me.
I had the same problem yesterday trying to get the Ben Forta art.cfc autosuggest example working.
What is allowed and what is not allowed to go into an application file to allow .cfc to work in the same directory as the file calling it?
It is very inconvenient to have to place all the cfc files at the root and not in the same directory as the file calling it.
the last example i was working with comes from:
http://www.brucephillips.name/blog/index.cfm/2007/8/8/Updating-and-Adding-Records-Being-Displayed-In-ColdFusion-8s-cfgrid
which describes the .cfm and .cfc file to be in the same directory. (which doesnt work) -- but in the comments - there is the example of locating the .cfc file in the root directory and adding a slash (/) in front of the path. and this works for me.
I had the same problem yesterday trying to get the Ben Forta art.cfc autosuggest example working.