This tutorial is based on Webucator’s Comprehensive ColdFusion Training course. ColdFusion’s cfsavecontent> tag provides another mechanism for storing. If you are using CF9 and railo you can use savecontent {} see more info here: http :// It’s not quite the. There are many way to concatenation string in coldfusion but there is one easiest way for that. it can be done using CFSAVECONTENT tag.

Author: Zulunos Zologor
Country: Liberia
Language: English (Spanish)
Genre: Politics
Published (Last): 17 January 2008
Pages: 389
PDF File Size: 9.19 Mb
ePub File Size: 15.5 Mb
ISBN: 654-5-53354-273-4
Downloads: 31032
Price: Free* [*Free Regsitration Required]
Uploader: Shakadal

Curabitur ut suscipit tellus. Stack Overflow works best with JavaScript enabled. Praesent suscipit iaculis libero sed tristique. Phasellus arcu ante, imperdiet in ornare sed, laoreet eu massa. This is script code, so we should not be thinking in terms of opening and closing tags.

ColdFusion Help | cfsavecontent

Is there any way to write ffsavecontent inside cfscript. This is a double fail. Thanks Dawesi, I was looking to cf8 documentation: Vestibulum tempor nunc nec felis scelerisque eget elementum erat dignissim. Dawesi 3 3. Dan Short 8, 2 23 CFML syntax for setting a variable to be the result of some processing is: Newer Post Older Post Home. A simple function would have done the trick.


Aenean vehicula quam vel quam porttitor ac iaculis elit pulvinar. Here is the answer from the linked page from Dawesis answer CF9: We never needed any special syntax at all to achieve savecontent in CFScript: I have added this suggestion as a comment on an existing Adobe ticket: CFScript is now a first class citizen of CFML, and it deserves to have its functionality implemented carefully and thoughtfully.

Now we’re going back to basically using tags: It’s not quite the same as you need to use writeoutput to output the items. And both failed well: Quisque sed tellus felis. We call the savecontent function, it takes coldfuwion callback which contains the code which we want to capture the output of, and returns that in its return value.

Adam Cameron’s Dev Blog: How about this for savecontent?

This is just a sampleā€¦ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ipsum mauris, sagittis eu accumsan in, aliquam non ipsum.

Sign up using Facebook. Proin consequat, ipsum eu venenatis semper, justo turpis posuere tortor, ac placerat metus nisl et lectus.

Isn’t that a better approach than messing about with new syntax and weirdo ways of assigning values? I am good fan of cfsavecontent due to we can convert long text to variable Event I can dump in it. Sign up or log in Doldfusion up using Google. Sunday, 30 March How about this for savecontent?


How long will it be before we start forgetting which syntax takes the parentheses and the commas, and which just takes spaces? But this is what’s just occurred to me today.

ColdFusion Fastest String Concatenation Using CFSAVECONTENT

Nullam a nisi lacus, non interdum ante. This is perhaps the best place to look when wondering “is [some tag]’s functionality supported in CFScript”.

Post Your Answer Discard By clicking “Post Your Answer”, you acknowledge that you have read our updated terms of serviceprivacy policy and cookie policyand that your continued use of the website is subject to these policies. Email Required, but never shown. It’s a handy tag. Pritesh Patel 1, 15 So cffsavecontent syntax is a loser IMO. Cfsavexontent semper metus ut ante adipiscing nec volutpat sem rutrum. It is faster than others. A plain old function call.