Re: CFDIVs within custom tag problem

2010-03-03 Thread Tony Bentley

Are you using the following condition?:

cfif thisTag.executionMode is 'start'

!---Insert code here---

/cfif

cfif thisTag.executionMode is 'end'/cfif

If you do not include the thisTag.executionMode condition, it is going to fire 
twice. 

How about showing some cleaned up code? 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331311
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CFDIVs within custom tag problem

2010-03-02 Thread Terry Ford

Hi devs!

I have run into a strange problem that probably has a simple fix but I can't 
work it out.

I have tag cf_commentform  that displays a feedback cfform within a cfdiv.  The 
user enters comments, and the form submits inline.  Works great.

Some pages call cf_commentform more than once.   For example, a blog site where 
there are three entries on a page may have 3 of these called.  Each one has 
unique IDs.

However, when I view the source, I am getting the javascript includes loading 
multiple times on the page:

script type=text/javascript src=/CFIDE/scripts/ajax/package/cfajax.js 
/script
script type=text/javascript src=/CFIDE/scripts/cfform.js  /script
script type=text/javascript src=/CFIDE/scripts/masks.js /script
script type=text/javascript src=/CFIDE/scripts/cfformhistory.js /script
script type=text/javascript _cf_loadingtexthtml= div align='center' img 
src='/CFIDE/scripts/ajax/resources/cf/images/loading.gif'/;

The above appears THREE times, and the browser loads it 3 times.  This is 
clearly unnecessary.   

When I simply use the commentform code in a cfinclude this does not happen -- 
it's only when I use the cfdiv/cfform within a custom tag.

Does anyone have any ideas on how I can keep using a custom tag like this 
without all of these multiple javascript loads appearing on the calling page?

Thanks


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331281
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Strangest custom tag problem EVER!

2005-09-14 Thread Barney Boisvert
Whether you remove the self-close or not, you should still make your
tag behave properly.  No guarentee you (or anyone else who uses it)
won't make the same mistake down the road because it's ingrained in
your muscle memory.

cheers,
barneyb

On 9/13/05, Bobby Hartsfield [EMAIL PROTECTED] wrote:
 Hahaha!!! I nearly close everything that way with all the XML I've been
 dealing with. Didn't even realize it!
 
 Thanks for setting me straight. It's been a lng day.
 
 ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.
 Bobby Hartsfield
 http://acoderslife.com
 
 

-- 
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:218160
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: Strangest custom tag problem EVER!

2005-09-14 Thread Bobby Hartsfield
Oh absolutely. I just removed it for a quick fix last night. It will most
definitely be fixed.

..:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com


-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 14, 2005 2:29 AM
To: CF-Talk
Subject: Re: Strangest custom tag problem EVER!

Whether you remove the self-close or not, you should still make your
tag behave properly.  No guarentee you (or anyone else who uses it)
won't make the same mistake down the road because it's ingrained in
your muscle memory.

cheers,
barneyb

On 9/13/05, Bobby Hartsfield [EMAIL PROTECTED] wrote:
 Hahaha!!! I nearly close everything that way with all the XML I've been
 dealing with. Didn't even realize it!
 
 Thanks for setting me straight. It's been a lng day.
 
 ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.
 Bobby Hartsfield
 http://acoderslife.com
 
 

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

Got Gmail? I have 100 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:218181
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


Strangest custom tag problem EVER!

2005-09-13 Thread Bobby Hartsfield
Ok, banged my head against the desk all day on this and never really found a
reason but I did finally make it work. Just wondering if anyone knew what
the deal is with it or if anyone else has seen it.

I have a custom tag that has an attribute called action. Depending on the
value of attributes.action, the tag will perform one of three operations.

Setup, Rename, or Main (default)

I finally stripped the tag all the way down to nothing but this if, elseif,
else statement trying to find out what was going on.

cfif attributes.action is setup
cfoutputSETUPbr/cfoutput
cfelseif attributes.action is rename
cfoutputRENAMEbr/cfoutput
cfelse
cfoutputMAINbr/cfoutput
/cfif

If attribute.action was setup it processed twice! (meaning it printed
out..

SETUP
SETUP

If action was anything else, it worked fine. What gives? Has anyone else
seen this happen?

I changed setup to initialize and it works fine.

So does anyone know of any issues with the action=setup combination or do
I need to fumigate my server for gremlins? 


...:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.24/100 - Release Date: 9/13/2005
 



~|
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:218147
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: Strangest custom tag problem EVER!

2005-09-13 Thread Barney Boisvert
You've got an XML self-close where you're calling the tag, and you're
not trapping it in your tag.  Try adding this to the top of the tag
file:

cfif thistag.executionMode NEQ start
  cfexit method=exittag /
/cfif

cheers,
barneyb

On 9/13/05, Bobby Hartsfield [EMAIL PROTECTED] wrote:
 Ok, banged my head against the desk all day on this and never really found a
 reason but I did finally make it work. Just wondering if anyone knew what
 the deal is with it or if anyone else has seen it.
 
 I have a custom tag that has an attribute called action. Depending on the
 value of attributes.action, the tag will perform one of three operations.
 
 Setup, Rename, or Main (default)
 
 I finally stripped the tag all the way down to nothing but this if, elseif,
 else statement trying to find out what was going on.
 
 cfif attributes.action is setup
 cfoutputSETUPbr/cfoutput
 cfelseif attributes.action is rename
 cfoutputRENAMEbr/cfoutput
 cfelse
 cfoutputMAINbr/cfoutput
 /cfif
 
 If attribute.action was setup it processed twice! (meaning it printed
 out..
 
 SETUP
 SETUP
 
 If action was anything else, it worked fine. What gives? Has anyone else
 seen this happen?
 
 I changed setup to initialize and it works fine.
 
 So does anyone know of any issues with the action=setup combination or do
 I need to fumigate my server for gremlins?
 
 
 ...:.:.:.:.:.:.:.:.:.:.:.:.:.:.
 Bobby Hartsfield
 http://acoderslife.com
 

-- 
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:218148
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: Strangest custom tag problem EVER!

2005-09-13 Thread Bobby Hartsfield
Hahaha!!! I nearly close everything that way with all the XML I've been
dealing with. Didn't even realize it!

Thanks for setting me straight. It's been a lng day.
 
..:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com


-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 13, 2005 9:41 PM
To: CF-Talk
Subject: Re: Strangest custom tag problem EVER!

You've got an XML self-close where you're calling the tag, and you're
not trapping it in your tag.  Try adding this to the top of the tag
file:

cfif thistag.executionMode NEQ start
  cfexit method=exittag /
/cfif

cheers,
barneyb

On 9/13/05, Bobby Hartsfield [EMAIL PROTECTED] wrote:
 Ok, banged my head against the desk all day on this and never really found
a
 reason but I did finally make it work. Just wondering if anyone knew what
 the deal is with it or if anyone else has seen it.
 
 I have a custom tag that has an attribute called action. Depending on
the
 value of attributes.action, the tag will perform one of three operations.
 
 Setup, Rename, or Main (default)
 
 I finally stripped the tag all the way down to nothing but this if,
elseif,
 else statement trying to find out what was going on.
 
 cfif attributes.action is setup
 cfoutputSETUPbr/cfoutput
 cfelseif attributes.action is rename
 cfoutputRENAMEbr/cfoutput
 cfelse
 cfoutputMAINbr/cfoutput
 /cfif
 
 If attribute.action was setup it processed twice! (meaning it printed
 out..
 
 SETUP
 SETUP
 
 If action was anything else, it worked fine. What gives? Has anyone else
 seen this happen?
 
 I changed setup to initialize and it works fine.
 
 So does anyone know of any issues with the action=setup combination or
do
 I need to fumigate my server for gremlins?
 
 
 ...:.:.:.:.:.:.:.:.:.:.:.:.:.:.
 Bobby Hartsfield
 http://acoderslife.com
 

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

Got Gmail? I have 100 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:218151
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: Strangest custom tag problem EVER!

2005-09-13 Thread Russ
This explains why it printed twice... but why only setup?  Why not the other
values?  

-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 13, 2005 9:58 PM
To: CF-Talk
Subject: RE: Strangest custom tag problem EVER!

Hahaha!!! I nearly close everything that way with all the XML I've been
dealing with. Didn't even realize it!

Thanks for setting me straight. It's been a lng day.
 
...:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com


-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 13, 2005 9:41 PM
To: CF-Talk
Subject: Re: Strangest custom tag problem EVER!

You've got an XML self-close where you're calling the tag, and you're
not trapping it in your tag.  Try adding this to the top of the tag
file:

cfif thistag.executionMode NEQ start
  cfexit method=exittag /
/cfif

cheers,
barneyb

On 9/13/05, Bobby Hartsfield [EMAIL PROTECTED] wrote:
 Ok, banged my head against the desk all day on this and never really found
a
 reason but I did finally make it work. Just wondering if anyone knew what
 the deal is with it or if anyone else has seen it.
 
 I have a custom tag that has an attribute called action. Depending on
the
 value of attributes.action, the tag will perform one of three operations.
 
 Setup, Rename, or Main (default)
 
 I finally stripped the tag all the way down to nothing but this if,
elseif,
 else statement trying to find out what was going on.
 
 cfif attributes.action is setup
 cfoutputSETUPbr/cfoutput
 cfelseif attributes.action is rename
 cfoutputRENAMEbr/cfoutput
 cfelse
 cfoutputMAINbr/cfoutput
 /cfif
 
 If attribute.action was setup it processed twice! (meaning it printed
 out..
 
 SETUP
 SETUP
 
 If action was anything else, it worked fine. What gives? Has anyone else
 seen this happen?
 
 I changed setup to initialize and it works fine.
 
 So does anyone know of any issues with the action=setup combination or
do
 I need to fumigate my server for gremlins?
 
 
 ...:.:.:.:.:.:.:.:.:.:.:.:.:.:.
 Bobby Hartsfield
 http://acoderslife.com
 

-- 
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:218153
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: Strangest custom tag problem EVER!

2005-09-13 Thread Bobby Hartsfield
Apparently coincidence. I must have taken the slash off the end of the tag
when I tried the new values or something. The word setup works fine too
now. :/

 
..:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com

-Original Message-
From: Russ [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 13, 2005 10:31 PM
To: CF-Talk
Subject: RE: Strangest custom tag problem EVER!

This explains why it printed twice... but why only setup?  Why not the other
values?  

-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 13, 2005 9:58 PM
To: CF-Talk
Subject: RE: Strangest custom tag problem EVER!

Hahaha!!! I nearly close everything that way with all the XML I've been
dealing with. Didn't even realize it!

Thanks for setting me straight. It's been a lng day.
 
:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com


-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 13, 2005 9:41 PM
To: CF-Talk
Subject: Re: Strangest custom tag problem EVER!

You've got an XML self-close where you're calling the tag, and you're
not trapping it in your tag.  Try adding this to the top of the tag
file:

cfif thistag.executionMode NEQ start
  cfexit method=exittag /
/cfif

cheers,
barneyb

On 9/13/05, Bobby Hartsfield [EMAIL PROTECTED] wrote:
 Ok, banged my head against the desk all day on this and never really found
a
 reason but I did finally make it work. Just wondering if anyone knew what
 the deal is with it or if anyone else has seen it.
 
 I have a custom tag that has an attribute called action. Depending on
the
 value of attributes.action, the tag will perform one of three operations.
 
 Setup, Rename, or Main (default)
 
 I finally stripped the tag all the way down to nothing but this if,
elseif,
 else statement trying to find out what was going on.
 
 cfif attributes.action is setup
 cfoutputSETUPbr/cfoutput
 cfelseif attributes.action is rename
 cfoutputRENAMEbr/cfoutput
 cfelse
 cfoutputMAINbr/cfoutput
 /cfif
 
 If attribute.action was setup it processed twice! (meaning it printed
 out..
 
 SETUP
 SETUP
 
 If action was anything else, it worked fine. What gives? Has anyone else
 seen this happen?
 
 I changed setup to initialize and it works fine.
 
 So does anyone know of any issues with the action=setup combination or
do
 I need to fumigate my server for gremlins?
 
 
 ...:.:.:.:.:.:.:.:.:.:.:.:.:.:.
 Bobby Hartsfield
 http://acoderslife.com
 

-- 
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:218156
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 problem

2003-03-26 Thread Abdüsselam_Karataþ
Hi everyone,

I have a custom tag where I want to insert attributes and their values to
this custom tag using  another string type variable and then execute the
custom tag.

But I could not.

Here is the code:

Instead of writing
my_custom_tag  attribute1=1 attribute2=2

I want to write
cfset  string = attribute1=1 attribute2=2
my_custom_tag  #string#

The error says:
Invalid CFML construct found on line 1 at column 19. ColdFusion was looking
at the following text:
attribute1


Thanks in advance.

~|
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 problem

2003-03-26 Thread Randell B Adkins
Can not do it that way, the custom tag is looking for the pairs of:
variable name and value

you could submit one variable as:  varString=#string#

but then you have to parse the attributes.string in the custom tag
to get each variable and value as needed.



 [EMAIL PROTECTED] 03/26/03 11:36AM 
Hi everyone,

I have a custom tag where I want to insert attributes and their values
to
this custom tag using  another string type variable and then execute
the
custom tag.

But I could not.

Here is the code:

Instead of writing
my_custom_tag  attribute1=1 attribute2=2

I want to write
cfset  string = attribute1=1 attribute2=2
my_custom_tag  #string#

The error says:
Invalid CFML construct found on line 1 at column 19. ColdFusion was
looking
at the following text:
attribute1


Thanks in advance.


~|
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 problem

2003-03-26 Thread Raymond Camden
So you want to dynamically add attributes to a custom tag? Just use
attributeCollection.

cfset att = structNew()
cfif foo
cfset att.foo = 1
/cfif

cf_goo name=blah attributeCollection=#att#

This will pass foo=1 if and only if foo is true.

===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
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: Abdüsselam_Karataþ [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, March 26, 2003 10:36 AM
 To: CF-Talk
 Subject: custom tag problem
 
 
 Hi everyone,
 
 I have a custom tag where I want to insert attributes and 
 their values to this custom tag using  another string type 
 variable and then execute the custom tag.
 
 But I could not.
 
 Here is the code:
 
 Instead of writing
 my_custom_tag  attribute1=1 attribute2=2
 
 I want to write
 cfset  string = attribute1=1 attribute2=2
 my_custom_tag  #string#
 
 The error says:
 Invalid CFML construct found on line 1 at column 19. 
 ColdFusion was looking at the following text: attribute1
 
 
 Thanks in advance.
 
 
~|
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 problem

2003-03-26 Thread S . Isaac Dealey
You can't do what you're wanting to do -- CF doesn't have dynamic evaluation
of code like some other languages do like Javascript eval(blah blah  +
myvar);

Instead, what you can do is this:

cfset my = structnew()
cfset my.attribute1 = 1
cfset my.attribute2 = 2
cf_my_customtag attributecollection=#my#

Remember to include quotes around all your attributes. :)


 Hi everyone,

 I have a custom tag where I want to insert attributes and
 their values to
 this custom tag using  another string type variable and
 then execute the
 custom tag.

 But I could not.

 Here is the code:

 Instead of writing
 my_custom_tag  attribute1=1 attribute2=2

 I want to write
 cfset  string = attribute1=1 attribute2=2
 my_custom_tag  #string#

 The error says:
 Invalid CFML construct found on line 1 at column 19.
 ColdFusion was looking
 at the following text:
 attribute1


 Thanks in advance.

 ~~
 ~~~|
 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/uns
   ubscribe.cfm?user=633.558.4



s. isaac dealey954-776-0046

new epoch  http://www.turnkey.to

lead architect, tapestry cms   http://products.turnkey.to

tapestry api is opensource http://www.turnkey.to/tapi

certified advanced coldfusion 5 developer
http://www.macromedia.com/v1/handlers/index.cfm?ID=21816

~|
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 problem

2003-03-26 Thread Nick Han
Use   ATTRIBUTECOLLECTION.

Example:

cf_customTag ATTRIBUTECOLLECTION=#attributes#




Nick Han

 [EMAIL PROTECTED] 03/26/03 08:36AM 
Hi everyone,

I have a custom tag where I want to insert attributes and their values to
this custom tag using  another string type variable and then execute the
custom tag.

But I could not.

Here is the code:

Instead of writing
my_custom_tag  attribute1=1 attribute2=2

I want to write
cfset  string = attribute1=1 attribute2=2
my_custom_tag  #string#

The error says:
Invalid CFML construct found on line 1 at column 19. ColdFusion was looking
at the following text:
attribute1


Thanks in advance.


~|
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: UDFs in a Custom Tag problem

2002-05-23 Thread Raymond Camden

FYI, I'm pretty darn sure this is not an issue with MX.

===
Raymond Camden, ColdFusion Jedi Master for Macromedia

Email: [EMAIL PROTECTED]
Yahoo IM : morpheus

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

 -Original Message-
 From: James Sleeman [mailto:[EMAIL PROTECTED]] 
 Sent: Sunday, May 19, 2002 8:28 PM
 To: CF-Talk
 Subject: Re: UDFs in a Custom Tag problem
 
 
 You have to do it as an include, the function declaration 
 actually happens
 on parsing of the template you see, so when your custom tag 
 gets hit on the
 end tag that parser reads the custom tag template again, and sees a
 declaration for isOperator - no matter that it won't be used this time
 around.  A CFINCLUDE'd file won't be parsed (read) until 
 the CFINCLUDE is
 executed, so it is an effective work around.
 
 CFIF NOT isDefined(isOperator)
 CFINCLUDE TEMPLATE=thisOperator.cfm
 /CFIF
 
 

__
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: UDFs in a Custom Tag problem

2002-05-20 Thread heirophant mm

Thanks for the insight. I never would have thought of considering the difference 
between parsing and executing in this case. It works correctly now.

Thanks everyone for their ideas.

Mike Mertsock



Date: Mon, 20 May 2002 12:28:08 +1200
From: James Sleeman [EMAIL PROTECTED]
Subject: Re: UDFs in a Custom Tag problem
Message-ID: 0d8001c1ff95$376b8d90$680a0a0a@impc04

You have to do it as an include, the function declaration actually happens
on parsing of the template you see, so when your custom tag gets hit on the
end tag that parser reads the custom tag template again, and sees a
declaration for isOperator - no matter that it won't be used this time
around.  A CFINCLUDE'd file won't be parsed (read) until the CFINCLUDE is
executed, so it is an effective work around.

CFIF NOT isDefined(isOperator)
CFINCLUDE TEMPLATE=thisOperator.cfm
/CFIF


and thisOperator.cfm contains

cfscript
 function IsOperator( value ) {
 blah blah blah;
 return something;
 }
/cfscript




- Original Message -
From: heirophant mm [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Saturday, May 18, 2002 2:27 AM
Subject: UDFs in a Custom Tag problem


 Hello developers,

 I'm writing a custom tag, and I've written some UDFs to clean up some of
the code within the custom tag. Only the custom tag uses these UDFs -
they're pretty specialized - so I thought it would be easiest to just put
them right inside the template for the custom tag. Here's my general
structure:

 cfif thistag.executionmode EQ start
 cfscript
 function IsOperator( value ) {
 blah blah blah;
 return something;
 }
 /cfscript
 more code
 /cfif
 cfif thistag.executionmode EQ end
 some output, etc.
 /cfif

 I get this error:
 Routines cannot be declared more than once. The routine IsOperator has
been declared twice in different templates.

 I have found that this error occurs at the very beginning of the end
ExecutionMode of the tag.

 I can't figure out how to stop this error. Any ideas? Thanks

 Mike Mertsock
 Alfred University Webteam



Outgrown your current e-mail service?
Get a 25MB Inbox, POP3 Access, No Ads and No Taglines with LYCOS MAIL PLUS.
http://login.mail.lycos.com/brandPage.shtml?pageId=plus
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: UDFs in a Custom Tag problem

2002-05-19 Thread James Sleeman

You have to do it as an include, the function declaration actually happens
on parsing of the template you see, so when your custom tag gets hit on the
end tag that parser reads the custom tag template again, and sees a
declaration for isOperator - no matter that it won't be used this time
around.  A CFINCLUDE'd file won't be parsed (read) until the CFINCLUDE is
executed, so it is an effective work around.

CFIF NOT isDefined(isOperator)
CFINCLUDE TEMPLATE=thisOperator.cfm
/CFIF


and thisOperator.cfm contains

cfscript
 function IsOperator( value ) {
 blah blah blah;
 return something;
 }
/cfscript




- Original Message -
From: heirophant mm [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Saturday, May 18, 2002 2:27 AM
Subject: UDFs in a Custom Tag problem


 Hello developers,

 I'm writing a custom tag, and I've written some UDFs to clean up some of
the code within the custom tag. Only the custom tag uses these UDFs -
they're pretty specialized - so I thought it would be easiest to just put
them right inside the template for the custom tag. Here's my general
structure:

 cfif thistag.executionmode EQ start
 cfscript
 function IsOperator( value ) {
 blah blah blah;
 return something;
 }
 /cfscript
 more code
 /cfif
 cfif thistag.executionmode EQ end
 some output, etc.
 /cfif

 I get this error:
 Routines cannot be declared more than once. The routine IsOperator has
been declared twice in different templates.

 I have found that this error occurs at the very beginning of the end
ExecutionMode of the tag.

 I can't figure out how to stop this error. Any ideas? Thanks

 Mike Mertsock
 Alfred University Webteam



 
 Outgrown your current e-mail service?
 Get a 25MB Inbox, POP3 Access, No Ads and No Taglines with LYCOS MAIL
PLUS.
 http://login.mail.lycos.com/brandPage.shtml?pageId=plus
 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


__
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



UDFs in a Custom Tag problem

2002-05-17 Thread heirophant mm

Hello developers,

I'm writing a custom tag, and I've written some UDFs to clean up some of the code 
within the custom tag. Only the custom tag uses these UDFs - they're pretty 
specialized - so I thought it would be easiest to just put them right inside the 
template for the custom tag. Here's my general structure:

cfif thistag.executionmode EQ start
cfscript
function IsOperator( value ) {
blah blah blah;
return something;
}
/cfscript
more code
/cfif
cfif thistag.executionmode EQ end
some output, etc.
/cfif

I get this error:
Routines cannot be declared more than once. The routine IsOperator has been declared 
twice in different templates.

I have found that this error occurs at the very beginning of the end ExecutionMode 
of the tag.

I can't figure out how to stop this error. Any ideas? Thanks

Mike Mertsock
Alfred University Webteam




Outgrown your current e-mail service?
Get a 25MB Inbox, POP3 Access, No Ads and No Taglines with LYCOS MAIL PLUS.
http://login.mail.lycos.com/brandPage.shtml?pageId=plus
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: UDFs in a Custom Tag problem

2002-05-17 Thread Andre Turrettini

Dooh, I've heard of this but when I tested it on my machine, it worked fine
but I'm running the trial mx.  I think the problem was that it gets defined
twice on the start and end call.  I think the solution was to set them as an
include but cant test it out since it works anyway on my machine.  Keep us
posted. DRE
-Original Message-
From: heirophant mm [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 8:28 AM
To: CF-Talk
Subject: UDFs in a Custom Tag problem


Hello developers,

I'm writing a custom tag, and I've written some UDFs to clean up some of the
code within the custom tag. Only the custom tag uses these UDFs - they're
pretty specialized - so I thought it would be easiest to just put them right
inside the template for the custom tag. Here's my general structure:

cfif thistag.executionmode EQ start
cfscript
function IsOperator( value ) {
blah blah blah;
return something;
}
/cfscript
more code
/cfif
cfif thistag.executionmode EQ end
some output, etc.
/cfif

I get this error:
Routines cannot be declared more than once. The routine IsOperator has been
declared twice in different templates.

I have found that this error occurs at the very beginning of the end
ExecutionMode of the tag.

I can't figure out how to stop this error. Any ideas? Thanks

Mike Mertsock
Alfred University Webteam




Outgrown your current e-mail service?
Get a 25MB Inbox, POP3 Access, No Ads and No Taglines with LYCOS MAIL PLUS.
http://login.mail.lycos.com/brandPage.shtml?pageId=plus
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
__
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: UDFs in a Custom Tag problem

2002-05-17 Thread Rob Baxter

What about this

cfif Not IsDefined(IsOperator)
   cfscript
function IsOperator( value ) {
blah blah blah;
return something;
}
/cfscript
/cfif


/rob

-Original Message-
From: heirophant mm [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 10:28 AM
To: CF-Talk
Subject: UDFs in a Custom Tag problem


Hello developers,

I'm writing a custom tag, and I've written some UDFs to clean up some of the
code within the custom tag. Only the custom tag uses these UDFs - they're
pretty specialized - so I thought it would be easiest to just put them right
inside the template for the custom tag. Here's my general structure:

cfif thistag.executionmode EQ start
cfscript
function IsOperator( value ) {
blah blah blah;
return something;
}
/cfscript
more code
/cfif
cfif thistag.executionmode EQ end
some output, etc.
/cfif

I get this error:
Routines cannot be declared more than once. The routine IsOperator has been
declared twice in different templates.

I have found that this error occurs at the very beginning of the end
ExecutionMode of the tag.

I can't figure out how to stop this error. Any ideas? Thanks

Mike Mertsock
Alfred University Webteam




Outgrown your current e-mail service?
Get a 25MB Inbox, POP3 Access, No Ads and No Taglines with LYCOS MAIL PLUS.
http://login.mail.lycos.com/brandPage.shtml?pageId=plus
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

__
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



udf in custom tag, problem with end tag

2001-11-30 Thread C Runyan

I found that a udf created on a page is not available inside custom tags.  I 
just put a copy of the code into the custom tag.  That works.  Now I want to 
call the same tag more than once and that works as long as it is only 
defined the first time the tag is called.  The problem comes if I use an end 
tag.  It simply doesn't work.  If anyone else has tried this and gotten it 
to work let me know.

-(customtag.cfm)
cfoutputbr#ThisTag.ExecutionMode#br/cfoutput
cfif NOT ISDefined(caller.alreadycreated)
cfoutput*inside if statement*br/cfoutput
cfscript
  function iudf() {return function output;}
  caller.alreadycreated = Yes;
/cfscript
/cfif
-(callcustomtag.cfm)
cf_customtag
cf_customtag
cf_customtag/cf_customtag
-

The error only occurs on the end tag for some reason.  If the function 
definition is commented out it works fine.  I've reduced the code down as 
simple as I can to try to figure this out.

Chris Runyan




~~
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: udf in custom tag, problem with end tag

2001-11-30 Thread Raymond Camden

This is a known issue. You cannot define UDFs in CTs that are used in
Begin/End fashion as you have shown below. You can get around this by
moving the UDF to an include and doing a CFINCLUDE from the CT.

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

Email: [EMAIL PROTECTED]
Yahoo IM : morpheus

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

 -Original Message-
 From: C Runyan [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, November 30, 2001 3:26 PM
 To: CF-Talk
 Subject: udf in custom tag, problem with end tag
 
 
 I found that a udf created on a page is not available inside 
 custom tags.  I 
 just put a copy of the code into the custom tag.  That works. 
  Now I want to 
 call the same tag more than once and that works as long as it is only 
 defined the first time the tag is called.  The problem comes 
 if I use an end 
 tag.  It simply doesn't work.  If anyone else has tried this 
 and gotten it 
 to work let me know.
 
 -(customtag.cfm)
 cfoutputbr#ThisTag.ExecutionMode#br/cfoutput
 cfif NOT ISDefined(caller.alreadycreated)
   cfoutput*inside if statement*br/cfoutput
   cfscript
 function iudf() {return function output;}
 caller.alreadycreated = Yes;
   /cfscript
 /cfif
 -(callcustomtag.cfm)
 cf_customtag
 cf_customtag
 cf_customtag/cf_customtag
 -
 
 The error only occurs on the end tag for some reason.  If the 
 function 
 definition is commented out it works fine.  I've reduced the 
 code down as 
 simple as I can to try to figure this out.
 
 Chris Runyan
 
 
 
 
 
~~
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: udf in custom tag, problem with end tag

2001-11-30 Thread Jamie Jackson

shot_in_the_dark certainty=null
Two things to play with:
*Try using the request scope instead of the caller scope. Line 2 of
your custom tag looks suspect to me.
*Try clearing out thistag.generatedcontent, as it's screwed me up
before.
/shot_in_the_dark

I doubt if this will help, but if you're grasping...

Jamie

On Fri, 30 Nov 2001 20:25:36 +, in cf-talk you wrote:

I found that a udf created on a page is not available inside custom 
tags.  I 
just put a copy of the code into the custom tag.  That works.  Now I 
want to 
call the same tag more than once and that works as long as it is only 
defined the first time the tag is called.  The problem comes if I use an
 end 
tag.  It simply doesn't work.  If anyone else has tried this and gotten 
it 
to work let me know.

-(customtag.cfm)
cfoutputbr#ThisTag.ExecutionMode#br/cfoutput
cfif NOT ISDefined(caller.alreadycreated)
   cfoutput*inside if statement*br/cfoutput
   cfscript
 function iudf() {return function output;}
 caller.alreadycreated = Yes;
   /cfscript
/cfif
-(callcustomtag.cfm)
cf_customtag
cf_customtag
cf_customtag/cf_customtag
-

The error only occurs on the end tag for some reason.  If the function 
definition is commented out it works fine.  I've reduced the code down 
as 
simple as I can to try to figure this out.

Chris Runyan





~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.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: udf in custom tag, problem with end tag

2001-11-30 Thread C Runyan

Thanks for the tip, nice to know it's the compiler and not me.  I was about 
to try that but wanted to make sure I wasn't missing something about how 
udf's are supposed to work.

Chris

From: Raymond Camden [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Subject: RE: udf in custom tag, problem with end tag
Date: Fri, 30 Nov 2001 15:35:25 -0500

This is a known issue. You cannot define UDFs in CTs that are used in
Begin/End fashion as you have shown below. You can get around this by
moving the UDF to an include and doing a CFINCLUDE from the CT.

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

Email: [EMAIL PROTECTED]
Yahoo IM : morpheus

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

  -Original Message-
  From: C Runyan [mailto:[EMAIL PROTECTED]]
  Sent: Friday, November 30, 2001 3:26 PM
  To: CF-Talk
  Subject: udf in custom tag, problem with end tag
 
 
  I found that a udf created on a page is not available inside
  custom tags.  I
  just put a copy of the code into the custom tag.  That works.
   Now I want to
  call the same tag more than once and that works as long as it is only
  defined the first time the tag is called.  The problem comes
  if I use an end
  tag.  It simply doesn't work.  If anyone else has tried this
  and gotten it
  to work let me know.
 
  -(customtag.cfm)
  cfoutputbr#ThisTag.ExecutionMode#br/cfoutput
  cfif NOT ISDefined(caller.alreadycreated)
  cfoutput*inside if statement*br/cfoutput
  cfscript
function iudf() {return function output;}
caller.alreadycreated = Yes;
  /cfscript
  /cfif
  -(callcustomtag.cfm)
  cf_customtag
  cf_customtag
  cf_customtag/cf_customtag
  -
 
  The error only occurs on the end tag for some reason.  If the
  function
  definition is commented out it works fine.  I've reduced the
  code down as
  simple as I can to try to figure this out.
 
  Chris Runyan
 
 
 
 
 

~~
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



custom tag problem

2000-05-14 Thread Deva Ramesh

i am developing one custom tag. here i am passing the values from  calling
page to custom tag 
but after that  i want to pass those values from that  custom tag to another
calling page 
is there any way to pass like that.( i used session variables also ).
and one more doubt can i invoke from one custom tag to another custom tag.

Ramesh


--
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.