Accessibility

TechNote

Javascript error when using CFTextArea with CFAjaxProxy binding (ColdFusion 8.0)

Issue


Javascript functions break if a new linecharacter (\n) is entered in a cftextarea and the error "unterminated string constant" is displayed.

Reason


New line characters (\n) were not escaped by cfajaxproxy.

Solution


Replace /CFIDE/scripts/ajax/package/cfajax.js with an updated version.

  1. Rename CFIDE/scripts/ajax/package/cfajax.js to cfajax.orig
  2. Download 70459.zip and unzip cfajax.js to /CFIDE/scripts/ajax/package/.

You should have an updated CFIDE/scripts/ajax/package/cfajax.js and cfajax.orig in the same directory. Cfajax.orig may be deleted once you have tested the updated file.

AlertThis content requires Flash

To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player.

Download the free Flash Player now!

Get Adobe Flash Player

Creative Commons License

Search Support


Document Details

ID:kb402688

Products Affected:

coldfusion