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


I want to write



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=subscribe&forumid=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.








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
> 
> 
> I want to write
> 
> 
> 
> 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=subscribe&forumid=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:






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
> 

> I want to write
> 
> 

> 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=subscribe&forumid=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=subscribe&forumid=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:






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


I want to write



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=subscribe&forumid=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