Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
JJBBDD #1
dynamic tag creation
Looking for a way to dynamically evaluate a tag from a string. eg:
<cfset tmp = '<cfset myRslt = "Hello">'>
<cfoutput>
#tmp#
</cfoutput>
this prints <cfset myRslt = "Hello"> after compilation.
[i want to be able to see the result of: #myRslt# -- but it ends up undefined
throwing evaluate() around it doesn't help either.
Anyone know a way to evaluate the tag, pre-compilation. I'm thinking I might
have to write the string to separate file, then call it as a ctag or include
it. I'm also thinking that's more trouble than it's worth. Does mach-ii
implement something like this?
thanks in advance for any advice.
-jacob
JJBBDD Guest
-
dynamic xml creation
How can I make XML dynamically inside tha Flash using AS? Basicly i need to make structure like these one: <root> <item></item> ...... -
Dynamic DataGridRow creation
Dear all, I am working with a datagrid populated by an XML via a WebService and I would like to populate my dataGrid dynamicaly (as I browse the... -
Dynamic content creation
I'm rather a newbie to flex, at the stage of considering it it is worth my time to get to know to it (or maybe laszlo...). I have this question:... -
Dynamic columns creation
Hi. I have a stored procedure that among other things returns a column with values that will be used to compose a temporary table. The number of... -
dynamic object creation
If I have something like this: s="Array" How whould I get something like this: aObject=s.new In "plain" english I am asking if I have a... -
BSterner #2
Re: dynamic tag creation
How come you're trying to store a CF "tag string"? Is this what you're trying
to do?
<cfscript>
myRslt = "Hello";
tmp = "myRslt";
WriteOutput( Evaluate( tmp ) ); //Outputs 'Hello'
</cfscript>
<cfabort>
BSterner Guest
-
JJBBDD #3
Re: dynamic tag creation
that's the idea, but I want to dynamically write the code for a <cfchart... >
tag then execute it. so it's more complicated than evaluating a variable.
the crux of the issue is that i need the option to include the SCALETO and
SCALEFROM attributes in a <CFCHART..> tag. i think the best way to solve this
is with an if/else switch but that leads to redundant code which drives me nuts.
JJBBDD Guest



Reply With Quote

