I am good fan of cfsavecontent due to we can convert long text to variable (Event I can dump in it). But recently more started working with CFSCRIPT and can't figure out how to use it inside cfscript tag.
Is there any way to write cfsavecontent inside cfscript. As per my knowledge there is no such function or class available and sure it is pretty hard to implement as well.
Appreciate any feedback.
Thanks Pritesh
Here is the answer from the linked page from Dawesis answer (CF9):
savecontent variable="myVariable" { WriteOutput("Hello World"); }
If you are using CF9 and railo you can use savecontent {} see more info here:
http://www.isummation.com/blog/cfsavecontent-in-cf9-cfscript/
It's not quite the same as you need to use writeoutput to output the items. This can also done by appending output to a variable.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With