yeah, exactly!

but  my outputinfo is:

<cfset Outputinfo="
<HTML><HEAD><TITLE>THISPAGE</TITLE></HEAD>
<BODY>
<cfoutput>
<cfloop collection="#cart#" item="i">
<table>
<tr>
<td width=""140"" align=center>#cart[i][2]#</td>
<td width=""140"" align=center valign="bottom">#cart[i][4]#</td>
<td width=""140"" align=center class="smtext2">#cart[i][5]#</td>
<td width=""140"" align=center>#dollarformat(cart[i][3])#</td>
</tr>
</table>
</cfloop>
</cfoutput>
</BODY></HTML>">

<CFFILE ACTION=WRITE FILE="NewFile" OUTPUT="#OUTPUTINFO#">

any ideas?
the error message seemed like cffile couldn't transfer variables and cfloop
to text file.

thanks again!


----- Original Message -----
From: "Adkins, Randy" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, April 13, 2001 11:42 AM
Subject: RE: CFFILE-WRITE


> Are you building a page that will contain something like:
>
> <cfset Outputinfo="
> <HTML><HEAD><TITLE>THISPAGE</TITLE></HEAD>
> <BODY>
> <CFOUTPUT QUERY="this" DATASOURCE="That">SELECT * FROM
> myTable</CFOUTPUT>
> <CFOUTPUT QUERY="this">#THIS.MyField#<BR></CFOUTPUT>
> </BODY></HTML>">
>
> <CFFILE ACTION=WRITE FILE="NewFile" OUTPUT="#OUTPUTINFO#">
>
>
> OR something like:
>
> <cfset Outputinfo="
> <HTML><HEAD><TITLE>THISPAGE</TITLE></HEAD>
> <BODY>
> THIS
> DOG
> RAN
> FAST
> </BODY></HTML>">
>
> <CFFILE ACTION=WRITE FILE="NewFile" OUTPUT="#OUTPUTINFO#">
>
> -----Original Message-----
> From: Chang Liu [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 13, 2001 11:34 AM
> To: CF-Talk
> Subject: Re: CFFILE-WRITE
>
>
> sorry, i didn't make it clear.
>
> this is my tag:
> <cfset
> ouputBody="<HTML>
> <BODY>
> i want to put struct and array variables and cfloop here
> </body>
> </html>">
>
> <cffile action="write" output="#ouputBody#">
>
> thanks!
>
> ----- Original Message -----
> From: "Adkins, Randy" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Friday, April 13, 2001 11:13 AM
> Subject: RE: CFFILE-WRITE
>
>
> > Hopefully I am on the same sheet of what you are asking:
> >
> > Since the Output will be changing as the struct and array
> > information changes, you can place output tags as an
> > outer loop
> >
> > <cfoutput>
> > <cfloop index=1 from=1 to=#whatever#>
> > <cfset mycontent = #evaluate("employee." & whatever)#>
> > <cffile action=append file="somefilename"
> > output="#myoutput#">
> > </cfloop>
> > </cfoutput>
> >
> > Is this what you are asking for???
> >
> >
> >
> > -----Original Message-----
> > From: Chang Liu [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, April 13, 2001 11:14 AM
> > To: CF-Talk
> > Subject: CFFILE-WRITE
> >
> >
> > Hi all,
> >
> > I am using <cffile action="write" output="content">.
> >
> > I'd like to put coldfusion tags which include struct and array variables
> and
> > cfloop to the OUTPUT as content.
> >
> > anyone know how to do this?
> >
> > please help, thank you in advance!
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to