Tally List : mailing list management, archiving, and analysis
click for archive home
 
Archive of:
CF-Server
Cold Fusion Server Tech
 
home
24 hour view
quick stats
weekly updates
 
all tallylists
corporate solutions
archive your favorite
help / feedback


Search the Tallylist search by keyword:

About Cold Fusion :
product's home
product's list home
 
  Archived TallyList / CF-Server: 
Subject: RE: custom tags return
Gabriel Bulfon (39p/+0r)     Posted: Tuesday 16 Jan 2001
This post: 40 views, +0 rating

thank

-----Original Message----- From: DeVoil, Nick [mailto:Nick.DeVoil@bskyb.com] Sent: Tuesday, January 16, 2001 12:43 PM To: CF-Server Subject: RE: custom tags return

Gabriel

You can write the code in your example, but not without using the "Caller." scope inside you tag. Unless you defined a struct in the calling page. If the attribute is a struct, you can assign to its members within the body of the tag without saying "Caller.", because it's passed by reference. You'd have to say "Attributes." though.

I *think* either of the following would work:

Option 1

(main page)

<cf_myTag name="name"> <cfoutput>#name.value#</cfoutput>

(tag)

<cfset "Caller.#Attributes.name#.value" = "whatever">

Option 2

(main page)

<cfset name=structNew()> <cf_myTag name="#name#"> <cfoutput>#name.value#</cfoutput>

(tag) <cfset name = Attributes.name> <cfset name.value = "whatever">

Nick

-----Original Message----- From: gabriel [mailto:gabriel@bulfon.com.ar] Sent: Tuesday, January 16, 2001 2:57 PM To: CF-Server Subject: custom tags return

I want that my custom tag return a value. I don't want use Caller specifier. I want something like that

<cf_myTag name="name"> .... .... .... <cfoutput>#name.value#</cfoutput>

It's posible?

thank in advance

coldfusion developer Lista de CF en Español-www.cfunleashed.com.ar ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm ------------------------------------------------------------------------------ To unsubscribe, send a message to cf-server-request@houseoffusion.com with 'unsubscribe' in the body or visit the list page at www.houseoffusion.com


Similar Subject Line Posts (+/- two weeks of this post)
RE: custom tags return  16 Jan 2001 (this post)   (40 v/ +0 r)
RE: custom tags return  16 Jan 2001   (35 v/ +0 r)
RE: custom tags return  16 Jan 2001   (25 v/ +0 r)
RE: custom tags return  16 Jan 2001   (29 v/ +0 r)
custom tags return  16 Jan 2001   (43 v/ +0 r)
 

Send a reply to the CF-Server list!
click to send a reply! NOTE: Many lists will reject your post unless you have already registered with them. Also - don't forget the right account to send from (for those with multiple emails!)

Feedback: If this post was exceptionally helpful, please help by giving this post a positive review.

 

TallyList : copyright Ububik - 2000