I am encountering an issue while trying to include jQuery in my ColdFusion application using the cfinclude
tag within a <script>
block. Here’s the code:
testing string
When I run this in BoxLang, the screen goes blank, and the message “testing string” is not printed. The logs show an error: “constant string too long,” followed by context.writeToBuffer()
with the jQuery code inside the braces.
However, when I replace the jQuery file with a simple JavaScript file, the page works correctly, and “testing string” is displayed.
I tested the same setup in both Lucee and Adobe ColdFusion, and they successfully print the string without any errors, with jQuery included via cfinclude
.
Any ideas on why this issue is occurring in BoxLang?