Reputation: 567
With ColdFusion 2018 using the <cfgrid>
with the format set to "html".
<cfform action="" method="POST" name="TEST">
<cfgrid name="test" format="html">
<CFGRIDCOLUMN NAME="A" HEADER="A" >
<CFGRIDCOLUMN NAME="B" HEADER="B" >
</cfgrid>
</cfform>
Running the above sample code on Chrome, I receive the following errors:
https ://test-url/cf_scripts/scripts/ajax/yui/yahoo-dom-event/yahoo-dom-event.js net::ERR_ABORTED 404 (Not Found)
GET https ://test-url/cf_scripts/scripts/ajax/yui/animation/animation-min.js 404 (Not Found)
Uncaught TypeError: Cannot read property 'id' of undefined ext-all.js:18
at i.getKey (ext-all.js:18)
at i.add (ext-all.js:18)
at c (ext-all.js:18)
at i.onSelectChange (ext-all.js:18)
at i.doMultiSelect (ext-all.js:18)
at i.doSelect (ext-all.js:18)
at i.select (ext-all.js:18)
>at $G.Actions.onLoad (cfgrid.js:490)
at b (ext-all.js:18)
After looking into this I found that the YUI API used to come bundled with ColdFusion has been deprecated and removed with Coldfusion 2016 update 3
According to the documentation only the following tags should be affected by the change ( Im guessing one of these is a dependency for <CFGRID>
?)
Without adding the depreciated API back into ColdFusion 2018... is there anyway to decouple YUI from the <CFGRID>
tag as it behaves normally even with the error?
Can anything be done about the error from ext-all.js or is this a Coldfusion bug?
Upvotes: 4
Views: 773
Reputation: 53
Try Updating to the latest update of CF 2018 , update 5 , along with the YUI library in place. You might possibly skip all the above errors.
Only IE will still have a problem with error like this Unable to set property 'page' of undefined or null reference
Upvotes: 0