I like to use the cfsavecontent tag in ColdFusion to easily save a bunch of HTML to a variable for later usage. However, in CFAjax, cfsavecontent doesn’t work. James Holmes posted a workaround for the problem. The issue is that CFAjax doesn’t like linefeeds in the returned output, and cfsavecontent passes linefeeds. Well, if you strip out the linefeeds before returning any content, things work fine. Also, you have to put cfoutput tags around all content in the cfsavecontent block.
cfsavecontent with cfajax
- Post author:yacoubean
- Post published:November 1, 2005
- Post category:Uncategorized