<CFSAVECONTENT> Tag - ColdFusion


>> Return to ColdFusion Tag Index

The <CFSAVECONTENT> tag allows you ...



  <CFSAVECONTENT> Comments from Macromedia LiveDocsLiveDocs Comments - coldfusion - 6.1 - htmldocs - tags-a29.htm
you must have <cfsetting enablecfoutputonly="no"> OR must surround all contents by a cfoutput If using cfsavecontent to extend flash based cfforms, or any other usage of this tag where the actual text of the contents is needed (not neccesarily running cfcode within it).

again, seems redundant to some, but this problem bugged me for a few hours not realizing why my actionscript wasnt executing.

LiveDocs Comments - coldfusion - 6.1 - htmldocs - tags-a29.htm
I just did an upgrade from CFMX 6,1,0,63958 to 6,1,0,83762.
I am getting "null pointer" errors when using cfsavecontent in certain situations; with the argument variable="variablename", this causes an error, but it didn't before.

When I change the syntax to
<cfsavecontent variable=variablename> (no quotes)
Now it works.

Is this a deliberate change, or perhaps broken by some other coincidence? is it related to this change:
http://www.macromedia.com/support/coldfusion/releasenotes/mx/mx61_fixed_bugs.html
look for the number 49504 ?

LiveDocs Comments - coldfusion - 6.1 - htmldocs - tags-a29.htm
You will need to use <cfoutput> tags around the output that you are saving if you want to capture the variable values, instead of the variable names! This might be obvious to others, but it wasn't to me.



[Top]


Recommended Books

[Top]

Web Sites

[Top]

Copyright © 2003- 2008, Orville Paul Chomer, All Rights Reserved