It was a couple of years ago that I did this, so I whipped up an example on
my laptop just now and it all worked under (shudder) CF 4.5... Not sure how
much DE, EVALUATE and ## have changed since then, but it worked 5 minutes
ago on CF 4.5

As far as CF is concerned < and > are just characters like A Z and 9.

Aaron

----- Original Message -----
From: "Gareth Edwards" <[EMAIL PROTECTED]>
To: "CFAussie Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, April 02, 2004 4:42 PM
Subject: [cfaussie] Re: Building Custom tags that do all the work Problem.


this doesnt throw an error when using  the GT LT signs?

Gareth.

-----Original Message-----
From: Aaron DC [mailto:[EMAIL PROTECTED]
Sent: Friday, 2 April 2004 4:44 PM
To: CFAussie Mailing List
Subject: [cfaussie] Re: Building Custom tags that do all the work
Problem.


Hi Gareth

The following is something that will work:

Step 1: Escape the hashes
==================
<CF_DoWork Var="<a
href='userdetails.cfm?##query.userid##'>##query.username##</a>">


Step 2: defer evaluation (in DoWork.cfm)
=============================
<CFQUERY ....></CFQUERY>

<CFOUTPUT QUERY=...>
    #Evaluate(DE(Attributes.Var))#
</CFOUTPUT>

If you want to evaluate an expression, use brackets as follows:

<CF_DoWork Var="##(Somevar + someothervar)##">

Not a complete solution, a rough sketch, but should get you started. I have
done this to the backteeth and it all works :)

HTH
Aaron

----- Original Message -----
From: "Gareth Edwards" <[EMAIL PROTECTED]>
To: "CFAussie Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, April 02, 2004 3:19 PM
Subject: [cfaussie] Building Custom tags that do all the work Problem.


Currently working on a problem that I am having with a custom tag.

I wish to send the custom tag a query and a seperate array of structures.

Problem is because this custom tag needs to be used in a few different
situations I need to be able to pass a string to the custom tag with the
values I want by looping through the query "INSIDE" the custom tag.

ie. On the caller page I have this.

contentArray[4] = StructNew();
contentArray[4].value = "<a
href='userdetails.cfm?#query.userid#'>#query.username#</a>";
contentArray[4].size = "15%";

it then sends those values to the custom tag along with the "query"

The second line. How can I send the second value without evaluating it
untill it gets to the custom tag. Then the custom tag evaluating those query
values when it loops through the query.

Sorry if it is a bit unclear, I'm not sure how to explain my situation. Any
questions... let me know.

I have tried another of different methods of doing this and this is the only
way I can think of being able to easily change the string that is sent to
the custom tag, with values that get evaluated in the custom tag and not on
the caller page before the values are sent.

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

Reply via email to