Question : trying to use a simple ajax controller, in coldfusion page Displays nothing

Hello Experts !

I am trying to do a simple cfform and new to ajax controls,

http://www.forta.com/blog/index.cfm/2007/5/31/ColdFusion-Ajax-Tutorial-2-Related-Selects

 used the exact code in Ben forta's blog, but I could not see any data or any error, The file is not in the web root and I suspect this is the reason...I can see the results when I put the files directly under the root.
what should be my next step, in order make this page work when not inside the root...

Answer : trying to use a simple ajax controller, in coldfusion page Displays nothing

Are you referring to the art.cfc component in this?

<cfselect name="mediaid"
                bind="cfc:art.getMedia()"
                bindonload="true" />


The code can be anywhere under your webroot, and you refer to your art.cfc file using dot notation starting from the webroot.  For example, if your path is  /library/components/art.cfc then you would use...


<cfselect name="mediaid"
                bind="cfc:library.components.art.getMedia()"
                bindonload="true" />

I think an earlier version of CF had a but with this, I ended up leaving my cfc at the root level, the calling code could be placed anywhere.
Random Solutions  
 
programming4us programming4us