along the lines of
<cfset myVAr = "<cfout" & "put>"
perhaps and then escaping the quotes? have to do this occasionally when
dynamically writing javascript (document.write("<scr" + "ipt>") and so
forth)
just an idea
barry.b
-----Original Message-----
From: Gareth Edwards
Sent: Tuesday, 11 May 2004 9:15 AM
To: CFAussie Mailing List
Subject: [cfaussie] RE: dynamic built cfoutput tags?
I understand what you mean, but how do I build the string without it
executing?
-----Original Message-----
From: Stewart Johnston [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 11 May 2004 9:03 AM
To: CFAussie Mailing List
Subject: [cfaussie] RE: dynamic built cfoutput tags?
Gareth it will work
preliminary stuff
<cf_buildyourstringtoexecute>
<cffile write to file>
<cfinclude file>
<cffile delete file>
continue execution
stewart
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gareth
Edwards
Sent: Tuesday, 11 May 2004 8:53 AM
To: CFAussie Mailing List
Subject: [cfaussie] RE: dynamic built cfoutput tags?
If I was to build the string on the same page that calls it? wouldnt
there be issues with the code still executing?
Gareth.
-----Original Message-----
From: Stewart Johnston [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 11 May 2004 8:45 AM
To: CFAussie Mailing List
Subject: [cfaussie] RE: dynamic built cfoutput tags?
you can actually build a string of cfml (or read from a db) and save it
to a temp file and cfinclude it the performance hit is not as bad as you
might think - its not ideal but it can be useful in some circumstances -
dont forget to clean up the temp file and error handle it so your clean
up always works
Stewart
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gareth
Edwards
Sent: Tuesday, 11 May 2004 8:04 AM
To: CFAussie Mailing List
Subject: [cfaussie] dynamic built cfoutput tags?
You cant build a set of cfoutput tags dynamically (question and
statement) ? Currently we have to copy/paste one bit of code into
different scenerios so that we can modify the positions of the <cfoutput
query="queryname" group="fieldname"> tags has anyone come across a
better way to do this / dynamically build <cfoutput> tags without using
the database for the grouping of fields?
Maybe I'm going down the wrong track.. but is it possible to build a
page and evaluate the whole page after the page is built? I guess if I
could do this, it would fix part of my problem.
Currently the only part solution I have come accross is nesting cfoutput
query group's and using the same field name for grouping where a group
is not required. I'm sure there must be a better way. If I throw the
same if statement around any of the cfoutput open and close tags.. it
throws an error.
<cfoutput query="queryname" group="fieldname1">
<!--- CODE HERE IF ABOVE AND BELOW GROUP ARE NOT THE SAME --->
<cfoutput group="fieldname1">
<!--- CODE HERE IF ABOVE AND BELOW GROUP ARE NOT THE SAME --->
<cfoutput group="fieldname2">
<!--- CODE HERE IF ABOVE AND BELOW GROUP ARE NOT THE SAME --->
</cfoutput>
</cfoutput>
</cfoutput>
Maybe I'm going down the wrong track all together? has anyone done
something with a concept similar but using a different method?
Gareth.
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004