问题标签 [cfoutput]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
56 浏览

coldfusion - Bootstrap Modal INSIDE Coldfusion tags fails with "Invalid CFML construct"

The Bootstrap button and modal code below fails when the code is placed inside ColdFusion CFOUTPUT QUERY tags.

If I move the code outside of the cfoutput query then it works well.

Obviously, the problem is with the BootStrap modal single hashtag requirement: target="#staticBackdrop" for the button.

Inside the cfoutput, coldfusion expects two hashtags. The modal does not function without the single hashtag.

Is there a work-around?