1

The simple city/state example in the documentation does not work in CF2018 -- I can't possibly be the first one to discover this, am I? The state dropdown does not populate on load. Works perfectly fine on my old install of CF11.

Update:

Interesting...looks like a 404 error:

cfmessage.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) 
cfajax.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) 
masks.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) 
cfform.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) 
binding.cfm:18 Uncaught ReferenceError: ColdFusion is not defined at binding.cfm:18 
binding.cfm:25 Uncaught ReferenceError: ColdFusion is not defined at binding.cfm:25 
SOS
  • 6,430
  • 2
  • 11
  • 29
Sung
  • 480
  • 2
  • 11
  • 2
    "Does not populate" ... any messages in the browser console? Have you tried wrapping it all in a try-catch block and seeing if ColdFusion has any objections? – TRose Jul 01 '19 at 20:35
  • Interesting...looks like a 404: cfmessage.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) cfajax.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) masks.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) cfform.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) binding.cfm:18 Uncaught ReferenceError: ColdFusion is not defined at binding.cfm:18 binding.cfm:25 Uncaught ReferenceError: ColdFusion is not defined at binding.cfm:25 – Sung Jul 01 '19 at 20:42
  • The example uses an XML file -- I created one. It's using ExpandPath, which shouldn't be a problem, but I removed it and replaced it with the actual path. Still same errors. – Sung Jul 01 '19 at 20:44
  • 1
    Thanks for the prod, TRose. the cf_scripts virtual directory wasn't created so I created it, and boom, everything works. I wonder if it's because this was an upgrade from CF11? – Sung Jul 01 '19 at 20:48
  • That was my next guess. Glad it worked! – TRose Jul 01 '19 at 20:50
  • 1
    You should outline the steps you took so that it will help the next person. – James A Mohler Jul 01 '19 at 23:22
  • Good idea, James -- very simple solution. Does the cf_scripts virtual directory exist? If not, then just create it. My install is on the D drive, so it looks like this: "D:\ColdFusion2018\cfusion\wwwroot\cf_scripts". – Sung Jul 03 '19 at 13:35
  • Something else I just realized -- none of my CFSELECT date CSS popups are working. Turns out 2 two other directories weren't copied: D:\ColdFusion11\cfusion\wwwroot\CFIDE\scripts\ajax\resources\yui -> D:\ColdFusion2018\cfusion\wwwroot\cf_scripts\scripts\ajax\resources and D:\ColdFusion11\cfusion\wwwroot\CFIDE\scripts\ajax\yui -> D:\ColdFusion2018\cfusion\wwwroot\cf_scripts\scripts\ajax Not cool, Adobe...not cool. – Sung Jul 03 '19 at 15:37
  • 1
    Folks, keep in mind this was an upgrade from CF11 to CF2018. If you do a clean install, I bet everything works just fine. – Sung Jul 03 '19 at 15:40

0 Answers0