RE: write a file using CFFILE with CF tags in it

2003-12-22 Thread Raymond Camden
The parser may be getting confused - but one issue you have for sure is the
pound signs. If you want to write #foo# to a file, you have to escape the
pound signs and use ##foo##.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: write a file using CFFILE with CF tags in it

2003-12-22 Thread Pascal Peters
Use the char() function for ,  and #
-Original Message-
From: Ketan Patel [mailto:[EMAIL PROTECTED] 
Sent: maandag 22 december 2003 16:31
To: CF-Talk
Subject: write a file using CFFILE with CF tags in it

Hi,
I want to write a file with following 2 cf tags in it

cfset id = #myquery.id#
cfinclude template=../mypage.cfm

cffile action="" mode=777 file=#Trim(Lcase(myquery.name))#.cfm
output=

cfset id = #myquery.id#
cfinclude template=../mypage.cfm

 addnewline=no

I am getting an error.

Ketan Patel 
_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: write a file using CFFILE with CF tags in it

2003-12-22 Thread Paul Giesenhagen
Try this:

cfset variables.left = 
cfset variables.right = 

cffile...
#variables.left#cfset id = myquery.id#variables.right#
#variables.left#cfinclude template=../mypage.cfm#variables.right#
/cffile

Paul Giesenhagen
QuillDesign

- Original Message - 
From: Ketan Patel 
To: CF-Talk 
Sent: Monday, December 22, 2003 9:30 AM
Subject: write a file using CFFILE with CF tags in it

Hi,
I want to write a file with following 2 cf tags in it

cfset id = #myquery.id#
cfinclude template=../mypage.cfm

cffile action="" mode=777 file=#Trim(Lcase(myquery.name))#.cfm
output=

cfset id = #myquery.id#
cfinclude template=../mypage.cfm

 addnewline=no

I am getting an error.

Ketan Patel
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: write a file using CFFILE with CF tags in it

2003-12-22 Thread Raymond Camden
Eh? cffile ... content /cffile is not valid.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: write a file using CFFILE with CF tags in it

2003-12-22 Thread Ketan Patel
Thanks Jack. Works fine now.
Ketan Patel
 -Original Message-
From: Jack Dalaa [mailto:[EMAIL PROTECTED]
Sent: Monday, December 22, 2003 9:58 AM
To: CF-Talk
Subject: Re:write a file using CFFILE with CF tags in it

Doh, minor correction, you need double pound signs or the myquery.id will
have to be resolved, so use this instead:

cfset WhatToWrite = 'cfset id =
##myquery.id###CHR(10)##CHR(13)#cfinclude template=../mypage.cfm'

cffile action="" mode=777 file=#Trim(Lcase(myquery.name))#.cfm
output=#WhatToWrite# addnewline=no

.. That should work.

Jack

 Use:

 cfset WhatToWrite ='cfset id = #myquery.
 id##CHR(10)##CHR(13)#cfinclude template=../mypage.cfm'

 cffile action="" mode=777 file=#Trim(Lcase(myquery.name))#.
 cfm output=#WhatToWrite# addnewline=no

 Make sure there's no wrapping or line breaks in the cfset.


 Jack

 Hi,
 I want to write a file with following 2 cf tags in it
 
 cfset id =#myquery.id#
 cfinclude template=../mypage.cfm
 
 cffile action="" mode=777 file=#Trim(Lcase(myquery.name))#.
 cfm output=
 
 cfset id =#myquery.id#
 cfinclude template=../mypage.cfm
 
  addnewline=no
 
 I am getting an error.
 
 
 
 
 Ketan Patel

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]