RE: Is It possible, Custom Tag Question

2005-11-16 Thread Snake
That is how custom tags work by default.
It only wont work, if there is already a custom tag with the same name in
the custom tags folder that is already in use, then CF will use that one.
 

snake

-Original Message-
From: Munson, Jacob [mailto:[EMAIL PROTECTED] 
Sent: 15 November 2005 22:53
To: CF-Talk
Subject: RE: Is It possible, Custom Tag Question

 Is it possible to use a CFX tag file without actually registering it 
 in the CFIDE?

You can put a custom tag in the same directory as the calling page and it
will work without registering it in the administrator.


[INFO] -- Access Manager:
This transmission may contain information that is privileged, confidential
and/or exempt from disclosure under applicable law.  If you are not the
intended recipient, you are hereby notified that any disclosure, copying,
distribution, or use of the information contained herein (including any
reliance thereon) is STRICTLY PROHIBITED. If you received this transmission
in error, please immediately contact the sender and destroy the material in
its entirety, whether in electronic or hard copy format.  Thank you.   A2





~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224299
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Is It possible, Custom Tag Question

2005-11-16 Thread jonese
Thanks all,
I'll give this a shot, worst case i can set it up on our dev server
and run it as a webservice with a CFC wrapper. We only need to use
the tag once for sure but in case the client wants to use it later on
we need to have a plan.

jonese

On 11/16/05, Snake [EMAIL PROTECTED] wrote:
 That is how custom tags work by default.
 It only wont work, if there is already a custom tag with the same name in
 the custom tags folder that is already in use, then CF will use that one.


 snake

 -Original Message-
 From: Munson, Jacob [mailto:[EMAIL PROTECTED]
 Sent: 15 November 2005 22:53
 To: CF-Talk
 Subject: RE: Is It possible, Custom Tag Question

  Is it possible to use a CFX tag file without actually registering it
  in the CFIDE?

 You can put a custom tag in the same directory as the calling page and it
 will work without registering it in the administrator.


 [INFO] -- Access Manager:
 This transmission may contain information that is privileged, confidential
 and/or exempt from disclosure under applicable law.  If you are not the
 intended recipient, you are hereby notified that any disclosure, copying,
 distribution, or use of the information contained herein (including any
 reliance thereon) is STRICTLY PROHIBITED. If you received this transmission
 in error, please immediately contact the sender and destroy the material in
 its entirety, whether in electronic or hard copy format.  Thank you.   A2





 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224323
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Is It possible, Custom Tag Question

2005-11-15 Thread jonese
Is it possible to use a CFX tag file without actually registering it
in the CFIDE?

 I have a tag i'd really like to use on a shared hosting account but i
don't have the ability (nor do i want my host to do it) to add  it to
custom the customtag directory, or register it with CFIDE.

any thoughts?

If not anyone know of an easy way to read an excel file without
registering it as a DNS?

erj

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224251
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Is It possible, Custom Tag Question

2005-11-15 Thread Ray Champagne
As far as the CFX tag, I don't think so.  Someone else could probably 
give you the technical reasons why.

And the Excel file, can you save it as a CSV file first, then read it 
using cffile?  Then you could use one of the CSV to query custom tags 
(CF_ not CFX_) on cflib to turn the data into a query

jonese wrote:
 Is it possible to use a CFX tag file without actually registering it
 in the CFIDE?
 
  I have a tag i'd really like to use on a shared hosting account but i
 don't have the ability (nor do i want my host to do it) to add  it to
 custom the customtag directory, or register it with CFIDE.
 
 any thoughts?
 
 If not anyone know of an easy way to read an excel file without
 registering it as a DNS?
 
 erj
 
 

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224252
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Is It possible, Custom Tag Question

2005-11-15 Thread Munson, Jacob
 Is it possible to use a CFX tag file without actually registering it
 in the CFIDE?

You can put a custom tag in the same directory as the calling page and
it will work without registering it in the administrator.


[INFO] -- Access Manager:
This transmission may contain information that is privileged, confidential 
and/or exempt from disclosure under applicable law.  If you are not the 
intended recipient, you are hereby notified that any disclosure, copying, 
distribution, or use of the information contained herein (including any 
reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in 
error, please immediately contact the sender and destroy the material in its 
entirety, whether in electronic or hard copy format.  Thank you.   A2



~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224258
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Is It possible, Custom Tag Question

2005-11-15 Thread Ray Champagne
Being on a shared server isn't going to give him this access, though. 
Most hosts won't allow this in a shared environment, in my experiences 
anyway.

Munson, Jacob wrote:
Is it possible to use a CFX tag file without actually registering it
in the CFIDE?
 
 
 You can put a custom tag in the same directory as the calling page and
 it will work without registering it in the administrator.
 
 
 [INFO] -- Access Manager:
 This transmission may contain information that is privileged, confidential 
 and/or exempt from disclosure under applicable law.  If you are not the 
 intended recipient, you are hereby notified that any disclosure, copying, 
 distribution, or use of the information contained herein (including any 
 reliance thereon) is STRICTLY PROHIBITED. If you received this transmission 
 in error, please immediately contact the sender and destroy the material in 
 its entirety, whether in electronic or hard copy format.  Thank you.   A2
 
 
 
 

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224261
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Is It possible, Custom Tag Question

2005-11-15 Thread Claude Schneegans
 You can put a custom tag in the same directory as the calling page and
it will work without registering it in the administrator.

This is true for CF template tags, but I think the original question was 
about CFX tags in Java or C.
I don't think it is possible.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224286
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Custom Tag question

2005-09-09 Thread Dave.Phillips
Hi,

I have a custom tag.  It needs to have access to a UDF that I've created.  The 
UDF is stored in a file called application_udfs.cfm which is CFINCLUDED in the 
application.cfm file of my application. Here's my problem:

1.  If I run the page as is, my custom tag fails saying that the 'Variable 
ForceLinkTargetBlank Is Undefined'.  

2.  If I do a CFINCLUDE in my custom tag to include that application_udfs.cfm 
file (so it can see the UDF), I get this error:

Routines cannot be declared more than once. 
The routine ForceLinkTargetBlank has been declared twice in different 
templates. 

I'm stumped.  I know this is something simple, but I guess it being a Friday 
afternoon it's escaping me.  Any ideas on how I can debug this thing and figure 
out what's going on?

Dave
**
The information contained in this message, including attachments, may contain 
privileged or confidential information that is intended to be delivered only to 
the 
person identified above. If you are not the intended recipient, or the person 
responsible for delivering this message to the intended recipient, ALLTEL 
requests 
that you immediately notify the sender and asks that you do not read the 
message or its 
attachments, and that you delete them without copying or sending them to anyone 
else. 


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217840
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Custom Tag question

2005-09-09 Thread Barney Boisvert
Use caller.forceLinkTargetBlank from within your tag.

cheers,
barneyb

On 9/9/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hi,
 
 I have a custom tag.  It needs to have access to a UDF that I've created.  
 The UDF is stored in a file called application_udfs.cfm which is CFINCLUDED 
 in the application.cfm file of my application. Here's my problem:
 
 1.  If I run the page as is, my custom tag fails saying that the 'Variable 
 ForceLinkTargetBlank Is Undefined'.
 
 2.  If I do a CFINCLUDE in my custom tag to include that 
 application_udfs.cfm file (so it can see the UDF), I get this error:
 
 Routines cannot be declared more than once.
 The routine ForceLinkTargetBlank has been declared twice in different 
 templates.
 
 I'm stumped.  I know this is something simple, but I guess it being a Friday 
 afternoon it's escaping me.  Any ideas on how I can debug this thing and 
 figure out what's going on?
 
 Dave


-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 100 invites.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217843
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Custom Tag question

2005-09-09 Thread Dave.Phillips
Could the problem be that this custom tag is being imported with CFIMPORT on 
the page, and then it's being called?  When you CFIMPORT would it then define 
the UDF and then try again when you call the particular custom tag?

Dave

-Original Message-
From: Phillips, Dave 
Sent: Friday, September 09, 2005 3:45 PM
To: CF-Talk
Subject: Custom Tag question


Hi,

I have a custom tag.  It needs to have access to a UDF that I've created.  The 
UDF is stored in a file called application_udfs.cfm which is CFINCLUDED in the 
application.cfm file of my application. Here's my problem:

1.  If I run the page as is, my custom tag fails saying that the 'Variable 
ForceLinkTargetBlank Is Undefined'.  

2.  If I do a CFINCLUDE in my custom tag to include that application_udfs.cfm 
file (so it can see the UDF), I get this error:

Routines cannot be declared more than once. 
The routine ForceLinkTargetBlank has been declared twice in different 
templates. 

I'm stumped.  I know this is something simple, but I guess it being a Friday 
afternoon it's escaping me.  Any ideas on how I can debug this thing and figure 
out what's going on?

Dave
**
The information contained in this message, including attachments, may contain 
privileged or confidential information that is intended to be delivered only to 
the 
person identified above. If you are not the intended recipient, or the person 
responsible for delivering this message to the intended recipient, ALLTEL 
requests 
that you immediately notify the sender and asks that you do not read the 
message or its 
attachments, and that you delete them without copying or sending them to anyone 
else. 


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217844
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Custom Tag question

2005-09-09 Thread Kevin Penny
Typically I have my udf library included - I have a check to first see if
that 'definition' already exists - that way I'm guarenteed to not include
multiple 'udf libraries' w/in any document like this

cfif not(isdefined('request.udf_SomeFn'))
cfscript
Function udf_SomeFN()
{

}
udfs...
/cfscript
Setting of all udf's to request vars

cfset request.udf_SomeFn = variables.udf_SomeFn 
/cfif


Works for me ;)

Kevin Penny


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 09, 2005 2:45 PM
To: CF-Talk
Subject: Custom Tag question

Hi,

I have a custom tag.  It needs to have access to a UDF that I've created.
The UDF is stored in a file called application_udfs.cfm which is CFINCLUDED
in the application.cfm file of my application. Here's my problem:

1.  If I run the page as is, my custom tag fails saying that the 'Variable
ForceLinkTargetBlank Is Undefined'.  

2.  If I do a CFINCLUDE in my custom tag to include that
application_udfs.cfm file (so it can see the UDF), I get this error:

Routines cannot be declared more than once. 
The routine ForceLinkTargetBlank has been declared twice in different
templates. 

I'm stumped.  I know this is something simple, but I guess it being a Friday
afternoon it's escaping me.  Any ideas on how I can debug this thing and
figure out what's going on?

Dave

**
The information contained in this message, including attachments, may
contain 
privileged or confidential information that is intended to be delivered only
to the 
person identified above. If you are not the intended recipient, or the
person 
responsible for delivering this message to the intended recipient, ALLTEL
requests 
that you immediately notify the sender and asks that you do not read the
message or its 
attachments, and that you delete them without copying or sending them to
anyone else. 




~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217846
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Custom Tag question

2005-09-09 Thread Dave.Phillips
DUH!  My brain isn't functioning today!!!

Thanks BB.

Dave

-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: Friday, September 09, 2005 3:49 PM
To: CF-Talk
Subject: Re: Custom Tag question


Use caller.forceLinkTargetBlank from within your tag.

cheers,
barneyb

On 9/9/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hi,
 
 I have a custom tag.  It needs to have access to a UDF that I've created.  
 The UDF is stored in a file called application_udfs.cfm which is CFINCLUDED 
 in the application.cfm file of my application. Here's my problem:
 
 1.  If I run the page as is, my custom tag fails saying that the 'Variable 
 ForceLinkTargetBlank Is Undefined'.
 
 2.  If I do a CFINCLUDE in my custom tag to include that 
 application_udfs.cfm file (so it can see the UDF), I get this error:
 
 Routines cannot be declared more than once.
 The routine ForceLinkTargetBlank has been declared twice in different 
 templates.
 
 I'm stumped.  I know this is something simple, but I guess it being a Friday 
 afternoon it's escaping me.  Any ideas on how I can debug this thing and 
 figure out what's going on?
 
 Dave


-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 100 invites.



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217847
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Stupid custom tag question

2005-08-25 Thread Dan G. Switzer, II
Barney,

Thanks for that, Dan, but I'd actually mistyped.  I wanted the closing
tag to still execute, just skipping the body.  Not surprisingly, I was
also writing a caching tag, the difference being that the cached
content were generated Flash movies, so the output operation (which
takes place in the close tag) is rather cumbersome and I didn't really
want to UDF it so I could call it in both starting and ending tags.

That's what I was going to recommend next. The only thing that I can think
of that might work, is can you change the executionMode?

What if you did:

cfif bUseCache AND this.executionMode EQ start
cfset this.executionMode = end
/cfif

I wonder if that would have work

-Dan



~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216334
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Stupid custom tag question

2005-08-25 Thread Barney Boisvert
A clever idea, but CF throws an error saying the variable is
read-only, and can't be set by the user.  Bummer.

On 8/25/05, Dan G. Switzer, II [EMAIL PROTECTED] wrote:
 Barney,
 
 Thanks for that, Dan, but I'd actually mistyped.  I wanted the closing
 tag to still execute, just skipping the body.  Not surprisingly, I was
 also writing a caching tag, the difference being that the cached
 content were generated Flash movies, so the output operation (which
 takes place in the close tag) is rather cumbersome and I didn't really
 want to UDF it so I could call it in both starting and ending tags.
 
 That's what I was going to recommend next. The only thing that I can think
 of that might work, is can you change the executionMode?
 
 What if you did:
 
 cfif bUseCache AND this.executionMode EQ start
 cfset this.executionMode = end
 /cfif
 
 I wonder if that would have work
 
 -Dan
 

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216365
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Stupid custom tag question

2005-08-25 Thread Dan G. Switzer, II
Barney,

What if you hack your own executionMode variable:

cfset sExecutionMode = this.executionMode

cfif bUseCache AND sExecutionMode EQ start
  cfset sExecutionMode = end
/cfif

cfswitch expression=#sExecutionMode#
  cfcase value=start
  /cfcase
  cfcase value=end
  /cfcase
/cfswitch

-Dan

-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 25, 2005 1:12 PM
To: CF-Talk
Subject: Re: Stupid custom tag question

A clever idea, but CF throws an error saying the variable is
read-only, and can't be set by the user.  Bummer.

On 8/25/05, Dan G. Switzer, II [EMAIL PROTECTED] wrote:
 Barney,

 Thanks for that, Dan, but I'd actually mistyped.  I wanted the closing
 tag to still execute, just skipping the body.  Not surprisingly, I was
 also writing a caching tag, the difference being that the cached
 content were generated Flash movies, so the output operation (which
 takes place in the close tag) is rather cumbersome and I didn't really
 want to UDF it so I could call it in both starting and ending tags.

 That's what I was going to recommend next. The only thing that I can
think
 of that might work, is can you change the executionMode?

 What if you did:

 cfif bUseCache AND this.executionMode EQ start
 cfset this.executionMode = end
 /cfif

 I wonder if that would have work

 -Dan


--
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216398
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Stupid custom tag question

2005-08-25 Thread Barney Boisvert
That sounds like it might work, but it makes the conditionals kind of
nasty, because sExMode = end and thistag.ExMode = end is different
than sExMode = end and thisTag.exMode = start.  So you'd need a
four-way conditional, in addition to a check for start mode at the top
to check whether you should do the logic to see if you can set sExMode
= end becuase the cached version exists.

I think the UDF version is cleaner, because it keeps the logic flowing
in the usual way, it's just using a UDF to help reuse some code. 
And perhaps more to the point, that code is already written, tested,
and running.  ;)

cheers,
barneyb

On 8/25/05, Dan G. Switzer, II [EMAIL PROTECTED] wrote:
 Barney,
 
 What if you hack your own executionMode variable:
 
 cfset sExecutionMode = this.executionMode
 
 cfif bUseCache AND sExecutionMode EQ start
   cfset sExecutionMode = end
 /cfif
 
 cfswitch expression=#sExecutionMode#
   cfcase value=start
   /cfcase
   cfcase value=end
   /cfcase
 /cfswitch
 
 -Dan
 

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216432
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Stupid custom tag question

2005-08-24 Thread Barney Boisvert
Is there a way to, in the opening tag of a custom tag, tell the custom
tag to skip evaluation of it's body?

p:mytag
  i don't want to do this
/p:mytag

mytag.cfm:
cfif this.executionMode EQ start
  cfexit method=goToJustAfterClosingTag /
/cfif

Thanks,
barneyb

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216207
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Stupid custom tag question

2005-08-24 Thread Barney Boisvert
Whoops, I screwed up.  I want to skip the body, but still execute the
closing tag.  So that should be method=goToJustBEFOREClosingTag. 
Not sure what I was thinking.  To complete the thought,
method=exittag does what I described below, but that's NOT what I
want.

On 8/24/05, Barney Boisvert [EMAIL PROTECTED] wrote:
 Is there a way to, in the opening tag of a custom tag, tell the custom
 tag to skip evaluation of it's body?
 
 p:mytag
   i don't want to do this
 /p:mytag
 
 mytag.cfm:
 cfif this.executionMode EQ start
   cfexit method=goToJustAfterClosingTag /
 /cfif
 
 Thanks,
 barneyb
 
 --
 Barney Boisvert
 [EMAIL PROTECTED]
 360.319.6145
 http://www.barneyb.com/
 
 Got Gmail? I have 50 invites.
 


-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216208
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Stupid custom tag question

2005-08-24 Thread Snake
cfif thistag.executionmode is end
Do this
/cfif

Will only do anything on the closing tag.
 

-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED] 
Sent: 24 August 2005 18:34
To: CF-Talk
Subject: Re: Stupid custom tag question

Whoops, I screwed up.  I want to skip the body, but still execute the
closing tag.  So that should be method=goToJustBEFOREClosingTag. 
Not sure what I was thinking.  To complete the thought, method=exittag
does what I described below, but that's NOT what I want.

On 8/24/05, Barney Boisvert [EMAIL PROTECTED] wrote:
 Is there a way to, in the opening tag of a custom tag, tell the custom 
 tag to skip evaluation of it's body?
 
 p:mytag
   i don't want to do this
 /p:mytag
 
 mytag.cfm:
 cfif this.executionMode EQ start
   cfexit method=goToJustAfterClosingTag / /cfif
 
 Thanks,
 barneyb
 
 --
 Barney Boisvert
 [EMAIL PROTECTED]
 360.319.6145
 http://www.barneyb.com/
 
 Got Gmail? I have 50 invites.
 


--
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.



~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216212
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Stupid custom tag question

2005-08-24 Thread Daniel Mackey
You can do:

cfif thisTag.executionMode eq Start
Do Nothing
cfelse
Do your work
/cfif

Barney Boisvert wrote:

Whoops, I screwed up.  I want to skip the body, but still execute the
closing tag.  So that should be method=goToJustBEFOREClosingTag. 
Not sure what I was thinking.  To complete the thought,
method=exittag does what I described below, but that's NOT what I
want.

On 8/24/05, Barney Boisvert [EMAIL PROTECTED] wrote:
  

Is there a way to, in the opening tag of a custom tag, tell the custom
tag to skip evaluation of it's body?

p:mytag
  i don't want to do this
/p:mytag

mytag.cfm:
cfif this.executionMode EQ start
  cfexit method=goToJustAfterClosingTag /
/cfif

Thanks,
barneyb

--
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.





  



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216213
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Stupid custom tag question

2005-08-24 Thread Dave Francis
can't you just comment out?

!---
 cfif this.executionMode EQ start
   cfexit method=goToJustAfterClosingTag /
 /cfif
---

-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 24, 2005 1:34 PM
To: CF-Talk
Subject: Re: Stupid custom tag question


Whoops, I screwed up.  I want to skip the body, but still execute the
closing tag.  So that should be method=goToJustBEFOREClosingTag.
Not sure what I was thinking.  To complete the thought,
method=exittag does what I described below, but that's NOT what I
want.

On 8/24/05, Barney Boisvert [EMAIL PROTECTED] wrote:
 Is there a way to, in the opening tag of a custom tag, tell the custom
 tag to skip evaluation of it's body?

 p:mytag
   i don't want to do this
 /p:mytag

 mytag.cfm:
 cfif this.executionMode EQ start
   cfexit method=goToJustAfterClosingTag /
 /cfif

 Thanks,
 barneyb

 --
 Barney Boisvert
 [EMAIL PROTECTED]
 360.319.6145
 http://www.barneyb.com/

 Got Gmail? I have 50 invites.



--
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216215
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Stupid custom tag question

2005-08-24 Thread Barney Boisvert
I want to execute the start tag, then OPTIONALLY execute the body of
the tag, and then execute the close tag.  thistag.executionmode will
only tell me which part of the tag (opening or closing) is currently
execution, and doesn't tell me anything about the body of the tag.

As near as I can tell, this is impossible with CF (though trivial with JSP).

cheers,
barneyb

On 8/24/05, Snake [EMAIL PROTECTED] wrote:
 cfif thistag.executionmode is end
 Do this
 /cfif
 
 Will only do anything on the closing tag.
 
 
 -Original Message-
 From: Barney Boisvert [mailto:[EMAIL PROTECTED]
 Sent: 24 August 2005 18:34
 To: CF-Talk
 Subject: Re: Stupid custom tag question
 
 Whoops, I screwed up.  I want to skip the body, but still execute the
 closing tag.  So that should be method=goToJustBEFOREClosingTag.
 Not sure what I was thinking.  To complete the thought, method=exittag
 does what I described below, but that's NOT what I want.
 
 On 8/24/05, Barney Boisvert [EMAIL PROTECTED] wrote:
  Is there a way to, in the opening tag of a custom tag, tell the custom
  tag to skip evaluation of it's body?
 
  p:mytag
i don't want to do this
  /p:mytag
 
  mytag.cfm:
  cfif this.executionMode EQ start
cfexit method=goToJustAfterClosingTag / /cfif
 
  Thanks,
  barneyb
 
  --
  Barney Boisvert
  [EMAIL PROTECTED]
  360.319.6145
  http://www.barneyb.com/
 
  Got Gmail? I have 50 invites.
 
 
 
 --
 Barney Boisvert
 [EMAIL PROTECTED]
 360.319.6145
 http://www.barneyb.com/
 
 Got Gmail? I have 50 invites.
 
 
 
 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216216
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Stupid custom tag question

2005-08-24 Thread Dave Francis
But any part of the body of the tag will be either start or end, whether
you select it or not. If you mean you want to selectively execute a common
part of the tag, you could control that with an attribute I suppose?

-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 24, 2005 1:49 PM
To: CF-Talk
Subject: Re: Stupid custom tag question


I want to execute the start tag, then OPTIONALLY execute the body of
the tag, and then execute the close tag.  thistag.executionmode will
only tell me which part of the tag (opening or closing) is currently
execution, and doesn't tell me anything about the body of the tag.

As near as I can tell, this is impossible with CF (though trivial with JSP).

cheers,
barneyb

On 8/24/05, Snake [EMAIL PROTECTED] wrote:
 cfif thistag.executionmode is end
 Do this
 /cfif

 Will only do anything on the closing tag.


 -Original Message-
 From: Barney Boisvert [mailto:[EMAIL PROTECTED]
 Sent: 24 August 2005 18:34
 To: CF-Talk
 Subject: Re: Stupid custom tag question

 Whoops, I screwed up.  I want to skip the body, but still execute the
 closing tag.  So that should be method=goToJustBEFOREClosingTag.
 Not sure what I was thinking.  To complete the thought, method=exittag
 does what I described below, but that's NOT what I want.

 On 8/24/05, Barney Boisvert [EMAIL PROTECTED] wrote:
  Is there a way to, in the opening tag of a custom tag, tell the custom
  tag to skip evaluation of it's body?
 
  p:mytag
i don't want to do this
  /p:mytag
 
  mytag.cfm:
  cfif this.executionMode EQ start
cfexit method=goToJustAfterClosingTag / /cfif
 
  Thanks,
  barneyb
 
  --
  Barney Boisvert
  [EMAIL PROTECTED]
  360.319.6145
  http://www.barneyb.com/
 
  Got Gmail? I have 50 invites.
 


 --
 Barney Boisvert
 [EMAIL PROTECTED]
 360.319.6145
 http://www.barneyb.com/

 Got Gmail? I have 50 invites.







~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216223
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Stupid custom tag question

2005-08-24 Thread Snake
You can use thistag.generatedcontent to decide what to do with the content
of tag.

Russ 

-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED] 
Sent: 24 August 2005 18:49
To: CF-Talk
Subject: Re: Stupid custom tag question

I want to execute the start tag, then OPTIONALLY execute the body of the
tag, and then execute the close tag.  thistag.executionmode will only tell
me which part of the tag (opening or closing) is currently execution, and
doesn't tell me anything about the body of the tag.

As near as I can tell, this is impossible with CF (though trivial with JSP).

cheers,
barneyb

On 8/24/05, Snake [EMAIL PROTECTED] wrote:
 cfif thistag.executionmode is end
 Do this
 /cfif
 
 Will only do anything on the closing tag.
 
 
 -Original Message-
 From: Barney Boisvert [mailto:[EMAIL PROTECTED]
 Sent: 24 August 2005 18:34
 To: CF-Talk
 Subject: Re: Stupid custom tag question
 
 Whoops, I screwed up.  I want to skip the body, but still execute the 
 closing tag.  So that should be method=goToJustBEFOREClosingTag.
 Not sure what I was thinking.  To complete the thought, method=exittag
 does what I described below, but that's NOT what I want.
 
 On 8/24/05, Barney Boisvert [EMAIL PROTECTED] wrote:
  Is there a way to, in the opening tag of a custom tag, tell the 
  custom tag to skip evaluation of it's body?
 
  p:mytag
i don't want to do this
  /p:mytag
 
  mytag.cfm:
  cfif this.executionMode EQ start
cfexit method=goToJustAfterClosingTag / /cfif
 
  Thanks,
  barneyb
 
  --
  Barney Boisvert
  [EMAIL PROTECTED]
  360.319.6145
  http://www.barneyb.com/
 
  Got Gmail? I have 50 invites.
 
 
 
 --
 Barney Boisvert
 [EMAIL PROTECTED]
 360.319.6145
 http://www.barneyb.com/
 
 Got Gmail? I have 50 invites.
 
 
 
 



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216221
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Stupid custom tag question

2005-08-24 Thread Ian Skinner
Something wrong with the relatively trivial:

Inside your custom tag:

cfif attributes.doThis EQ TRUE
Do what you want
/cfif

Called with a page like this:

cf_myCustTag doThis=True


--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
 
C code. C code run. Run code run. Please!
- Cynthia Dunning

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 




~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216219
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Stupid custom tag question

2005-08-24 Thread Barney Boisvert
I don't want to ignore the content generated by the body, I want to
skip execution of the body.  In other words, it's the processing I
want to avoid, not the output.  Like how CFIF works, except that the
closing tag still executes.

cheers,
barneyb

On 8/24/05, Snake [EMAIL PROTECTED] wrote:
 You can use thistag.generatedcontent to decide what to do with the content
 of tag.
 
 Russ
 

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216227
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Stupid custom tag question

2005-08-24 Thread Daniel Mackey
By referencing thisTag.generatedContent, you could possibly do what you 
want.

This is taking the following for granted:

1) Start tag is cf_myTag
2) Body of tag is [in between start and end]
3) End tag is /cf_myTag

By setting thisTag.generatedContent to  i.e: Nothing, then what you 
have in between will not be written out. That doesnt mean it wont be 
executed though.

I would set an attribute to determine when you need to output and when 
not to.

Therefore:

cfparam name=attributes.executeBody default=true

cfif thisTag.executionMode EQ Start
!-Always skip cause generated content insnt available 
until end of tag--
cfelse
Perform your work
cfif NOT attributes.executeBody
  cfset thisTag.generatedContent=
/cfif
/cfif

holds through.

Dan.

Barney Boisvert wrote:

I want to execute the start tag, then OPTIONALLY execute the body of
the tag, and then execute the close tag.  thistag.executionmode will
only tell me which part of the tag (opening or closing) is currently
execution, and doesn't tell me anything about the body of the tag.

As near as I can tell, this is impossible with CF (though trivial with JSP).

cheers,
barneyb

On 8/24/05, Snake [EMAIL PROTECTED] wrote:
  

cfif thistag.executionmode is end
Do this
/cfif

Will only do anything on the closing tag.


-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: 24 August 2005 18:34
To: CF-Talk
Subject: Re: Stupid custom tag question

Whoops, I screwed up.  I want to skip the body, but still execute the
closing tag.  So that should be method=goToJustBEFOREClosingTag.
Not sure what I was thinking.  To complete the thought, method=exittag
does what I described below, but that's NOT what I want.

On 8/24/05, Barney Boisvert [EMAIL PROTECTED] wrote:


Is there a way to, in the opening tag of a custom tag, tell the custom
tag to skip evaluation of it's body?

p:mytag
  i don't want to do this
/p:mytag

mytag.cfm:
cfif this.executionMode EQ start
  cfexit method=goToJustAfterClosingTag / /cfif

Thanks,
barneyb

--
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

  

--
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.









~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216229
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Stupid custom tag question

2005-08-24 Thread Daniel Mackey
I think your going to have to put a CFIF to decide as I cant see an 
alternative.

cf_myTag
cfif someExpression
   //Run body
/cfif
/cf_myTag

Barney Boisvert wrote:

I don't want to ignore the content generated by the body, I want to
skip execution of the body.  In other words, it's the processing I
want to avoid, not the output.  Like how CFIF works, except that the
closing tag still executes.

cheers,
barneyb

On 8/24/05, Snake [EMAIL PROTECTED] wrote:
  

You can use thistag.generatedcontent to decide what to do with the content
of tag.

Russ




  



~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216234
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Stupid custom tag question

2005-08-24 Thread Barney Boisvert
The body of the tag is the stuff between the opening and closing
tags in the calling markup.  For example:

c:mytag
  this is the tag body of the tag c:mytag
/c:mytag

cheers,
barneyb

On 8/24/05, Dave Francis [EMAIL PROTECTED] wrote:
 But any part of the body of the tag will be either start or end, whether
 you select it or not. If you mean you want to selectively execute a common
 part of the tag, you could control that with an attribute I suppose?
 
-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216235
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Stupid custom tag question

2005-08-24 Thread Barney Boisvert
That doesn't work, because it forces the optional processing to be
defined INSIDE the custom tag, rather than in the CALLING template.

cheers,
barneyb

On 8/24/05, Ian Skinner [EMAIL PROTECTED] wrote:
 Something wrong with the relatively trivial:
 
 Inside your custom tag:
 
 cfif attributes.doThis EQ TRUE
 Do what you want
 /cfif
 
 Called with a page like this:
 
 cf_myCustTag doThis=True
 

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216232
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Stupid custom tag question

2005-08-24 Thread Dave Francis
This is happening outside the tag, it is just html/cfml. You could decide to
generate output based on a url param, application var, whatever:

c:mytag
cfif url.x = live
  this is the tag body of the tag c:mytag
/cfif
/c:mytag

-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 24, 2005 2:22 PM
To: CF-Talk
Subject: Re: Stupid custom tag question


The body of the tag is the stuff between the opening and closing
tags in the calling markup.  For example:

c:mytag
  this is the tag body of the tag c:mytag
/c:mytag

cheers,
barneyb

On 8/24/05, Dave Francis [EMAIL PROTECTED] wrote:
 But any part of the body of the tag will be either start or end,
whether
 you select it or not. If you mean you want to selectively execute a common
 part of the tag, you could control that with an attribute I suppose?

--
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.



~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216239
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Stupid custom tag question

2005-08-24 Thread Matt Osbun
Not sure, exactly, if this is what you're looking for, but what about 

cfif SomeCondition
  cfset thistag.generatedcontent = 
/cfif

I use that on occasion for optional content.  Something like

cf_CustomTag
  Optional or conditional content
/cf_CustomTag

Is this what you're thinking of?

Matt Osbun
Web Developer
Health Systems, International


-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 24, 2005 12:49 PM
To: CF-Talk
Subject: Re: Stupid custom tag question


I want to execute the start tag, then OPTIONALLY execute the body of
the tag, and then execute the close tag.  thistag.executionmode will
only tell me which part of the tag (opening or closing) is currently
execution, and doesn't tell me anything about the body of the tag.

As near as I can tell, this is impossible with CF (though trivial with
JSP).

cheers,
barneyb

On 8/24/05, Snake [EMAIL PROTECTED] wrote:
 cfif thistag.executionmode is end
 Do this
 /cfif
 
 Will only do anything on the closing tag.
 
 
 -Original Message-
 From: Barney Boisvert [mailto:[EMAIL PROTECTED]
 Sent: 24 August 2005 18:34
 To: CF-Talk
 Subject: Re: Stupid custom tag question
 
 Whoops, I screwed up.  I want to skip the body, but still execute the
 closing tag.  So that should be method=goToJustBEFOREClosingTag.
 Not sure what I was thinking.  To complete the thought,
method=exittag
 does what I described below, but that's NOT what I want.
 
 On 8/24/05, Barney Boisvert [EMAIL PROTECTED] wrote:
  Is there a way to, in the opening tag of a custom tag, tell the
custom
  tag to skip evaluation of it's body?
 
  p:mytag
i don't want to do this
  /p:mytag
 
  mytag.cfm:
  cfif this.executionMode EQ start
cfexit method=goToJustAfterClosingTag / /cfif
 
  Thanks,
  barneyb
 
  --
  Barney Boisvert
  [EMAIL PROTECTED]
  360.319.6145
  http://www.barneyb.com/
 
  Got Gmail? I have 50 invites.
 
 
 
 --
 Barney Boisvert
 [EMAIL PROTECTED]
 360.319.6145
 http://www.barneyb.com/
 
 Got Gmail? I have 50 invites.
 
 
 
 



~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216238
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Stupid custom tag question

2005-08-24 Thread Gaulin, Mark
If you want your tag to be like CFIF, causing logic to be skipped, then
the answer is probably no, you can't do it.

If you are ok with the code between the start and end tags running but
with all html output removed, then yes, you can do that by messing with
the generatedcontent property.

Mark

-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 24, 2005 2:08 PM
To: CF-Talk
Subject: Re: Stupid custom tag question

I don't want to ignore the content generated by the body, I want to skip
execution of the body.  In other words, it's the processing I want to
avoid, not the output.  Like how CFIF works, except that the closing tag
still executes.

cheers,
barneyb

On 8/24/05, Snake [EMAIL PROTECTED] wrote:
 You can use thistag.generatedcontent to decide what to do with the 
 content of tag.
 
 Russ
 

--
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.



~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216247
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Stupid custom tag question

2005-08-24 Thread Dan G. Switzer, II
Barney,

Is there a way to, in the opening tag of a custom tag, tell the custom
tag to skip evaluation of it's body?

p:mytag
  i don't want to do this
/p:mytag

mytag.cfm:
cfif this.executionMode EQ start
  cfexit method=goToJustAfterClosingTag /
/cfif

You should be able to do cancel the entire request:
cfif this.executionMode EQ start
  cfexit method=exitTag /
/cfif

I wrote a cf_CacheObject tag a long time ago which I used to cache a bunch
of code that really CPU intensive. Here's the code (please forgive the
uppercase--I wrote the code 4 years and a week ago):

CFSETTING ENABLECFOUTPUTONLY=NO
!--
---
 Name:CF_CacheObject
 Author:  Dan G.Switzer, II [EMAIL PROTECTED]
 Company: PengoWorks.com
 Date:August 17, 2001
 Build:   100

 Description:
 This tag will is used to cache an object and/or partial content on a page. 
 The object can be any valid ColdFusion variable that will be available
 by the time the end tag runs. This is extremely useful for caching objects
 that take a lot of process to generate, but in which the output of the
 object may change. You'll need to have access to the Application scope.
 
 Attributes:
 Action   - The action you'd like to perform. Valid options are Cache
and Clear. (Required)
 Object   - The object to cache. (Optional)
 CachedWithin - The timespan to cache the object. Defaults to 30 minutes.
Uses the CreateTimeSpan function. (Optional)

--
!---// set default attributes //---
CFPARAM NAME=Attributes.Action TYPE=String DEFAULT=Cache
CFPARAM NAME=Attributes.Object TYPE=String DEFAULT=
CFPARAM NAME=Attributes.CachedWithin TYPE=Numeric
DEFAULT=#CreateTimeSpan(0, 0, 30, 0)#

!---// define local variables //---
CFSET sHashKey = CGI.SCRIPT_NAME

!---// lock all calls to tag, to prevent any errors //---
CFLOCK TIMEOUT=60 THROWONTIMEOUT=No NAME=cfCacheObject
TYPE=EXCLUSIVE
CFIF NOT IsDefined(Application.cfCacheObject)
CFSET Application.cfCacheObject = StructNew()
/CFIF
CFIF NOT StructKeyExists(Application.cfCacheObject, sHashKey) OR
NOT CompareNoCase(Attributes.ACTION, Clear)
CFSET Application.cfCacheObject[sHashKey] = StructNew()
CFSET Application.cfCacheObject[sHashKey].GeneratedContent
= 
CFSET Application.cfCacheObject[sHashKey].Object = 
CFSET Application.cfCacheObject[sHashKey].LastUpdated =
Now()
CFSET Application.cfCacheObject[sHashKey].Expires =
Application.cfCacheObject[sHashKey].LastUpdated
/CFIF
/CFLOCK

CFSWITCH EXPRESSION=#Lcase(ThisTag.ExecutionMode)#
CFCASE VALUE=start
!---// if the object hasn't expired, then grab the cache
//---
CFIF DateCompare(Now(),
Application.cfCacheObject[sHashKey].Expires) EQ -1
CFSET isExpired = False
CFIF NOT Len(Attributes.Object)
CFSET SetVariable(Caller. 
Attributes.Object, Application.cfCacheObject[sHashKey].Object)
/CFIF

CFOUTPUT#Application.cfCacheObject[sHashKey].GeneratedContent#/CFOUTPUT
CFEXIT METHOD=EXITTAG
!---// if the object has expired, the process on end tag
//---
CFELSE
CFSET isExpired = True
/CFIF
/CFCASE
CFCASE VALUE=end
CFSET Application.cfCacheObject[sHashKey].GeneratedContent
= ThisTag.GeneratedContent
CFIF NOT Len(Attributes.Object)
CFSET Application.cfCacheObject[sHashKey].Object =
Duplicate(Evaluate(Caller.  Attributes.Object))
CFELSE
CFSET Application.cfCacheObject[sHashKey].Object =

/CFIF
CFSET Application.cfCacheObject[sHashKey].LastUpdated =
Now()
CFSET Application.cfCacheObject[sHashKey].Expires =
CreateODBCDateTime(Application.cfCacheObject[sHashKey].LastUpdated +
Attributes.CachedWithin)
/CFCASE
/CFSWITCH

CFSETTING ENABLECFOUTPUTONLY=NO



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216295
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Stupid custom tag question

2005-08-24 Thread Barney Boisvert
Thanks for that, Dan, but I'd actually mistyped.  I wanted the closing
tag to still execute, just skipping the body.  Not surprisingly, I was
also writing a caching tag, the difference being that the cached
content were generated Flash movies, so the output operation (which
takes place in the close tag) is rather cumbersome and I didn't really
want to UDF it so I could call it in both starting and ending tags.

However, I ended up doing exactly that, and it'll work.  Just seems
like a bit of a language shortcoming to me.  In psuedo-code:

cfif thistag.executionmode EQ start
  cffunction name=writeFlash
!--- generate EMBED, OBJECT, PARAM, etc. ---
  /cffunction
  cfif cached
cfset writeFlash() /
cfexit method=exittag /
  /cfif
cfelse
  !--- do cache the generated movie ---
  cfset writeFlash() /
/cfif

cheers,
barneyb

On 8/24/05, Dan G. Switzer, II [EMAIL PROTECTED] wrote:
 Barney,
 
 Is there a way to, in the opening tag of a custom tag, tell the custom
 tag to skip evaluation of it's body?
 
 p:mytag
   i don't want to do this
 /p:mytag
 
 mytag.cfm:
 cfif this.executionMode EQ start
   cfexit method=goToJustAfterClosingTag /
 /cfif
 
 You should be able to do cancel the entire request:
 cfif this.executionMode EQ start
   cfexit method=exitTag /
 /cfif
 
 I wrote a cf_CacheObject tag a long time ago which I used to cache a bunch
 of code that really CPU intensive. Here's the code (please forgive the
 uppercase--I wrote the code 4 years and a week ago):
 

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216296
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Quick easy custom tag question

2005-08-05 Thread James Holmes
If you need to work out which class file is your specific  template, I
have a neat little CF snippet that will tell you. Let me know if you
want the code.

On 8/5/05, S. Isaac Dealey [EMAIL PROTECTED] wrote:
  If a custom tag has been changed and deployed to a
  production enviroment
  but has the old version cached is there a way to force it
  to recognize the
  new version without restarting the server to clear cache?
 
 Hi Casey. If it's a CFML tag, check the ColdFusion directories for a
 directory containing a bunch of .class files which resemble the names
 of the templates in your application. One of those files is generated
 from your custom tag. You can delete just the tag you're having a
 problem with, if you can isolate it by name, but I generally just
 delete them all -- they're all created when the CFML file is compiled
 anyway. I never had a problem with this until recently -- the servers
 at my day job have had this problem a couple times. Of course, this
 may not be your problem, but it's a possibility. Apparently sometimes
 CF gets confused and doesn't see that there's a newer version of the
 CFML template, so it doesn't delete and recreate the class file.
 
 s. isaac dealey 954.522.6080
 new epoch : isn't it time for a change?
 
 add features without fixtures with
 the onTap open source framework
 
 http://www.fusiontap.com
 http://coldfusion.sys-con.com/author/4806Dealey.htm
 
 
 

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213833
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Quick easy custom tag question

2005-08-05 Thread Casey C Cook
Thanks for the responses!

Thanks,
CC




This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 
e-mail for such purpose.






S. Isaac Dealey info
@turnkey.to
08/04/2005 09:32 PM
Please respond to cf-talk
 
To: CF-Talk cf-talk@houseoffusion.com
cc: 
Subject:Re: Quick easy custom tag question


 If a custom tag has been changed and deployed to a
 production enviroment
 but has the old version cached is there a way to force it
 to recognize the
 new version without restarting the server to clear cache?

Hi Casey. If it's a CFML tag, check the ColdFusion directories for a
directory containing a bunch of .class files which resemble the names
of the templates in your application. One of those files is generated
from your custom tag. You can delete just the tag you're having a
problem with, if you can isolate it by name, but I generally just
delete them all -- they're all created when the CFML file is compiled
anyway. I never had a problem with this until recently -- the servers
at my day job have had this problem a couple times. Of course, this
may not be your problem, but it's a possibility. Apparently sometimes
CF gets confused and doesn't see that there's a newer version of the
CFML template, so it doesn't delete and recreate the class file.

s. isaac dealey 954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm




~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213914
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Quick easy custom tag question

2005-08-04 Thread Casey C Cook
If a custom tag has been changed and deployed to a production enviroment 
but has the old version cached is there a way to force it to recognize the 
new version without restarting the server to clear cache?

Thanks,
CC

This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 
e-mail for such purpose.



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213800
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Quick easy custom tag question

2005-08-04 Thread Douglas Knudsen
ugh, what kind of custom tag?   is in a cfx?  Java based ones may
require a restart but pure CF ones shouldn't, unless perhaps you have
Trusted Cache on.

DK

On 8/4/05, Casey C Cook [EMAIL PROTECTED] wrote:
 If a custom tag has been changed and deployed to a production enviroment
 but has the old version cached is there a way to force it to recognize the
 new version without restarting the server to clear cache?
 
 Thanks,
 CC
 
 This is a PRIVATE message. If you are not the intended recipient, please
 delete without copying and kindly advise us by e-mail of the mistake in
 delivery. NOTE: Regardless of content, this e-mail shall not operate to
 bind CSC to any order or other contract unless pursuant to explicit
 written agreement or government initiative expressly permitting the use of
 e-mail for such purpose.
 
 
 
 

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213808
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Quick easy custom tag question

2005-08-04 Thread S . Isaac Dealey
 If a custom tag has been changed and deployed to a
 production enviroment
 but has the old version cached is there a way to force it
 to recognize the
 new version without restarting the server to clear cache?

Hi Casey. If it's a CFML tag, check the ColdFusion directories for a
directory containing a bunch of .class files which resemble the names
of the templates in your application. One of those files is generated
from your custom tag. You can delete just the tag you're having a
problem with, if you can isolate it by name, but I generally just
delete them all -- they're all created when the CFML file is compiled
anyway. I never had a problem with this until recently -- the servers
at my day job have had this problem a couple times. Of course, this
may not be your problem, but it's a possibility. Apparently sometimes
CF gets confused and doesn't see that there's a newer version of the
CFML template, so it doesn't delete and recreate the class file.

s. isaac dealey 954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213830
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Custom tag question

2005-04-19 Thread Thane Sherrington
I've never seen this done (perhaps I'm looking in the wrong places), but 
I'd like to create paired custom tags, so I can do something like this:

cf_question layout=vertical name=TestQuestionQuestion text 
here/cf_question

And have it build an input tag for me, rather than:

cf_question layout=vertical name=TestQuestion QuestionText=Question 
text here

Is there anyway to do this and parse it in ColdFusion?  Would I have to 
build a parser to do this, and if so, has anyone ever built a parser like 
this?  (It just has to generate the HTML code for the custom tags.)

T

---
[This E-mail scanned for viruses by Declude Anti-Virus]


~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:203593
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Custom tag question

2005-04-19 Thread James Holmes
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/reusec22.htm

http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/reusec23.htm


-Original Message-
From: Thane Sherrington [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 20 April 2005 7:17 
To: CF-Talk
Subject: Custom tag question

I've never seen this done (perhaps I'm looking in the wrong places), but I'd
like to create paired custom tags, so I can do something like this:

cf_question layout=vertical name=TestQuestionQuestion text
here/cf_question

And have it build an input tag for me, rather than:

cf_question layout=vertical name=TestQuestion QuestionText=Question
text here

Is there anyway to do this and parse it in ColdFusion?  Would I have to
build a parser to do this, and if so, has anyone ever built a parser like
this?  (It just has to generate the HTML code for the custom tags.)

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:203601
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Custom tag question

2005-04-19 Thread Thane Sherrington
At 08:33 PM 19/04/2005, James Holmes wrote:
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/reusec22.htm

http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/reusec23.htm

Thanks.

T 

---
[This E-mail scanned for viruses by Declude Anti-Virus]


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:203604
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Custom tag question

2005-04-19 Thread Raymond Camden
Just an FYI, but you can also build nested tags as well:

cf_parent
  cf_child
cf_grandkid
  /cf_child
/cf_parent

Of course, I've only rarely done this for a real custom tag.

On 4/19/05, Thane Sherrington [EMAIL PROTECTED] wrote:
 At 08:33 PM 19/04/2005, James Holmes wrote:
 http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/reusec22.htm
 
 http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/reusec23.htm
 
 Thanks.
 
 T
 
 ---
 [This E-mail scanned for viruses by Declude Anti-Virus]
 
 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:203605
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Custom tag question

2005-03-13 Thread Howie Hamlin
I have a custom tag that has a start and end tag in cfml.  For example:

cf_mytag
some text
/cf_mytag

I can't seem to get the some text to stop appearing on the page.  I've tried 
enablecfoutputonly=yes and cfsilent in the tag itself but I still see the 
text between the tags on the page.  How can I get rid of it?  This is on a cfmx 
6.1 box, BTW.

Thanks,

Howie

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198620
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Custom tag question

2005-03-13 Thread Dave Watts
 I have a custom tag that has a start and end tag in cfml.  
 For example:
 
 cf_mytag
 some text
 /cf_mytag
 
 I can't seem to get the some text to stop appearing on the 
 page.  I've tried enablecfoutputonly=yes and cfsilent in 
 the tag itself but I still see the text between the tags on 
 the page. How can I get rid of it? This is on a cfmx 6.1 box, 
 BTW.

If I recall correctly, you will need to set ThisTag.GeneratedContent to an
empty string during the end execution mode of your custom tag:

cfif ThisTag.ExecutionMode is end
cfset ThisTag.GeneratedContent = 
/cfif

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized 
instruction at our training centers in Washington DC, Atlanta, 
Chicago, Baltimore, Northern Virginia, or on-site at your location. 
Visit http://training.figleaf.com/ for more information!


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198621
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Custom tag question

2005-03-13 Thread Howie Hamlin
Thanks Dave!

That did the trick.  I searched the cf docs and google and couldn't find this 
info.

Regards,

Howie

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198622
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Custom tag question

2005-03-13 Thread James Holmes
Like this?

http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/reusec23.htm 

-Original Message-
From: Howie Hamlin [mailto:[EMAIL PROTECTED] 
Sent: Monday, 14 March 2005 10:05 
To: CF-Talk
Subject: Re: Custom tag question

Thanks Dave!

That did the trick.  I searched the cf docs and google and couldn't find
this info.

Regards,

Howie

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198625
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Custom Tag Question

2004-05-23 Thread C. Hatton Humphrey
I'm working on a custom tag to somewhat automate the auditing of database
changes for an application and I have a dumb question -

In the start section of the tag I am storing the current values into a
structure, then my idea is to requery the table at the end section and
compare the two to create the audit records to be created.

However, do I need to do anything special to make sure that the structure is
maintained between the start and end tags?

For example,

cf_audit action="" table=users RecordID=3
cfquery name=qThisAction datasource=#DSN#
	UPDATE Users SET 
		Name='This',
		Username = 'Testing'
		Address = 'Whatever'
		
	WHERE users_id = 3
/cfquery
/cf_audit

This would be a lot easier to take care of if I was on a SQL Server
environment, triggers would be perfect for this.However this is running on
a MySQL datasource, hence the lack of SP's and triggers.I've got the start
section creating the structure that has the original values of the record.
I'm just hoping that I'm doing the structure correctly.

Ideas?
Thanks!
Hatton		

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.680 / Virus Database: 442 - Release Date: 5/9/2004
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Custom Tag Question

2004-05-23 Thread Claude Schneegans
do I need to do anything special to make sure that the structure is
maintained between the start and end tags?

No, what you have created in the start section is available in the end section.
--
___
See some cool custom tags here:
http://www.contentbox.com/claude/customtags/tagstore.cfm
Please send any spam to this address: [EMAIL PROTECTED]
Thanks.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Custom Tag Question

2004-05-23 Thread C. Hatton Humphrey
 do I need to do anything special to make sure that the structure is
 maintained between the start and end tags?
 
 No, what you have created in the start section is available in the end
 section.

Excellent!I'm using the custom tag approach to interface with a UDF that
I've already written... this way instead of passing a list of fields and a
list of values each field change will automagically have it's own entry in
the audit log.That'll make searching the audit log a LOT easier later.

Thanks for the reply,
Hatton

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.680 / Virus Database: 442 - Release Date: 5/9/2004
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Custom Tag Question

2003-06-04 Thread John Stanley
All,
I need to pass a portion of a conditional statement to a custom tag,
like

cf_thistag  condition=get_data.summary_id eq 263012

then in the custom tag I wanna do something like

cfoutput query=attributes.queryname
cfif attributes.condition neq 
cfif #attributes.condition#
then do this
cfelse
otherwise do this
/cfif
cfelse
do this
/cfif
/cfoutput

I have tried:
cfif attributes.condition
cfif #attributes.condition# 
cfif #Evaluate(attributes.condition)#
adding the cfif into the attribute like cf_thistag  condition=cfif
get_data.summary_id eq 263012
and then doing #Evaluate(attributes.condition)#
or
#attributes.condition#

no luck, i keep getting an error saying cannot convert the value 263012 eq
263012 to a boolean. Or sometimes I get an incomplete cfif tag error.

I am using MX by the way.

Is this process just not possible in Cold Fusion?
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: Custom Tag Question

2003-06-04 Thread Raymond Camden
Evaluate is right - but when the evaluation is run, it's run in the
context of the custom tag, not the calling template. The tag has no idea
what get_data is unless you pass it. In your example below, you did not
pass it, so it can't use the query. Did you pass it and just forget to
include it in your example below? 


===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
(www.mindseye.com)
Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)

Email: [EMAIL PROTECTED]
Blog : www.camdenfamily.com/morpheus/blog
Yahoo IM : morpheus

My ally is the Force, and a powerful ally it is. - Yoda 

 -Original Message-
 From: John Stanley [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, June 03, 2003 12:27 PM
 To: CF-Talk
 Subject: Custom Tag Question
 
 
 All,
   I need to pass a portion of a conditional statement to 
 a custom tag, like
 
 cf_thistag  condition=get_data.summary_id eq 263012
 
 then in the custom tag I wanna do something like
 
 cfoutput query=attributes.queryname
   cfif attributes.condition neq 
   cfif #attributes.condition#
   then do this
   cfelse
   otherwise do this
   /cfif
   cfelse
   do this
   /cfif
 /cfoutput
 
 I have tried:
   cfif attributes.condition
   cfif #attributes.condition# 
   cfif #Evaluate(attributes.condition)#
   adding the cfif into the attribute like cf_thistag  
 condition=cfif get_data.summary_id eq 263012
   and then doing #Evaluate(attributes.condition)#
   or
   #attributes.condition#
 
 no luck, i keep getting an error saying cannot convert the 
 value 263012 eq 263012 to a boolean. Or sometimes I get an 
 incomplete cfif tag error.
 
 I am using MX by the way.
 
 Is this process just not possible in Cold Fusion? 
 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: Custom Tag Question

2003-06-04 Thread Randell B Adkins
What that is doing os converting the get_data.summary_id to
the actual value before it is past over to the customtag.

One being a string value and the other a value.

Might try to convert the ID to a VAL within the call to the customtag

cf_thistag  condition=VAL(get_data.summary_id) eq 263012


Not tried it but worth a shot..


 [EMAIL PROTECTED] 06/03/03 02:26PM 
All,
I need to pass a portion of a conditional statement to a custom
tag,
like

cf_thistag  condition=get_data.summary_id eq 263012

then in the custom tag I wanna do something like

cfoutput query=attributes.queryname
cfif attributes.condition neq 
cfif #attributes.condition#
then do this
cfelse
otherwise do this
/cfif
cfelse
do this
/cfif
/cfoutput

I have tried:
cfif attributes.condition
cfif #attributes.condition# 
cfif #Evaluate(attributes.condition)#
adding the cfif into the attribute like cf_thistag 
condition=cfif
get_data.summary_id eq 263012
and then doing #Evaluate(attributes.condition)#
or
#attributes.condition#

no luck, i keep getting an error saying cannot convert the value
263012 eq
263012 to a boolean. Or sometimes I get an incomplete cfif tag error.

I am using MX by the way.

Is this process just not possible in Cold Fusion?

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: Custom Tag Question

2003-06-04 Thread Bryan Love
Actually, you have two choices here:

you can either use pound signs:
cf_thistag  condition=#get_data.summary_id# eq 263012
(this will dereferenc get_data.summary_id before passing it to the tag)

or reference the caller scope inside the tag:

.
cfif evaluate(caller.#attributes.condition#)
.

+---+
Bryan Love
  Database Analyst
  Macromedia Certified Professional
  Internet Application Developer
TeleCommunication Systems
[EMAIL PROTECTED]
+---+

...'If there must be trouble, let it be in my day, that my child may have
peace'...
- Thomas Paine, The American Crisis

Let's Roll
- Todd Beamer, Flight 93



-Original Message-
From: Randell B Adkins [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 11:58 AM
To: CF-Talk
Subject: Re: Custom Tag Question


What that is doing os converting the get_data.summary_id to
the actual value before it is past over to the customtag.

One being a string value and the other a value.

Might try to convert the ID to a VAL within the call to the customtag

cf_thistag  condition=VAL(get_data.summary_id) eq 263012


Not tried it but worth a shot..


 [EMAIL PROTECTED] 06/03/03 02:26PM 
All,
I need to pass a portion of a conditional statement to a custom
tag,
like

cf_thistag  condition=get_data.summary_id eq 263012

then in the custom tag I wanna do something like

cfoutput query=attributes.queryname
cfif attributes.condition neq 
cfif #attributes.condition#
then do this
cfelse
otherwise do this
/cfif
cfelse
do this
/cfif
/cfoutput

I have tried:
cfif attributes.condition
cfif #attributes.condition# 
cfif #Evaluate(attributes.condition)#
adding the cfif into the attribute like cf_thistag 
condition=cfif
get_data.summary_id eq 263012
and then doing #Evaluate(attributes.condition)#
or
#attributes.condition#

no luck, i keep getting an error saying cannot convert the value
263012 eq
263012 to a boolean. Or sometimes I get an incomplete cfif tag error.

I am using MX by the way.

Is this process just not possible in Cold Fusion?


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: Custom Tag Question

2003-06-04 Thread Raymond Camden
I don't think so. That would execute when the tag calls. I _believe_ he
wants the condition to be run inside the tag, in this case, every time
for every row in a query.


===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
(www.mindseye.com)
Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)

Email: [EMAIL PROTECTED]
Blog : www.camdenfamily.com/morpheus/blog
Yahoo IM : morpheus

My ally is the Force, and a powerful ally it is. - Yoda 

 -Original Message-
 From: Bryan Love [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, June 03, 2003 2:22 PM
 To: CF-Talk
 Subject: RE: Custom Tag Question
 
 
 Actually, you have two choices here:
 
 you can either use pound signs:
 cf_thistag  condition=#get_data.summary_id# eq 263012
 (this will dereferenc get_data.summary_id before passing it 
 to the tag)
 
 or reference the caller scope inside the tag:
 
 .
 cfif evaluate(caller.#attributes.condition#)
 .
 
 +---+
 Bryan Love
   Database Analyst
   Macromedia Certified Professional
   Internet Application Developer
 TeleCommunication Systems
 [EMAIL PROTECTED]
 +---+
 
 ...'If there must be trouble, let it be in my day, that my 
 child may have peace'...
   - Thomas Paine, The American Crisis
 
 Let's Roll
   - Todd Beamer, Flight 93
 
 
 
 -Original Message-
 From: Randell B Adkins [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 03, 2003 11:58 AM
 To: CF-Talk
 Subject: Re: Custom Tag Question
 
 
 What that is doing os converting the get_data.summary_id to 
 the actual value before it is past over to the customtag.
 
 One being a string value and the other a value.
 
 Might try to convert the ID to a VAL within the call to the customtag
 
 cf_thistag  condition=VAL(get_data.summary_id) eq 263012
 
 
 Not tried it but worth a shot..
 
 
  [EMAIL PROTECTED] 06/03/03 02:26PM 
 All,
   I need to pass a portion of a conditional statement to 
 a custom tag, like
 
 cf_thistag  condition=get_data.summary_id eq 263012
 
 then in the custom tag I wanna do something like
 
 cfoutput query=attributes.queryname
   cfif attributes.condition neq 
   cfif #attributes.condition#
   then do this
   cfelse
   otherwise do this
   /cfif
   cfelse
   do this
   /cfif
 /cfoutput
 
 I have tried:
   cfif attributes.condition
   cfif #attributes.condition# 
   cfif #Evaluate(attributes.condition)#
   adding the cfif into the attribute like cf_thistag 
 condition=cfif
 get_data.summary_id eq 263012
   and then doing #Evaluate(attributes.condition)#
   or
   #attributes.condition#
 
 no luck, i keep getting an error saying cannot convert the 
 value 263012 eq 263012 to a boolean. Or sometimes I get an 
 incomplete cfif tag error.
 
 I am using MX by the way.
 
 Is this process just not possible in Cold Fusion?
 
 
 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Host with the leader in ColdFusion hosting. 
Voted #1 ColdFusion host by CF Developers. 
Offering shared and dedicated hosting options. 
www.cfxhosting.com/default.cfm?redirect=10481

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: Custom Tag Question

2003-06-04 Thread Bryan Love
ahh, then the second suggestion will still work - putting caller. in front
of the query name.

+---+
Bryan Love
  Database Analyst
  Macromedia Certified Professional
  Internet Application Developer
TeleCommunication Systems
[EMAIL PROTECTED]
+---+

...'If there must be trouble, let it be in my day, that my child may have
peace'...
- Thomas Paine, The American Crisis

Let's Roll
- Todd Beamer, Flight 93



-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 2:03 PM
To: CF-Talk
Subject: RE: Custom Tag Question


I don't think so. That would execute when the tag calls. I _believe_ he
wants the condition to be run inside the tag, in this case, every time
for every row in a query.


===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
(www.mindseye.com)
Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)

Email: [EMAIL PROTECTED]
Blog : www.camdenfamily.com/morpheus/blog
Yahoo IM : morpheus

My ally is the Force, and a powerful ally it is. - Yoda 

 -Original Message-
 From: Bryan Love [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, June 03, 2003 2:22 PM
 To: CF-Talk
 Subject: RE: Custom Tag Question
 
 
 Actually, you have two choices here:
 
 you can either use pound signs:
 cf_thistag  condition=#get_data.summary_id# eq 263012
 (this will dereferenc get_data.summary_id before passing it 
 to the tag)
 
 or reference the caller scope inside the tag:
 
 .
 cfif evaluate(caller.#attributes.condition#)
 .
 
 +---+
 Bryan Love
   Database Analyst
   Macromedia Certified Professional
   Internet Application Developer
 TeleCommunication Systems
 [EMAIL PROTECTED]
 +---+
 
 ...'If there must be trouble, let it be in my day, that my 
 child may have peace'...
   - Thomas Paine, The American Crisis
 
 Let's Roll
   - Todd Beamer, Flight 93
 
 
 
 -Original Message-
 From: Randell B Adkins [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 03, 2003 11:58 AM
 To: CF-Talk
 Subject: Re: Custom Tag Question
 
 
 What that is doing os converting the get_data.summary_id to 
 the actual value before it is past over to the customtag.
 
 One being a string value and the other a value.
 
 Might try to convert the ID to a VAL within the call to the customtag
 
 cf_thistag  condition=VAL(get_data.summary_id) eq 263012
 
 
 Not tried it but worth a shot..
 
 
  [EMAIL PROTECTED] 06/03/03 02:26PM 
 All,
   I need to pass a portion of a conditional statement to 
 a custom tag, like
 
 cf_thistag  condition=get_data.summary_id eq 263012
 
 then in the custom tag I wanna do something like
 
 cfoutput query=attributes.queryname
   cfif attributes.condition neq 
   cfif #attributes.condition#
   then do this
   cfelse
   otherwise do this
   /cfif
   cfelse
   do this
   /cfif
 /cfoutput
 
 I have tried:
   cfif attributes.condition
   cfif #attributes.condition# 
   cfif #Evaluate(attributes.condition)#
   adding the cfif into the attribute like cf_thistag 
 condition=cfif
 get_data.summary_id eq 263012
   and then doing #Evaluate(attributes.condition)#
   or
   #attributes.condition#
 
 no luck, i keep getting an error saying cannot convert the 
 value 263012 eq 263012 to a boolean. Or sometimes I get an 
 incomplete cfif tag error.
 
 I am using MX by the way.
 
 Is this process just not possible in Cold Fusion?
 
 
 

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: Custom Tag Question

2003-06-04 Thread John Stanley
Thanks, but I get the error : cannot convert the value
VAL(get_data.summary_id) eq 263012 to a boolean

-Original Message-
From: Randell B Adkins [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 2:58 PM
To: CF-Talk
Subject: Re: Custom Tag Question


What that is doing os converting the get_data.summary_id to
the actual value before it is past over to the customtag.

One being a string value and the other a value.

Might try to convert the ID to a VAL within the call to the customtag

cf_thistag  condition=VAL(get_data.summary_id) eq 263012


Not tried it but worth a shot..


 [EMAIL PROTECTED] 06/03/03 02:26PM 
All,
I need to pass a portion of a conditional statement to a custom
tag,
like

cf_thistag  condition=get_data.summary_id eq 263012

then in the custom tag I wanna do something like

cfoutput query=attributes.queryname
cfif attributes.condition neq 
cfif #attributes.condition#
then do this
cfelse
otherwise do this
/cfif
cfelse
do this
/cfif
/cfoutput

I have tried:
cfif attributes.condition
cfif #attributes.condition# 
cfif #Evaluate(attributes.condition)#
adding the cfif into the attribute like cf_thistag 
condition=cfif
get_data.summary_id eq 263012
and then doing #Evaluate(attributes.condition)#
or
#attributes.condition#

no luck, i keep getting an error saying cannot convert the value
263012 eq
263012 to a boolean. Or sometimes I get an incomplete cfif tag error.

I am using MX by the way.

Is this process just not possible in Cold Fusion?


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: Custom Tag Question

2003-06-04 Thread John Stanley
Brian, thanks so much.this worked: cfif
evaluate(caller.#attributes.collinkcondition#)

-Original Message-
From: Bryan Love [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 4:22 PM
To: CF-Talk
Subject: RE: Custom Tag Question


Actually, you have two choices here:

you can either use pound signs:
cf_thistag  condition=#get_data.summary_id# eq 263012
(this will dereferenc get_data.summary_id before passing it to the tag)

or reference the caller scope inside the tag:

.
cfif evaluate(caller.#attributes.condition#)
.

+---+
Bryan Love
  Database Analyst
  Macromedia Certified Professional
  Internet Application Developer
TeleCommunication Systems
[EMAIL PROTECTED]
+---+

...'If there must be trouble, let it be in my day, that my child may have
peace'...
- Thomas Paine, The American Crisis

Let's Roll
- Todd Beamer, Flight 93



-Original Message-
From: Randell B Adkins [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 11:58 AM
To: CF-Talk
Subject: Re: Custom Tag Question


What that is doing os converting the get_data.summary_id to
the actual value before it is past over to the customtag.

One being a string value and the other a value.

Might try to convert the ID to a VAL within the call to the customtag

cf_thistag  condition=VAL(get_data.summary_id) eq 263012


Not tried it but worth a shot..


 [EMAIL PROTECTED] 06/03/03 02:26PM 
All,
I need to pass a portion of a conditional statement to a custom
tag,
like

cf_thistag  condition=get_data.summary_id eq 263012

then in the custom tag I wanna do something like

cfoutput query=attributes.queryname
cfif attributes.condition neq 
cfif #attributes.condition#
then do this
cfelse
otherwise do this
/cfif
cfelse
do this
/cfif
/cfoutput

I have tried:
cfif attributes.condition
cfif #attributes.condition# 
cfif #Evaluate(attributes.condition)#
adding the cfif into the attribute like cf_thistag 
condition=cfif
get_data.summary_id eq 263012
and then doing #Evaluate(attributes.condition)#
or
#attributes.condition#

no luck, i keep getting an error saying cannot convert the value
263012 eq
263012 to a boolean. Or sometimes I get an incomplete cfif tag error.

I am using MX by the way.

Is this process just not possible in Cold Fusion?



~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Custom Tag Question

2003-03-11 Thread John Stanley
I am creating a custom tag that will display the results of a query. I know
there are already some out there, but I wanna do it myself.

I have an attribute called queryname that i refer to in the call of the
custom tag.

cf_mytag queryname=get_users

inside the custom tag i refer to it as attributes.queryname as in the
following

cfoutput query=#attributes.queryname#
blah blah 
/cfoutput

I keep getting the following error.

Attribute validation error for tag cfoutput.  
The value of the attribute query, which is currently get_users, is
invalid.  
  
The error occurred in C:\CFusionMX\CustomTags\tabledata.cfm: line 20
 
18 :th/thnbsp;/th
19 :  /tr
20 :cfoutput query=#attributes.queryname#
 

I have called the custom tag after the query. Does the custom tag still
execute first? The custom tag appears before the query in debugging.

If so what is a competent work around for this problem.?
 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: Custom Tag Question

2003-03-11 Thread Raymond Camden
That is because you did not pass the query to the custom tag, but the
name of the query. You can fix this two ways.

1) In your custom tag, do cfoutput
query=caller.#attributes.queryname#, however, in general, it's not
good practice to refer to variables outside the custom tag.

2) Pass the actual query
cf_mytag query=#get_users#

Then your cfquery would be

cfoutput query=attributes.query (Notice, no # marks.)

===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
Member of Team Macromedia

Email: [EMAIL PROTECTED]
Blog : www.camdenfamily.com/morpheus/blog
Yahoo IM : morpheus

My ally is the Force, and a powerful ally it is. - Yoda 

 -Original Message-
 From: John Stanley [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, March 11, 2003 8:29 AM
 To: CF-Talk
 Subject: Custom Tag Question
 
 
 I am creating a custom tag that will display the results of a 
 query. I know there are already some out there, but I wanna 
 do it myself.
 
 I have an attribute called queryname that i refer to in the 
 call of the custom tag.
 
 cf_mytag queryname=get_users
 
 inside the custom tag i refer to it as attributes.queryname 
 as in the following
 
 cfoutput query=#attributes.queryname#
   blah blah 
 /cfoutput
 
 I keep getting the following error.
 
 Attribute validation error for tag cfoutput.  
 The value of the attribute query, which is currently 
 get_users, is invalid.  
   
 The error occurred in C:\CFusionMX\CustomTags\tabledata.cfm: line 20
  
 18 :  th/thnbsp;/th
 19 :  /tr
 20 :  cfoutput query=#attributes.queryname#
  
 
 I have called the custom tag after the query. Does the custom 
 tag still execute first? The custom tag appears before the 
 query in debugging.
 
 If so what is a competent work around for this problem.?
  
 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: Custom Tag Question

2003-03-11 Thread Andre Mohamed
Try something LIKE this inside of your custom tag:

cfset theQuery = caller.#attributes.queryname#

cfoutput query=theQuery
blah blah
/cfoutput


Thanks,

André


-Original Message-
From: John Stanley [mailto:[EMAIL PROTECTED] 
Sent: 11 March 2003 14:29
To: CF-Talk
Subject: Custom Tag Question

I am creating a custom tag that will display the results of a query. I
know
there are already some out there, but I wanna do it myself.

I have an attribute called queryname that i refer to in the call of the
custom tag.

cf_mytag queryname=get_users

inside the custom tag i refer to it as attributes.queryname as in the
following

cfoutput query=#attributes.queryname#
blah blah 
/cfoutput

I keep getting the following error.

Attribute validation error for tag cfoutput.  
The value of the attribute query, which is currently get_users, is
invalid.  
  
The error occurred in C:\CFusionMX\CustomTags\tabledata.cfm: line 20
 
18 :th/thnbsp;/th
19 :  /tr
20 :cfoutput query=#attributes.queryname#
 

I have called the custom tag after the query. Does the custom tag still
execute first? The custom tag appears before the query in debugging.

If so what is a competent work around for this problem.?
 

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: Custom Tag Question

2003-03-11 Thread John Stanley
Raymond, thank you very much for your help. that was it.



-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 11, 2003 9:38 AM
To: CF-Talk
Subject: RE: Custom Tag Question


That is because you did not pass the query to the custom tag, but the
name of the query. You can fix this two ways.

1) In your custom tag, do cfoutput
query=caller.#attributes.queryname#, however, in general, it's not
good practice to refer to variables outside the custom tag.

2) Pass the actual query
cf_mytag query=#get_users#

Then your cfquery would be

cfoutput query=attributes.query (Notice, no # marks.)

===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
Member of Team Macromedia

Email: [EMAIL PROTECTED]
Blog : www.camdenfamily.com/morpheus/blog
Yahoo IM : morpheus

My ally is the Force, and a powerful ally it is. - Yoda 

 -Original Message-
 From: John Stanley [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, March 11, 2003 8:29 AM
 To: CF-Talk
 Subject: Custom Tag Question
 
 
 I am creating a custom tag that will display the results of a 
 query. I know there are already some out there, but I wanna 
 do it myself.
 
 I have an attribute called queryname that i refer to in the 
 call of the custom tag.
 
 cf_mytag queryname=get_users
 
 inside the custom tag i refer to it as attributes.queryname 
 as in the following
 
 cfoutput query=#attributes.queryname#
   blah blah 
 /cfoutput
 
 I keep getting the following error.
 
 Attribute validation error for tag cfoutput.  
 The value of the attribute query, which is currently 
 get_users, is invalid.  
   
 The error occurred in C:\CFusionMX\CustomTags\tabledata.cfm: line 20
  
 18 :  th/thnbsp;/th
 19 :  /tr
 20 :  cfoutput query=#attributes.queryname#
  
 
 I have called the custom tag after the query. Does the custom 
 tag still execute first? The custom tag appears before the 
 query in debugging.
 
 If so what is a competent work around for this problem.?
  
 

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: Custom Tag Question

2003-03-11 Thread Info
cf_mytag queryname=#get_users#

Looks like you need to put # around the variable that you are passing to the
tag
otherwise the tag will see it as a text string.



- Original Message -
From: John Stanley [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, March 11, 2003 7:28 AM
Subject: Custom Tag Question


 I am creating a custom tag that will display the results of a query. I
know
 there are already some out there, but I wanna do it myself.

 I have an attribute called queryname that i refer to in the call of the
 custom tag.

 cf_mytag queryname=get_users

 inside the custom tag i refer to it as attributes.queryname as in the
 following

 cfoutput query=#attributes.queryname#
 blah blah
 /cfoutput

 I keep getting the following error.

 Attribute validation error for tag cfoutput.
 The value of the attribute query, which is currently get_users, is
 invalid.

 The error occurred in C:\CFusionMX\CustomTags\tabledata.cfm: line 20

 18 : th/thnbsp;/th
 19 :  /tr
 20 : cfoutput query=#attributes.queryname#


 I have called the custom tag after the query. Does the custom tag still
 execute first? The custom tag appears before the query in debugging.

 If so what is a competent work around for this problem.?

 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: Custom Tag Question

2002-04-12 Thread Pascal Peters

This works, but why not use Dave's approach and pass the query as a pointer. It will 
make more readable code.
Also, you don't need to pass the recordcount into the CT. The info is available there.

Calling the tag with this:
cf_theS Rows=3 
Query=#GetProductList#



!--- begin custom tag---
cfset numberOfRows = ceiling(attributes.Query.RecordCount/attributes.Rows)
cfset NumOfCol = attributes.Rows
cfset BeginRow = 1

table width=100 cellpadding=5
cfloop index=i from=1 to=#numberOfRows#
tr
 cfoutput query=ATTRIBUTES.Query 
StartRow=#variables.BeginRow# Maxrows=#variables.NumOfCol#
 td
 img src=../catImages/#ThumbNail# border=0 alt=#ID#
 /td
 /cfoutput
cfset BeginRow = BeginRow + NumOfCol
/tr
/cfloop
/table
-Original Message-
From: Chad Gray [mailto:[EMAIL PROTECTED]]
Sent: donderdag 11 april 2002 22:45
To: CF-Talk
Subject: RE: Custom Tag Question


Ok... i did quite follow what you guys were saying, but thanks for 
trying.  I did get it to work like this.  Let me know if im an idiot and if 
this is total kludge.

I put Caller.#ATTRIBUTES.Query# into the Query= on my CFoutput.


Calling the tag with this:
cf_theS QueryCount=#GetProductlist.recordcount# Rows=3 
Query=GetProductList



!--- begin custom tag---
cfset numberOfRows = ceiling(attributes.QueryCount/attributes.Rows)
cfset NumOfCol = attributes.Rows
cfset BeginRow = 1

table width=100 cellpadding=5
cfloop index=i from=1 to=#numberOfRows#
tr
 cfoutput query=Caller.#ATTRIBUTES.Query# 
StartRow=#variables.BeginRow# Maxrows=#variables.NumOfCol#
 td
 img src=../catImages/#ThumbNail# border=0 alt=#ID#
 /td
 /cfoutput
cfset BeginRow = BeginRow + NumOfCol
/tr
/cfloop
/table

__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Custom Tag Question

2002-04-11 Thread Chad Gray

Hello,

I am trying to write a super simple custom tag but im running into problems 
getting CFQuery information into the custom tag.  Is it possible to pass 
Query data into a custom tag?

My error is The QUERY attribute of the tag does not specify the name of an 
available query


Im calling the custom tag like this:
cf_theS QueryCount=#GetProductlist.recordcount# Rows=3 
QueryName=GetProductList


Below is the custom tag code.

!--- Start of Custom Tag ---
cfset numberOfRows = ceiling(attributes.QueryCount/attributes.Rows)
cfset NumOfCol = attributes.Rows
cfset BeginRow = 1

table width=100 cellpadding=5
cfloop index=i from=1 to=#numberOfRows#
tr
cfoutput query=#attributes.QueryName# StartRow=#BeginRow# 
Maxrows=#NumOfCol#
td
img src=../catImages/#getproductlist.ThumbNail# border=0 
alt=#getproductlist.ID#
/td
/cfoutput
cfset BeginRow = BeginRow + NumOfCol
/tr
/cfloop
/table

__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Custom Tag Question

2002-04-11 Thread Sharon Diorio

 I am trying to write a super simple custom tag but im running into problems
 getting CFQuery information into the custom tag.  Is it possible to pass
 Query data into a custom tag?

Yes.  The trick is evaluating it before passing it, you can't pass it by reference.  
It becomes an attribute of the tag.

cf_theS query=#getProductList#

From within the tag, you can reference the query as #ATTRIBUTES.query#.  I recommend 
copying it to local scope for ease of typing.

Sharon DiOrio
__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Custom Tag Question

2002-04-11 Thread Dave Watts

  I am trying to write a super simple custom tag but im 
  running into problems getting CFQuery information into 
  the custom tag. Is it possible to pass Query data into 
  a custom tag?
 
 Yes. The trick is evaluating it before passing it, you can't 
 pass it by reference. It becomes an attribute of the tag.
 
 cf_theS query=#getProductList#
 
 From within the tag, you can reference the query as 
 #ATTRIBUTES.query#. I recommend copying it to local scope 
 for ease of typing.

I think it's worth pointing out that, when you say: 

query=#getProductList#

you are passing the query by reference. Queries and structures are passed by
reference, while arrays and simple types are passed by value. When something
is passed by reference, there's only one object, but multiple names that
point to the object.

It's also worth noting that you could reference the query from within the
custom tag without passing it at all, so if you did this:

query=getProductList

you could reference it within the custom tag like this:

Caller.getProductList

However, I prefer the first approach myself.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



[Custom Tag Question] ThisTag.GeneratedContent...

2001-07-17 Thread Jamie Jackson

Please tell me if the following is possible, and how: I want to stifle
the output of the area between cf_MyTag and /cf_MyTag.

Here is a simplified example: I the following output: Hello World, I
do want to display this sentence.

### Calling script ###:
cf_MyTag
Hello, World, I do NOT want to display this sentence.
/cf_MyTag

### MyTag.cfm (custom tag) ###:
cfoutput#ReplaceNoCase(ThisTag.GeneratedContent, 'do NOT',
'do')#/cfoutput

Currently, this displays:
Hello, World, I do NOT want to display this sentence. Hello, World, I
do want to display this message. (Obviously, I don't want the first
sentence displayed.)

Is this best handled by cfsetting cfoutputonly=yes, or is there
another way that's already built into the custom tag framework?

Thanks,
Jamie

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: [Custom Tag Question] ThisTag.GeneratedContent...

2001-07-17 Thread Jamie Jackson

Got this reply via email, and it does exactly what I needed... Thanks
Bryan.

Tuesday, July 17, 2001 1:03 PM
My posts don't seem to go through for a long time so I am sending this
to you
directly.

Try saving the content in a variable first.

cfset content = thistag.generatedContent

then clear the content.
cfset thistag.generatedContent = 

then do your replacement.
cfoutput#ReplaceNoCase(content, 'do NOT',
 'do')#/cfoutput

Bryan

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: [Custom Tag Question] ThisTag.GeneratedContent...

2001-07-17 Thread Raymond Camden

Simply do:

CFSET ThisTag.GeneratedContent = 

Make sure you do it in ThisTag.ExecutionMode EQ End.

===
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia

Email   : [EMAIL PROTECTED]
ICQ UIN : 3679482

My ally is the Force, and a powerful ally it is. - Yoda 

 -Original Message-
 From: Jamie Jackson [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 17, 2001 11:38 AM
 To: CF-Talk
 Subject: [Custom Tag Question] ThisTag.GeneratedContent...
 
 
 Please tell me if the following is possible, and how: I want to stifle
 the output of the area between cf_MyTag and /cf_MyTag.
 
 Here is a simplified example: I the following output: Hello World, I
 do want to display this sentence.
 
 ### Calling script ###:
 cf_MyTag
 Hello, World, I do NOT want to display this sentence.
 /cf_MyTag
 
 ### MyTag.cfm (custom tag) ###:
 cfoutput#ReplaceNoCase(ThisTag.GeneratedContent, 'do NOT',
 'do')#/cfoutput
 
 Currently, this displays:
 Hello, World, I do NOT want to display this sentence. Hello, World, I
 do want to display this message. (Obviously, I don't want the first
 sentence displayed.)
 
 Is this best handled by cfsetting cfoutputonly=yes, or is there
 another way that's already built into the custom tag framework?
 
 Thanks,
 Jamie
 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: [Custom Tag Question] ThisTag.GeneratedContent...

2001-07-17 Thread Nick McClure

In the end portion of the tag you need to set ThisTag.GeneratedContent to 
nothing. Do this after you output what you need to output.

At 11:38 AM 7/17/2001 -0400, you wrote:
Please tell me if the following is possible, and how: I want to stifle
the output of the area between cf_MyTag and /cf_MyTag.

Here is a simplified example: I the following output: Hello World, I
do want to display this sentence.

### Calling script ###:
cf_MyTag
Hello, World, I do NOT want to display this sentence.
/cf_MyTag

### MyTag.cfm (custom tag) ###:
cfoutput#ReplaceNoCase(ThisTag.GeneratedContent, 'do NOT',
'do')#/cfoutput

Currently, this displays:
Hello, World, I do NOT want to display this sentence. Hello, World, I
do want to display this message. (Obviously, I don't want the first
sentence displayed.)

Is this best handled by cfsetting cfoutputonly=yes, or is there
another way that's already built into the custom tag framework?

Thanks,
Jamie


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: [Custom Tag Question] ThisTag.GeneratedContent...

2001-07-17 Thread Dave Watts

 Please tell me if the following is possible, and how: I want to 
 stifle the output of the area between cf_MyTag and /cf_MyTag.

Yes, it's possible. Simply clear the value of ThisTag.GeneratedContent when
you're done with it.

### MyTag.cfm (custom tag) ###:
cfoutput#ReplaceNoCase(ThisTag.GeneratedContent, 'do NOT',
'do')#/cfoutput
cfset ThisTag.GeneratedContent = 

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: (202) 797-5496
fax: (202) 797-5444

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: [Custom Tag Question] ThisTag.GeneratedContent...

2001-07-17 Thread Eric Dawson

rush answer - sorry. but if I understand correctly...

==  callingtemplate.cfm
cf_stripContent
   This is the Content.
/cf_stripContent

cfoutput#PageContent#/cfoutput
==  end callingtemplate.cfm

== stripcontent.cfm
cfif ThisTag.ExecutionMode is start
cfelse
   cfset caller.PageContent = thistag.generatedcontent
   cfset caller.PageContent = manipulated content
   cfset thistag.generatedcontent=
/cfif
== end stripcontent.cfm

This is how I do it. You could even get fancy to specify the variable name 
to return.

Eric


From: Jamie Jackson [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Subject: [Custom Tag Question] ThisTag.GeneratedContent...
Date: Tue, 17 Jul 2001 11:38:28 -0400

Please tell me if the following is possible, and how: I want to stifle
the output of the area between cf_MyTag and /cf_MyTag.

Here is a simplified example: I the following output: Hello World, I
do want to display this sentence.

### Calling script ###:
cf_MyTag
Hello, World, I do NOT want to display this sentence.
/cf_MyTag

### MyTag.cfm (custom tag) ###:
cfoutput#ReplaceNoCase(ThisTag.GeneratedContent, 'do NOT',
'do')#/cfoutput

Currently, this displays:
Hello, World, I do NOT want to display this sentence. Hello, World, I
do want to display this message. (Obviously, I don't want the first
sentence displayed.)

Is this best handled by cfsetting cfoutputonly=yes, or is there
another way that's already built into the custom tag framework?

Thanks,
Jamie
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: [Custom Tag Question] ThisTag.GeneratedContent...

2001-07-17 Thread Jochem van Dieten

Jamie Jackson wrote:

 Please tell me if the following is possible, and how: I want to stifle
 the output of the area between cf_MyTag and /cf_MyTag.
 
 Here is a simplified example: I the following output: Hello World, I
 do want to display this sentence.
 
 ### Calling script ###:
 cf_MyTag
 Hello, World, I do NOT want to display this sentence.
 /cf_MyTag
 
 ### MyTag.cfm (custom tag) ###:
 cfoutput#ReplaceNoCase(ThisTag.GeneratedContent, 'do NOT',
 'do')#/cfoutput
 
 Currently, this displays:
 Hello, World, I do NOT want to display this sentence. Hello, World, I
 do want to display this message. (Obviously, I don't want the first
 sentence displayed.)
 
 Is this best handled by cfsetting cfoutputonly=yes, or is there
 another way that's already built into the custom tag framework?


2 things:

- make sure you use thistag.executionmode
- reset thistag.generatedcontent to 

Code should look like:

### Calling script ###:
cf_MyTag
   Hello, World, I do NOT want to display this sentence.
/cf_MyTag

### MyTag.cfm (custom tag) ###:
cfif ThisTag.ExecutionMode IS End
   cfoutput
 #ReplaceNoCase(ThisTag.GeneratedContent, 'do NOT','do')#
   /cfoutput
   cfset ThisTag.GeneratedContent = 
/cfif

Jochem


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: [Custom Tag Question] ThisTag.GeneratedContent...

2001-07-17 Thread Bryan LaPlante

Try saving the content in a variable first.

cfset content = thistag.generatedContent

then clear the content.
cfset thistag.generatedContent = 

then do your replacement.
cfoutput#ReplaceNoCase(content, 'do NOT',
 'do')#/cfoutput

- Original Message -
From: Jamie Jackson [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, July 17, 2001 10:38 AM
Subject: [Custom Tag Question] ThisTag.GeneratedContent...


| Please tell me if the following is possible, and how: I want to stifle
| the output of the area between cf_MyTag and /cf_MyTag.
|
| Here is a simplified example: I the following output: Hello World, I
| do want to display this sentence.
|
| ### Calling script ###:
| cf_MyTag
| Hello, World, I do NOT want to display this sentence.
| /cf_MyTag
|
| ### MyTag.cfm (custom tag) ###:
| cfoutput#ReplaceNoCase(ThisTag.GeneratedContent, 'do NOT',
| 'do')#/cfoutput
|
| Currently, this displays:
| Hello, World, I do NOT want to display this sentence. Hello, World, I
| do want to display this message. (Obviously, I don't want the first
| sentence displayed.)
|
| Is this best handled by cfsetting cfoutputonly=yes, or is there
| another way that's already built into the custom tag framework?
|
| Thanks,
| Jamie
|
|
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Custom tag question

2000-05-13 Thread Eric Dawson

if I understand correctly. The application might be.

cf_products method=display query=all
  #itemid# #productname#br
  img src=#productimage#
  hr
/cf_products

== products.cfm ==
cfif thistag.executionblah is 'start'
  Our Product Catalog.br
cfelse
  cfquery blahbah/
  cfoutput
 #thistag.generatedcontent#
  /cfoutput
/cfif

Hmmm. I could see a use for this. output specified within the body of a tag. 
Don't think it works though ... (hang on I will try it later), maybe this is 
a wish list item.

Right now you have to  correct me if I am wrong  specify the 
variables as caller.varname to pass back to the calling template from the 
customtag. and the assigned variables would be available throughout the 
entire document (or even possibly overwrite existing variables. yikes.) I 
like this wishlist approach.

Eric Dawson
Alive New Media
Looking for free (Canadian) beer, easy contracts, and sleep!
Work hard, play harder!

"You could try another approach."
My token Dave Watts quote (just trying to fit in. :)

From: "Leong Yew" [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: Custom tag question
Date: Sat, 13 May 2000 14:46:25 +0930

Thanks for your reply, Larry.

ThisTag.GeneratedContent works but not very well in the situation below.
Since it fails to encounter any tags it literally passes everything between
the opening and closing tags without processing the embedded variable. Hence
the pound signs are literally sent to the custom tag template. One way I
found to get around this is to wrap cfoutput/cfoutput tags immediately
around the text string like this:

cf_customTag
cfoutput
Long #var# string with variables embedded...
/cfoutput
/cf_CustomTag

But this defeats the purpose. How can we solve this problem without using
additional nested tags inside the custom tags?

-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 13, 2000 12:56 PM
To: [EMAIL PROTECTED]
Subject: Re: Custom tag question


Are you looking for thistag.generatedcontent?

Larry

 [EMAIL PROTECTED]  5/12  8:07p 
For instance if I use a custom tag like this:
cfset var = "text"
cf_customTag
Long #var# string with variables embedded...
/cf_CustomTag

How do I capture what is nested within the tags into a variable in custom
tag template? Will it be possible to resolve the string so that a variable
can be assigned "Long text string with variables embedded..." within the
template?

Does anyone have any ideas?


Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: Custom tag question

2000-05-12 Thread Leong Yew

Thanks for your reply, Larry.

ThisTag.GeneratedContent works but not very well in the situation below.
Since it fails to encounter any tags it literally passes everything between
the opening and closing tags without processing the embedded variable. Hence
the pound signs are literally sent to the custom tag template. One way I
found to get around this is to wrap cfoutput/cfoutput tags immediately
around the text string like this:

cf_customTag
cfoutput
Long #var# string with variables embedded...
/cfoutput
/cf_CustomTag

But this defeats the purpose. How can we solve this problem without using
additional nested tags inside the custom tags?

-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 13, 2000 12:56 PM
To: [EMAIL PROTECTED]
Subject: Re: Custom tag question


Are you looking for thistag.generatedcontent?

Larry

 [EMAIL PROTECTED]  5/12  8:07p 
For instance if I use a custom tag like this:
cfset var = "text"
cf_customTag
Long #var# string with variables embedded...
/cf_CustomTag

How do I capture what is nested within the tags into a variable in custom
tag template? Will it be possible to resolve the string so that a variable
can be assigned "Long text string with variables embedded..." within the
template?

Does anyone have any ideas?


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Custom tag question

2000-05-12 Thread Larry Meadors

Are you looking for thistag.generatedcontent?

Larry

 [EMAIL PROTECTED]  5/12  8:07p 
For instance if I use a custom tag like this:
cfset var = "text"
cf_customTag
Long #var# string with variables embedded...
/cf_CustomTag

How do I capture what is nested within the tags into a variable in custom
tag template? Will it be possible to resolve the string so that a variable
can be assigned "Long text string with variables embedded..." within the
template?

Does anyone have any ideas?

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebarRstsbodyRsts/cf_talk or send a message 
to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Custom tag question

2000-05-12 Thread Leong Yew

I've been going through my CF 4.5 documentation on writing custom tags. I
know that you can nest additional tags within a custom tag like so:

cf_CustomTag attribute1="this" attribute2="that"
cftag...
another cftag...
/cf_CustomTag

But I just can't find anything on something simpler. For instance If I want
to wrap a fairly complex text string around the custom tag and have that
processed in the custom tag template, how do I refer to it?

For instance if I use a custom tag like this:

cfset var = "text"
cf_customTag
Long #var# string with variables embedded...
/cf_CustomTag

How do I capture what is nested within the tags into a variable in custom
tag template? Will it be possible to resolve the string so that a variable
can be assigned "Long text string with variables embedded..." within the
template?

Does anyone have any ideas?

Leong


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



custom tag question

2000-04-26 Thread Nagesh Kumar Deva

hi all,

 Is it the proper use of custom tag cf_excel ? i want to take the
resultset which is on the browser to excel sheet
 with the same result set appearing in the sheet. but with this tag i
managed to pass the link to webpage to
 excel sheet. but there i could able to see the same code instead of result
set.
 
 in the first file i given link to xls file like this
 a href="filename.xls"Go to Excel/a
 in filename.xls i wrote following customtag code
cfset a=#session.cID# 
cfset b=#dateformat(session.sdate,"mm/dd/yy")#
cfset c=#dateformat(session.edate,"mm/dd/yy")#
cfoutput
cf_excel
Datasource="dsnname"
Tableheadings = "Bank,Branch,Name,Account,Amount"
DataFields="bank,brn,name,Acno,visitamt"
SQLCommand="select cc.bank,cc.name,cc.BRN,cc.ACNo,visit.visitamt  from
cc,visit where  cc.cID=#a# and visit.eom=1 and visit.cid= cc.cid and
visitdate between #b# and #c# order by cc.cID"
/cfoutput 

so, in the excel sheet i'm getting same code in cfoutput tag not the
records.

thankx in advance
nagesh  
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.