The easy way is with <cfsavecontent>. Look it up -- it basically allows you
to do whatever you would normally do to generate content, but saves it to a
variable.
-- Ben Doom
Programmer & General Lackey
Moonbow Software, Inc
: -----Original Message-----
: From: jeremy [mailto:[EMAIL PROTECTED]
: Sent: Monday, June 23, 2003 2:48 PM
: To: CF-Talk
: Subject: <cfset = contents of array?>
:
:
: Having trouble here. I am writing the contents of and array out like so
:
: <cfoutput><a
: href="#myItems[i].link.xmltext#">#myItems[i].title.xmltext#</a><br>
: #myItems[i].description.xmltext#</cfoutput><hr>
: </cfloop>
:
: After it is looped through and displayed I want to write this to a text
: file. So right after the above code I did
:
: <cffile
: action = "write"
: file = "c:\inetpub\wwwroot\feedoutput.txt"
: output = ""
: addNewLine = "No">
:
: Problem I am having is how do I get the looped through content into the
: output = "". There must be a easy way. I can't seem to get a large
: <cfset mycontent = "<cfoutput><a
: href="#myItems[i].link.xmltext#">#myItems[i].title.xmltext#</a><br>
: #myItems[i].description.xmltext#</cfoutput><hr>
: </cfloop>"> to work.
:
:
: jeremy
:
:
:
:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at
http://www.coolfusion.com
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4