Are the cfc and cfm files in the same web directory? Using Firebug for Firefox is quite useful for debugging javascript. That might be a good start to ensure the script is running. It will also show any errors.
Byron Mann Lead Engineer & Architect HostMySite.com On Nov 17, 2013 6:33 PM, "Torrent Girl" <moniqueb...@gmail.com> wrote: > > I am trying to do something as a simple CFC JSON call and can't get this > to work. > > I have been wrestling with this for over a week. > > > Here is my code: > > <script type="text/javascript" src=" > http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"></script> > > <script type="text/javascript"> > $(function() { > $("#category").autocomplete({ > source: "ajaxlookup.cfc?method=getInstitutions&returnformat=json" > }); > }); > </script> > <cfform> > category: <input id="category" name="category" /> > > </cfform> > > > > > > > Can ANYONE help? > > > NOTE: When I browse the CFC it works it just doesn't work on the cf > template. > > Could there be server setting that would interfere with a JSON call? > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:357092 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm