Re: Custom Tag, Caller Scope + Application.cfc

2011-07-28 Thread Steve 'Cutter' Blades

In your Application.cfc, place your query in a persistent scope (which 
depends upon context).
Change the custom tag to take the query in as an attribute.
Change the custom tag calls to include the attribute, passing in the 
persistent scope var.

Or, if you really can't change the custom tag (youch)...
in the calling page, create a variable that references the persistent 
var (ie: VARIABLES.adQuery = APPLICATION.adQuery). This isn't good 
practice at all, but it will place a reference to the needed var that 
the custom tag can then access without change.

Steve 'Cutter' Blades
Adobe Community Professional
Adobe Certified Expert
Advanced Macromedia ColdFusion MX 7 Developer

http://blog.cutterscrossing.com


Co-Author Learning Ext JS 3.2 Packt Publishing 2010
https://www.packtpub.com/learning-ext-js-3-2-for-building-dynamic-desktop-style-user-interfaces/book

The best way to predict the future is to help create it


On 7/28/2011 3:43 AM, Adrian Wagner wrote:
 Hello all. Long no post.

 I'm currently working on a module to a an existing, sprawling site that has 
 grown without much planning to a size that was never anticipated.

 One of the things I need to do to build my module is switch the existing 
 application.cfm to an application.cfc so that I can use onRequestStart. No 
 big deal But there is one issue that comes up through that.

 In application.cfm, they have query the DB for some data regarding site-wide 
 advertising. Just standard cfquery stuff.

 Then on the pages, they use a custom tag to actually display the ads.

 Now, as soon as I move the queries into the onApplicationStart method in the 
 application.cfc, the trouble starts. The custom tags throw an error. 
 Variables available to it before through the caller scope is now not 
 available anymore.

 The cheating way out is to just grab the queries, stick them into their own 
 file and use cfinclude on the pages that advertise.

 Is there a way - without changing the custom tag - to include the queries in 
 the application.cfc that will still let the custom tag have access to the 
 variables?

 Thanks in advance.
 Adrian

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346383
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: custom tag and javascript question

2010-12-31 Thread Michael Grant

How your cf is set up does little to effect how the javascript will
communicate with other forms. JS will traverse your page in the usual way.
The fact that one form is in a different file than another form doesn't
matter to JS since by the time it gets to the client browser it's all one
page as it were.

How are you trying to get JS to target the forms now? What code is failing?


On Fri, Dec 31, 2010 at 1:06 PM, Eric Roberts 
ow...@threeravensconsulting.com wrote:


 I have been running into an issue with not being able to read across forms
 on a site I am working on.  The site is set up so that instead of using
 cfinclude, they address pages as custom tags (ie header.cfm is called as
 cf_header url_val=xx.  The basic setup is there is an index.cfm that
 acts like a driver page that calls the tags and the called pages may also
 call tags as well.  We have a dropdown to select with all of the
 properties or an individual property (Hotel properties).  We are adding the
 ability for the hotels, if they take this into account, count the number of
 infants.  This form field (itself a dropdown) is in a different form that
 is
 physically located in a different file (which is the parent page that is
 calling the file that the above dropdown live on).  In the rendered html
 and
 javascript, the property section comes before the form that has the number
 of infants.  What I am trying to accomplish is that when I change the hotel
 property, I want it to check against a session var that determines whether
 or not that property does an infant count and check a hidden form field to
 see if the value of infants is greater than 0.  The problem I am having is
 that the hidden field that I have in the form isn't showing up.  Does this
 have something to do with the fact that pages are being used as custom
 tags?
 I have never seen a site structured like this.it's pretty unique and not a
 bad idea, but I am wondering what effects on how variables are available to
 other tags/pages this structure has.



 Here's the basic structure:



 Index.cfm calls call_index.cfm as cf_call_index.cfm..call_index.cfm calls
 call_index2.cfm as cf_call_index2.  Form 1 with the property dropdown
 physically resides on call_index2.cfm and form 2 that has the infant count
 dropdown physically resides on call_index.cfm.





 Anyone have an experience dealing with this kind of structure?



 Eric



 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340338
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: custom tag and javascript question

2010-12-31 Thread Russ Michaels

CF simply outputs any content in the file, it does not automatically make
any decisions about what to display unless you have defined this with
if/else block or switch/case statements or are dynamically generating the
content.
The other thing that could stop content being displayed is a cfsetting
enablecfoutputonly=yes or a cfsilent

Also as you are using custom tags you can block the content with
thistag.generatedcontent

so i would check your code for all these possibilities


Russ
On Fri, Dec 31, 2010 at 6:49 PM, Michael Grant mgr...@modus.bz wrote:


 How your cf is set up does little to effect how the javascript will
 communicate with other forms. JS will traverse your page in the usual way.
 The fact that one form is in a different file than another form doesn't
 matter to JS since by the time it gets to the client browser it's all one
 page as it were.

 How are you trying to get JS to target the forms now? What code is failing?


 On Fri, Dec 31, 2010 at 1:06 PM, Eric Roberts 
 ow...@threeravensconsulting.com wrote:

 
  I have been running into an issue with not being able to read across
 forms
  on a site I am working on.  The site is set up so that instead of using
  cfinclude, they address pages as custom tags (ie header.cfm is called as
  cf_header url_val=xx.  The basic setup is there is an index.cfm that
  acts like a driver page that calls the tags and the called pages may
 also
  call tags as well.  We have a dropdown to select with all of the
  properties or an individual property (Hotel properties).  We are adding
 the
  ability for the hotels, if they take this into account, count the number
 of
  infants.  This form field (itself a dropdown) is in a different form that
  is
  physically located in a different file (which is the parent page that is
  calling the file that the above dropdown live on).  In the rendered html
  and
  javascript, the property section comes before the form that has the
 number
  of infants.  What I am trying to accomplish is that when I change the
 hotel
  property, I want it to check against a session var that determines
 whether
  or not that property does an infant count and check a hidden form field
 to
  see if the value of infants is greater than 0.  The problem I am having
 is
  that the hidden field that I have in the form isn't showing up.  Does
 this
  have something to do with the fact that pages are being used as custom
  tags?
  I have never seen a site structured like this.it's pretty unique and not
 a
  bad idea, but I am wondering what effects on how variables are available
 to
  other tags/pages this structure has.
 
 
 
  Here's the basic structure:
 
 
 
  Index.cfm calls call_index.cfm as cf_call_index.cfm..call_index.cfm
 calls
  call_index2.cfm as cf_call_index2.  Form 1 with the property dropdown
  physically resides on call_index2.cfm and form 2 that has the infant
 count
  dropdown physically resides on call_index.cfm.
 
 
 
 
 
  Anyone have an experience dealing with this kind of structure?
 
 
 
  Eric
 
 
 
 

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340339
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: custom tag and javascript question

2010-12-31 Thread Eric Roberts

In the same on change event that causes the page to go from all properties
to an individual property I have it assign the value of a hidden form field
to the value of the infants dropdown...yet when the page loads, there are no
form fields...

Eric
-Original Message-
From: Michael Grant [mailto:mgr...@modus.bz] 
Sent: Friday, December 31, 2010 12:49 
To: cf-talk
Subject: Re: custom tag and javascript question


How your cf is set up does little to effect how the javascript will
communicate with other forms. JS will traverse your page in the usual way.
The fact that one form is in a different file than another form doesn't
matter to JS since by the time it gets to the client browser it's all one
page as it were.

How are you trying to get JS to target the forms now? What code is failing?


On Fri, Dec 31, 2010 at 1:06 PM, Eric Roberts 
ow...@threeravensconsulting.com wrote:


 I have been running into an issue with not being able to read across 
 forms on a site I am working on.  The site is set up so that instead 
 of using cfinclude, they address pages as custom tags (ie header.cfm 
 is called as cf_header url_val=xx.  The basic setup is there is an 
 index.cfm that acts like a driver page that calls the tags and the 
 called pages may also call tags as well.  We have a dropdown to 
 select with all of the properties or an individual property (Hotel 
 properties).  We are adding the ability for the hotels, if they take 
 this into account, count the number of infants.  This form field 
 (itself a dropdown) is in a different form that is physically located 
 in a different file (which is the parent page that is calling the file 
 that the above dropdown live on).  In the rendered html and 
 javascript, the property section comes before the form that has the 
 number of infants.  What I am trying to accomplish is that when I 
 change the hotel property, I want it to check against a session var 
 that determines whether or not that property does an infant count and 
 check a hidden form field to see if the value of infants is greater 
 than 0.  The problem I am having is that the hidden field that I have 
 in the form isn't showing up.  Does this have something to do with the 
 fact that pages are being used as custom tags?
 I have never seen a site structured like this.it's pretty unique and 
 not a bad idea, but I am wondering what effects on how variables are 
 available to other tags/pages this structure has.



 Here's the basic structure:



 Index.cfm calls call_index.cfm as cf_call_index.cfm..call_index.cfm 
 calls call_index2.cfm as cf_call_index2.  Form 1 with the property 
 dropdown physically resides on call_index2.cfm and form 2 that has the 
 infant count dropdown physically resides on call_index.cfm.





 Anyone have an experience dealing with this kind of structure?



 Eric



 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340340
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: custom tag and javascript question

2010-12-31 Thread Michael Grant

Maybe I'm not following along here. How can the JS assign a value to a
hidden form field if CF isn't rendering the hidden form field onto the page?
Is this hidden form field wrapped in cfoutput?


On Fri, Dec 31, 2010 at 2:46 PM, Eric Roberts 
ow...@threeravensconsulting.com wrote:


 In the same on change event that causes the page to go from all properties
 to an individual property I have it assign the value of a hidden form field
 to the value of the infants dropdown...yet when the page loads, there are
 no
 form fields...

 Eric
 -Original Message-
 From: Michael Grant [mailto:mgr...@modus.bz]
 Sent: Friday, December 31, 2010 12:49
 To: cf-talk
 Subject: Re: custom tag and javascript question


 How your cf is set up does little to effect how the javascript will
 communicate with other forms. JS will traverse your page in the usual way.
 The fact that one form is in a different file than another form doesn't
 matter to JS since by the time it gets to the client browser it's all one
 page as it were.

 How are you trying to get JS to target the forms now? What code is failing?


 On Fri, Dec 31, 2010 at 1:06 PM, Eric Roberts 
 ow...@threeravensconsulting.com wrote:

 
  I have been running into an issue with not being able to read across
  forms on a site I am working on.  The site is set up so that instead
  of using cfinclude, they address pages as custom tags (ie header.cfm
  is called as cf_header url_val=xx.  The basic setup is there is an
  index.cfm that acts like a driver page that calls the tags and the
  called pages may also call tags as well.  We have a dropdown to
  select with all of the properties or an individual property (Hotel
  properties).  We are adding the ability for the hotels, if they take
  this into account, count the number of infants.  This form field
  (itself a dropdown) is in a different form that is physically located
  in a different file (which is the parent page that is calling the file
  that the above dropdown live on).  In the rendered html and
  javascript, the property section comes before the form that has the
  number of infants.  What I am trying to accomplish is that when I
  change the hotel property, I want it to check against a session var
  that determines whether or not that property does an infant count and
  check a hidden form field to see if the value of infants is greater
  than 0.  The problem I am having is that the hidden field that I have
  in the form isn't showing up.  Does this have something to do with the
  fact that pages are being used as custom tags?
  I have never seen a site structured like this.it's pretty unique and
  not a bad idea, but I am wondering what effects on how variables are
  available to other tags/pages this structure has.
 
 
 
  Here's the basic structure:
 
 
 
  Index.cfm calls call_index.cfm as cf_call_index.cfm..call_index.cfm
  calls call_index2.cfm as cf_call_index2.  Form 1 with the property
  dropdown physically resides on call_index2.cfm and form 2 that has the
  infant count dropdown physically resides on call_index.cfm.
 
 
 
 
 
  Anyone have an experience dealing with this kind of structure?
 
 
 
  Eric
 
 
 
 



 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340341
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: custom tag and javascript question

2010-12-31 Thread Eric Roberts

I think I see where the problem lies...instead of doing a standard
submit...it does a top.location.href to change from all properties to a
single one.  They do a lot of very odd stuff in this application.  I
certainly wouldn't have chosen to do that.

Eric
-Original Message-
From: Michael Grant [mailto:mgr...@modus.bz] 
Sent: Friday, December 31, 2010 14:20 
To: cf-talk
Subject: Re: custom tag and javascript question


Maybe I'm not following along here. How can the JS assign a value to a
hidden form field if CF isn't rendering the hidden form field onto the page?
Is this hidden form field wrapped in cfoutput?


On Fri, Dec 31, 2010 at 2:46 PM, Eric Roberts 
ow...@threeravensconsulting.com wrote:


 In the same on change event that causes the page to go from all 
 properties to an individual property I have it assign the value of a 
 hidden form field to the value of the infants dropdown...yet when the 
 page loads, there are no form fields...

 Eric
 -Original Message-
 From: Michael Grant [mailto:mgr...@modus.bz]
 Sent: Friday, December 31, 2010 12:49
 To: cf-talk
 Subject: Re: custom tag and javascript question


 How your cf is set up does little to effect how the javascript will 
 communicate with other forms. JS will traverse your page in the usual way.
 The fact that one form is in a different file than another form 
 doesn't matter to JS since by the time it gets to the client browser 
 it's all one page as it were.

 How are you trying to get JS to target the forms now? What code is
failing?


 On Fri, Dec 31, 2010 at 1:06 PM, Eric Roberts  
 ow...@threeravensconsulting.com wrote:

 
  I have been running into an issue with not being able to read across 
  forms on a site I am working on.  The site is set up so that instead 
  of using cfinclude, they address pages as custom tags (ie header.cfm 
  is called as cf_header url_val=xx.  The basic setup is there is 
  an index.cfm that acts like a driver page that calls the tags and 
  the called pages may also call tags as well.  We have a dropdown 
  to select with all of the properties or an individual property 
  (Hotel properties).  We are adding the ability for the hotels, if 
  they take this into account, count the number of infants.  This form 
  field (itself a dropdown) is in a different form that is physically 
  located in a different file (which is the parent page that is 
  calling the file that the above dropdown live on).  In the rendered 
  html and javascript, the property section comes before the form that 
  has the number of infants.  What I am trying to accomplish is that 
  when I change the hotel property, I want it to check against a 
  session var that determines whether or not that property does an 
  infant count and check a hidden form field to see if the value of 
  infants is greater than 0.  The problem I am having is that the 
  hidden field that I have in the form isn't showing up.  Does this 
  have something to do with the fact that pages are being used as custom
tags?
  I have never seen a site structured like this.it's pretty unique and 
  not a bad idea, but I am wondering what effects on how variables are 
  available to other tags/pages this structure has.
 
 
 
  Here's the basic structure:
 
 
 
  Index.cfm calls call_index.cfm as 
  cf_call_index.cfm..call_index.cfm
  calls call_index2.cfm as cf_call_index2.  Form 1 with the property 
  dropdown physically resides on call_index2.cfm and form 2 that has 
  the infant count dropdown physically resides on call_index.cfm.
 
 
 
 
 
  Anyone have an experience dealing with this kind of structure?
 
 
 
  Eric
 
 
 
 



 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340342
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Custom Tag (etc.) libraries online?

2010-01-08 Thread John M Bliss

http://riaforge.org
http://cflib.org

On Fri, Jan 8, 2010 at 5:03 PM, Marie Taylore mt4yl...@yahoo.com wrote:


 Hey all, what are some of the best or latest and greatest custom tag /
 function / cfc sites available out there?  All the old links I have (haven't
 search for any in a while) look like they're pretty out of date and Adobe's
 developer exchange is just dismal - has tags there that don't even exist
 when you click on them.

 What I'm looking for is a good free utility that helps in paging query
 results, with a first / previous / next / last or even one with nearby
 numbered pages showing.

 Would love if it was really simple to use, and shouldn't BE (or create) the
 result page (i.e. replacing mine) but rather *integrate* with a page already
 built, simply placing paging links on the page.

 This is for CF 7 Enterprise and is not a CFC app.

 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:329534
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Custom Tag (etc.) libraries online?

2010-01-08 Thread Mike Chabot

Those are the first two sites I would check as well. There are other
sites targeted at selling tags that cost money, if your needs aren't
met by the free and open source offerings.

I highly doubt that you will find what you are looking for on free CF
tag sites. Most companies that offer professional-looking AJAX grids
sell them for hundreds of dollars.

If you upgrade to CF8 or CF9 you get a new grid control that has
paging support. It is likely the easiest one to implement that you
will find.

The other path is to look at AJAX libraries, such as ExtJS or jQuery,
both of which have good grids that support paging.

My advice would be to upgrade to CF9 and see if that grid works for
you. It will be the easiest one to implement for someone who knows
ColdFusion. You know you want to upgrade anyway. If you have already
ruled out that option, the next easiest good one to implement is a
jQuery grid.

Good luck,
Mike Chabot

On Fri, Jan 8, 2010 at 6:08 PM, John M Bliss bliss.j...@gmail.com wrote:

 http://riaforge.org
 http://cflib.org

 On Fri, Jan 8, 2010 at 5:03 PM, Marie Taylore mt4yl...@yahoo.com wrote:


 Hey all, what are some of the best or latest and greatest custom tag /
 function / cfc sites available out there?  All the old links I have (haven't
 search for any in a while) look like they're pretty out of date and Adobe's
 developer exchange is just dismal - has tags there that don't even exist
 when you click on them.

 What I'm looking for is a good free utility that helps in paging query
 results, with a first / previous / next / last or even one with nearby
 numbered pages showing.

 Would love if it was really simple to use, and shouldn't BE (or create) the
 result page (i.e. replacing mine) but rather *integrate* with a page already
 built, simply placing paging links on the page.

 This is for CF 7 Enterprise and is not a CFC app.

 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:329535
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Custom Tag (etc.) libraries online?

2010-01-08 Thread Gerald Guido

I would search for offerings for the Ext JS library  on riaforge.org.

Go to: http://www.riaforge.org/index.cfm?event=page.search

And search for EXT

I have used coldext in the past on CF 7 and was very happy with the results:
http://coldext.riaforge.org/

There are some new offerings that I have not looked at. You may want to look
at those

I would also google jQuery grid and see what pops up.

Or if yo have an extra $3,750 kicking around you can upgrade to CF 8 or 9.
They have a built in grid widget based on EXT

HTH

G!

On Fri, Jan 8, 2010 at 6:03 PM, Marie Taylore mt4yl...@yahoo.com wrote:


 Hey all, what are some of the best or latest and greatest custom tag /
 function / cfc sites available out there?  All the old links I have (haven't
 search for any in a while) look like they're pretty out of date and Adobe's
 developer exchange is just dismal - has tags there that don't even exist
 when you click on them.

 What I'm looking for is a good free utility that helps in paging query
 results, with a first / previous / next / last or even one with nearby
 numbered pages showing.

 Would love if it was really simple to use, and shouldn't BE (or create) the
 result page (i.e. replacing mine) but rather *integrate* with a page already
 built, simply placing paging links on the page.

 This is for CF 7 Enterprise and is not a CFC app.

 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:329536
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: custom tag content displaying twice

2009-11-05 Thread Vinh Khoa Nguyen

I'm not sure why it does that but there is an easy way to avoid it. That is not 
to close the tag properly in XHTML style, just use  instead of /:

This will give you double output:

cf_mytag /

This will give you single output (more expected result)

cf_mytag

I think that is because the first case is equivalent to cf_mytag/cf_mytag 
and this triggers coldfusion to execute the script twice.

Khoa

There is a way to suppress that and I can't recall how (been a long
time).

I see in my head something to do with...

cfif THIS.tagStart

and 

cfif THIS.tagEnd

HTH...at least you know it is possiblenow go forth and Google ;-)

Cheers
-  

Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: br...@electricedgesystems.com
web: www.electricedgesystems.com
 
Notice:
This message, including any attachments, is confidential and may contain
information that is privileged or exempt from disclosure. It is intended
only for the person to whom it is addressed unless expressly authorized
otherwise by the sender. If you are not an authorized recipient, please
notify the sender immediately and permanently destroy all copies of this
message and attachments. 

~|
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:328080
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: custom tag content displaying twice

2009-11-04 Thread Mik Muller

Hmm having never made a custom tag with an open and close pair, I didn't 
realize that the contained content will display twice.

http://www.mail-archive.com/cf-talk@houseoffusion.com/msg29687.html

No way around this?  It seems pretty stupid that CF wouldn't suppress the 
initial output, leaving the responsibility of displaying the content to the tag.

Mik


At 01:25 PM 11/4/2009, Michael Muller wrote:

Hey all

I'm trying to make a custom tag for cfmail so I can create a standard From, 
Subject, and HTML layout inside the email that is sent.

I have created the tag and am using the open / close method, but the content 
of the email winds up being displayed on the page, as well as being emailed. 
I'm using THIS.generatedContent inside the custom tag in the body of the 
cfmail tag, and have even tried wrapping the tag inside a cfsilent.

What am I missing?  How do I stop the body of the custom tag from displaying, 
or is that not possible.

Mik


cf_mailsend to=s...@address.comyadda yadda/cf_mailsend



cfsilent
cfswitch expression=#thisTag.ExecutionMode#

cfcase value=start
cfparam name=attributes.to default=
/cfcase

cfcase value=end
cfmail to=#trim(attributes.to)# subject=subject from=f...@address.com 
type=HTML
div style=padding:20px; margin:20px; border:2px solid blue;
#trim(thistag.generatedcontent)#
/div
/cfmail
/cfcase

/cfswitch
cfsilent



Michael Muller
office (413) 863-6455
cell (413) 320-5336
skype: michaelBmuller
http://MontagueWebWorks.com

Information is not knowledge
Knowlege is not wisdom

Eschew Obfuscation




~|
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:328038
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: custom tag content displaying twice

2009-11-04 Thread Barney Boisvert

just do cfset thisTag.generatedContent =  / in the end tag?

CF has to do one or the other (render the output or suppress the
output), and then provide a means to accomplish the other.  At least
from the perspective of the principle of least surprise, rendering the
output seems like the correct default choice.

cheers,
barneyb

On Wed, Nov 4, 2009 at 12:16 PM, Mik Muller ad...@montaguema.net wrote:

 Hmm having never made a custom tag with an open and close pair, I didn't 
 realize that the contained content will display twice.

 http://www.mail-archive.com/cf-talk@houseoffusion.com/msg29687.html

 No way around this?  It seems pretty stupid that CF wouldn't suppress the 
 initial output, leaving the responsibility of displaying the content to the 
 tag.

 Mik


 At 01:25 PM 11/4/2009, Michael Muller wrote:

Hey all

I'm trying to make a custom tag for cfmail so I can create a standard From, 
Subject, and HTML layout inside the email that is sent.

I have created the tag and am using the open / close method, but the content 
of the email winds up being displayed on the page, as well as being emailed. 
I'm using THIS.generatedContent inside the custom tag in the body of the 
cfmail tag, and have even tried wrapping the tag inside a cfsilent.

What am I missing?  How do I stop the body of the custom tag from displaying, 
or is that not possible.

Mik


cf_mailsend to=s...@address.comyadda yadda/cf_mailsend



cfsilent
cfswitch expression=#thisTag.ExecutionMode#

cfcase value=start
cfparam name=attributes.to default=
/cfcase

cfcase value=end
cfmail to=#trim(attributes.to)# subject=subject from=f...@address.com 
type=HTML
div style=padding:20px; margin:20px; border:2px solid blue;
#trim(thistag.generatedcontent)#
/div
/cfmail
/cfcase

/cfswitch
cfsilent



Michael Muller
office (413) 863-6455
cell (413) 320-5336
skype: michaelBmuller
http://MontagueWebWorks.com

Information is not knowledge
Knowlege is not wisdom

Eschew Obfuscation




 

~|
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:328041
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: custom tag content displaying twice

2009-11-04 Thread Bryan Stevenson

There is a way to suppress that and I can't recall how (been a long
time).

I see in my head something to do with...

cfif THIS.tagStart

and 

cfif THIS.tagEnd

HTH...at least you know it is possiblenow go forth and Google ;-)

Cheers
-  

Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: br...@electricedgesystems.com
web: www.electricedgesystems.com
 
Notice:
This message, including any attachments, is confidential and may contain
information that is privileged or exempt from disclosure. It is intended
only for the person to whom it is addressed unless expressly authorized
otherwise by the sender. If you are not an authorized recipient, please
notify the sender immediately and permanently destroy all copies of this
message and attachments.




~|
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:328042
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: custom tag content displaying twice

2009-11-04 Thread Mik Muller

Barney,

Well, as I said, in this case the prinicple of least surprise would have 
effused a behavior wherein the page calling the custom tag would not have 
rendered the content, leaving that responsibility to the tag itself. In _my_ 
mind, anyway. I mean, if the tag is supposed to receive the content, the 
calling page really has no business rendering the content again.

And not being able to stop it from being rendered again is a serious drawback.  
I mean, think of the lowly EM tag.  It takes the input and renders the content 
in italics (or whatever). The browser doesn't then render the content again 
UNitalicized, correct? It trusts the EM tag to take care of its business. Isn't 
that the way a tag should work?

I'll try your suggestion, below, but I've already gone the less elegant route 
of using cfsavecontent around my content and pushing the resulting variable as 
an attribute into the now-self-closing custom tag.

Mik


At 03:23 PM 11/4/2009, Barney Boisvert wrote:

just do cfset thisTag.generatedContent =  / in the end tag?

CF has to do one or the other (render the output or suppress the
output), and then provide a means to accomplish the other.  At least
from the perspective of the principle of least surprise, rendering the
output seems like the correct default choice.

cheers,
barneyb

On Wed, Nov 4, 2009 at 12:16 PM, Mik Muller ad...@montaguema.net wrote:

 Hmm having never made a custom tag with an open and close pair, I didn't 
 realize that the contained content will display twice.

 http://www.mail-archive.com/cf-talk@houseoffusion.com/msg29687.html

 No way around this?  It seems pretty stupid that CF wouldn't suppress the 
 initial output, leaving the responsibility of displaying the content to the 
 tag.

 Mik


 At 01:25 PM 11/4/2009, Michael Muller wrote:

Hey all

I'm trying to make a custom tag for cfmail so I can create a standard From, 
Subject, and HTML layout inside the email that is sent.

I have created the tag and am using the open / close method, but the content 
of the email winds up being displayed on the page, as well as being emailed. 
I'm using THIS.generatedContent inside the custom tag in the body of the 
cfmail tag, and have even tried wrapping the tag inside a cfsilent.

What am I missing?  How do I stop the body of the custom tag from 
displaying, or is that not possible.

Mik


cf_mailsend to=s...@address.comyadda yadda/cf_mailsend



cfsilent
cfswitch expression=#thisTag.ExecutionMode#

cfcase value=start
cfparam name=attributes.to default=
/cfcase

cfcase value=end
cfmail to=#trim(attributes.to)# subject=subject from=f...@address.com 
type=HTML
div style=padding:20px; margin:20px; border:2px solid blue;
#trim(thistag.generatedcontent)#
/div
/cfmail
/cfcase

/cfswitch
cfsilent



Michael Muller
office (413) 863-6455
cell (413) 320-5336
skype: michaelBmuller
http://MontagueWebWorks.com

Information is not knowledge
Knowlege is not wisdom

Eschew Obfuscation




 



~|
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:328049
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: custom tag content displaying twice

2009-11-04 Thread Barney Boisvert

The custom tag isn't rendering the content again, YOU are rendering
the content again.  If you create an empty custom tag and invoke it,
you'll get a single copy of the output.  If you then add emitting of
the generated content in the custom tag, you'll get two copies.  So
building up from the nothing case, you can see that you should
expect double output if you're doing outputting explicitly.

The EM tag in HTML is rather different, because it's being interpreted
as a formatting directive, not executed as code.  A better example
would be CFQUERY, where the generated content (the SQL statement) is
not emitted to the page output.  If you were to reimplement a
simplistic CFQUERY, it might look like this (using some magic helper
functions for brevity):

cfif thisTag.executionMode EQ start
  cfparam name=attributes.dsn default=#application.dsn# /
cfelse
  cfset sql = thisTag.generatedContent /
  cfset thisTag.generatedContent =  /  !--- we don't want the SQL
emitted ---
  cfset result = runQueryOnDsn(attributes.dsn, sql) /
  cfif structKeyExists(attributes, name)
cfset caller[attributes.name] = result /
  /cfif
/cfif

cheers,
barneyb

On Wed, Nov 4, 2009 at 2:06 PM, Mik Muller ad...@montaguema.net wrote:

 Barney,

 Well, as I said, in this case the prinicple of least surprise would have 
 effused a behavior wherein the page calling the custom tag would not have 
 rendered the content, leaving that responsibility to the tag itself. In _my_ 
 mind, anyway. I mean, if the tag is supposed to receive the content, the 
 calling page really has no business rendering the content again.

 And not being able to stop it from being rendered again is a serious 
 drawback.  I mean, think of the lowly EM tag.  It takes the input and renders 
 the content in italics (or whatever). The browser doesn't then render the 
 content again UNitalicized, correct? It trusts the EM tag to take care of its 
 business. Isn't that the way a tag should work?

 I'll try your suggestion, below, but I've already gone the less elegant route 
 of using cfsavecontent around my content and pushing the resulting variable 
 as an attribute into the now-self-closing custom tag.

 Mik


-- 
Barney Boisvert
bboisv...@gmail.com
http://www.barneyb.co

~|
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:328053
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Custom Tag Paths

2008-09-16 Thread s. isaac dealey
Hey Adam, 

You probably have a good handle on what's going on in your environment...
certainly better than I do, given that I'm only hearing about it second
hand. I just thought I'd throw out that I was a bit confused when I
first discovered that CF will throw a template not found error if you
get some *other* kind of error like a db or syntax error occuring while
executing the Application.cfc onMissingTemplate() method. I'm thinking
it's possible (although I would think unlikely) that something like this
might be happening in your environment with the custom tags. 


-- 
s. isaac dealey  ^  new epoch
 isn't it time for a change? 
 ph: 781.769.0723

http://onTap.riaforge.org/blog



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312592
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Custom tag for generating rss feeds

2007-06-03 Thread Pete Ruckelshaus
Try putting the following immediately preceding where you are outputting the
XML:

cfcontent reset=true

This will reset the output buffer and do away with any whitespace preceding
your XML doc, which is probably what your code is barfing on.

Pete


On 6/1/07, John P [EMAIL PROTECTED] wrote:

 Hi,
 Does anyone know of a custom tag which you can create an RSS feed from a
 cfquery? I've attempted to use Tom Muck's but I get the follow error.


 XML Parsing Error: xml declaration not at start of external entity
 Location: http:///rssTest.cfm
 Line Number 8, Column 1:?xml version=1.0 ?
 ^

 Thank you,

 John

 

~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7  
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279941
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Custom tag for generating rss feeds

2007-06-02 Thread Dave Watts
 Does anyone know of a custom tag which you can create an RSS 
 feed from a cfquery? I've attempted to use Tom Muck's but I 
 get the follow error. 
 
 XML Parsing Error: xml declaration not at start of external entity
 Location: http:///rssTest.cfm
 Line Number 8, Column 1:?xml version=1.0 ? ^

You probably are generating malformed XML. You will likely run into similar
problems with another custom tag.

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!

This email has been processed by SmoothZap - www.smoothwall.net


~|
Create Web Applications With ColdFusion MX7  Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279923
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Custom tag for generating rss feeds

2007-06-01 Thread Jerry Johnson
Ray Camden had a tag, either on his site, or on cflib.org, to do this.

I can't remember any specifics.

On 6/1/07, John P [EMAIL PROTECTED] wrote:
 Hi,
 Does anyone know of a custom tag which you can create an RSS feed from a 
 cfquery? I've attempted to use Tom Muck's but I get the follow error.


 XML Parsing Error: xml declaration not at start of external entity
 Location: http:///rssTest.cfm
 Line Number 8, Column 1:?xml version=1.0 ?
 ^

 Thank you,

 John

 

~|
Macromedia ColdFusion MX7
Upgrade to MX7  experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279836
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Custom tag for generating rss feeds

2007-06-01 Thread Raymond Camden
http://cfrss.riaforge.org/

Enjoy.



On 6/1/07, Jerry Johnson [EMAIL PROTECTED] wrote:
 Ray Camden had a tag, either on his site, or on cflib.org, to do this.

 I can't remember any specifics.

 On 6/1/07, John P [EMAIL PROTECTED] wrote:
  Hi,
  Does anyone know of a custom tag which you can create an RSS feed from a 
  cfquery? I've attempted to use Tom Muck's but I get the follow error.
 
 
  XML Parsing Error: xml declaration not at start of external entity
  Location: http:///rssTest.cfm
  Line Number 8, Column 1:?xml version=1.0 ?
  ^
 
  Thank you,
 
  John
 
 

 

~|
Macromedia ColdFusion MX7
Upgrade to MX7  experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279853
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Custom Tag in CFC not working

2006-11-15 Thread Robertson-Ravo, Neil (RX)
What does it do and where is the tag being called from? What is your CFC
code?








This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant,
Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions. 
Visit our website at http://www.reedexpo.com

-Original Message-
From: Chris Velevitch
To: CF-Talk
Sent: Wed Nov 15 08:36:40 2006
Subject: Custom Tag in CFC not working

I am using a cf custom tag in a cfc and it doesn't appear to be
working. The method the custom tag appears in executes correctly but
the custom tag doesn't seem to execute. The custom tag writes an entry
to a log file.

Has anyone experience this problem?


Chris
-- 

Chris Velevitch
Manager - Sydney Flash Platform Developers Group
m: 0415 469 095
www.flashdev.org.au



~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260460
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Custom Tag in CFC not working

2006-11-15 Thread Chris Velevitch
On 11/15/06, Robertson-Ravo, Neil (RX)
[EMAIL PROTECTED] wrote:
 What does it do

It writes to a log file.

 where is the tag being called from?

Could be more explicit here.

 What is your CFC
 code?

component

cfimport taglib=...

cffunction name=method
 mycustomtag text=...
/cffunction

/component

The tag mycustomtag appends the text to the end of a file.


Chris
-- 
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
m: 0415 469 095
www.flashdev.org.au

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260481
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Custom Tag in CFC not working

2006-11-15 Thread Tom Chiverton
On Wednesday 15 November 2006 13:01, Chris Velevitch wrote:
 cfimport taglib=...

Why do you do this and not just call cf_mycustomtag ?

-- 
Tom Chiverton
Helping to adaptively harvest enterprise-class technologies



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.


~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260482
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Custom Tag in CFC not working

2006-11-15 Thread Sam Farmer
Double check that the prefix you specify in the cfimport tag is
mycustomtag otherwise CF will just ignore that mycustomtag call.

Cheers,

Sam

On 11/15/06, Chris Velevitch [EMAIL PROTECTED] wrote:
 On 11/15/06, Robertson-Ravo, Neil (RX)
 [EMAIL PROTECTED] wrote:
  What does it do

 It writes to a log file.

  where is the tag being called from?

 Could be more explicit here.

  What is your CFC
  code?

 component

 cfimport taglib=...

 cffunction name=method
  mycustomtag text=...
 /cffunction

 /component

 The tag mycustomtag appends the text to the end of a file.


 Chris

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260496
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Custom Tag in CFC not working

2006-11-15 Thread Andy Matthews
That's apparently the new way of loading in a custom tag. I'm not sure why
they started doing it that way.

!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-

-Original Message-
From: Tom Chiverton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 15, 2006 7:25 AM
To: CF-Talk
Subject: Re: Custom Tag in CFC not working


On Wednesday 15 November 2006 13:01, Chris Velevitch wrote:
 cfimport taglib=...

Why do you do this and not just call cf_mycustomtag ?


~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260500
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Custom Tag in CFC not working

2006-11-15 Thread Snake
Because it loads ALL customs tags from specified path and allows you to call
them with this syntax

prefix:tagname

And negates the need to have a custom mapping or custom tag path to use
custom tags.

Russ

-Original Message-
From: Andy Matthews [mailto:[EMAIL PROTECTED] 
Sent: 15 November 2006 14:44
To: CF-Talk
Subject: RE: Custom Tag in CFC not working

That's apparently the new way of loading in a custom tag. I'm not sure why
they started doing it that way.

!//--
andy matthews
web developer
certified advanced coldfusion programmer ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-

-Original Message-
From: Tom Chiverton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 15, 2006 7:25 AM
To: CF-Talk
Subject: Re: Custom Tag in CFC not working


On Wednesday 15 November 2006 13:01, Chris Velevitch wrote:
 cfimport taglib=...

Why do you do this and not just call cf_mycustomtag ?




~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260506
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Custom Tag in CFC not working

2006-11-15 Thread Chris Velevitch
On 11/16/06, Tom Chiverton [EMAIL PROTECTED] wrote:
 On Wednesday 15 November 2006 13:01, Chris Velevitch wrote:
  cfimport taglib=...

 Why do you do this and not just call cf_mycustomtag ?

This application will be deployed to a shared hosting environment so I
can't place the custom tag in the global locations and since I use the
tag in multiple cf pages in different directories, I don't want have
multiple copies of the tag in every directory that contains a cf pages
that use this tag.


Chris
-- 
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
m: 0415 469 095
www.flashdev.org.au

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260595
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Custom Tag

2006-08-25 Thread Snake
Because a local variable only exists inside the tag. If you want the
variable to exist outside of the tag then you should put it in a global
scope such as request, or put it in caller scope.

Snake

-Original Message-
From: Jenny Gavin-Wear [mailto:[EMAIL PROTECTED] 
Sent: 26 August 2006 00:26
To: CF-Talk
Subject: Custom Tag

I'm (finally, it's about time too!) looking at tags.

Both files exist in the same directory.  I've added the directory to the CF
tags dir list in cfadmin so I can use the tag elsewhere.  I've successfuly
called the tag with a Hello world type function.

But, I can't see why this isn't working, nothing is being returned in the
getstocknow query.  Can anyone spot what I'm doing wrong, please?

Tag: 
cfquery name=getstocknow datasource=sc  select * from tbl_stock
/cfquery

Tag use:
cf_stocklist
cfdump var=#getstocknow#

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.6/427 - Release Date: 24/08/2006
 



~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251094
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Custom Tag

2006-08-25 Thread Jenny Gavin-Wear
bingo, thanks Snake

-Original Message-
From: Snake [mailto:[EMAIL PROTECTED]
Sent: 26 August 2006 00:39
To: CF-Talk
Subject: RE: Custom Tag


Because a local variable only exists inside the tag. If you want the
variable to exist outside of the tag then you should put it in a global
scope such as request, or put it in caller scope.

Snake

-Original Message-
From: Jenny Gavin-Wear [mailto:[EMAIL PROTECTED] 
Sent: 26 August 2006 00:26
To: CF-Talk
Subject: Custom Tag

I'm (finally, it's about time too!) looking at tags.

Both files exist in the same directory.  I've added the directory to the CF
tags dir list in cfadmin so I can use the tag elsewhere.  I've successfuly
called the tag with a Hello world type function.

But, I can't see why this isn't working, nothing is being returned in the
getstocknow query.  Can anyone spot what I'm doing wrong, please?

Tag: 
cfquery name=getstocknow datasource=sc  select * from tbl_stock
/cfquery

Tag use:
cf_stocklist
cfdump var=#getstocknow#

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.6/427 - Release Date: 24/08/2006
 





~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251095
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Custom Tag - Capscan Postcode Database

2006-08-25 Thread Jenny Gavin-Wear
cfset pcodetable = left(session.postcode, 1)
cfset pcodeL = listfirst(session.postcode,  )
cfset pcodeR = listlast(session.postcode,  )
cfquery name=caller.pcode datasource=capscan
SELECT top 1000 *
FROM postcode_#pcodetable#
where postcode_#pcodetable#.col001 = '#pcodeL##pcodeR#' or 
postcode_#pcodetable#.col001 = '#pcodeL# #pcodeR#' or 
postcode_#pcodetable#.col001 = '#pcodeL#  #pcodeR#' or 
postcode_#pcodetable#.col001 = '#pcodeL#   #pcodeR#'
/cfquery

I'm feeling pleased with myself, doesn't happen all that often with coding, lol

My aim was to make the postcode database I have on line available to other 
applications by using a CF tag.

I've shorted the original code by some 230 lines to produce this tag which 
gives instant address look up on 27 million postcodes.  (The length of the 
'where' line is because of the variation format of postcode field as supplied 
by Capscan.)

The data is split over 26 tables (alphbetically) to speed up the searches.

Doubtless this code needs more doing, but it's a start!

Jenny


-Original Message-
From: Jenny Gavin-Wear [mailto:[EMAIL PROTECTED]
Sent: 26 August 2006 00:47
To: CF-Talk
Subject: RE: Custom Tag


bingo, thanks Snake

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.6/427 - Release Date: 24/08/2006
 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251097
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Custom Tag brain fart

2006-07-24 Thread Neil Middleton
caller scope?

On 7/24/06, James Smith [EMAIL PROTECTED] wrote:

 Just written a quick custom tag and can't remember how to get info out of
 them (been a while).

 The tag is called with the cf_customtag attrib=someVal method and it
 builds a large structure that I then don't have access to back in the main
 template.

 Could someone remind me?

 --
 Jay

 --
 No virus found in this outgoing message.
 Checked by AVG Free Edition.
 Version: 7.1.394 / Virus Database: 268.10.3/395 - Release Date: 21/07/2006



 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:247478
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Custom Tag brain fart

2006-07-24 Thread Raymond Camden
To write back, you use the Caller scope.

cfset caller.result = x

The preferred method is to make the result key dynamic. That way you
don't accidentally overwrite stuff in the caller. So for example:

cf_mytag x=1 y=2 result=result
cfoutputThe result was #result#/cfoutput

Inside the CFC you can do:

cfparam name=attributes.result default=result type=variableName

(lots of logic here)

cfset caller[attributes.result] = result

Once done you can then do:

cf_mytag result=resultA
cf_mytag result=resultB
etc



On 7/24/06, James Smith [EMAIL PROTECTED] wrote:
 Just written a quick custom tag and can't remember how to get info out of
 them (been a while).

 The tag is called with the cf_customtag attrib=someVal method and it
 builds a large structure that I then don't have access to back in the main
 template.

 Could someone remind me?

 --
 Jay

 --
 No virus found in this outgoing message.
 Checked by AVG Free Edition.
 Version: 7.1.394 / Virus Database: 268.10.3/395 - Release Date: 21/07/2006



 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:247479
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Custom Tag brain fart

2006-07-24 Thread James Smith
Yup, sorted, just added cfset caller.structure = structure to the end of
the tag.

Cheers.

 caller scope?

  Just written a quick custom tag and can't remember how to 
 get info out 
  of them (been a while).
 
  The tag is called with the cf_customtag attrib=someVal 
 method and 
  it builds a large structure that I then don't have access 
 to back in 
  the main template.

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.3/395 - Release Date: 21/07/2006
 


~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:247483
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Custom Tag for DTHML/JS Menu

2006-07-12 Thread Bobby Hartsfield
It's looking like they may have wrote them. I cant find a single thing about
any of them. Sorry.

Ps... http://www.happyhacker.com/ is a dead link

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

 

 


-Original Message-
From: Aaron Rouse [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 11, 2006 4:32 PM
To: CF-Talk
Subject: Custom Tag for DTHML/JS Menu

Shot in the dark but can anyone point me to a tag that is referenced with
CF_PopUpMenu then within that CF_PopUpScheme, then CF_PopUpSubMenu and
finally CF_PopUpItem?  I was given some code to work on but they failed to
give me those custom tags and pretty certain it is just something they
downloaded and did not make in house but they are failing to tell me or give
me the files.

-- 
Aaron Rouse
http://www.happyhacker.com/




~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:246257
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Custom Tag for DTHML/JS Menu

2006-07-12 Thread Aaron Rouse
Yes, it will be dead for a long time too since too many other worries.

I know these developers rather well and just would be VERY, VERY, and VERY
surprised if they managed to write these.  I found one reference to a tag
call online but that was it.  Guess it is plan B, bypass mode. :)


On 7/12/06, Bobby Hartsfield [EMAIL PROTECTED] wrote:

 It's looking like they may have wrote them. I cant find a single thing
 about
 any of them. Sorry.

 Ps... http://www.happyhacker.com/ is a dead link

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






 -Original Message-
 From: Aaron Rouse [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 11, 2006 4:32 PM
 To: CF-Talk
 Subject: Custom Tag for DTHML/JS Menu

 Shot in the dark but can anyone point me to a tag that is referenced with
 CF_PopUpMenu then within that CF_PopUpScheme, then CF_PopUpSubMenu and
 finally CF_PopUpItem?  I was given some code to work on but they failed to
 give me those custom tags and pretty certain it is just something they
 downloaded and did not make in house but they are failing to tell me or
 give
 me the files.

 --
 Aaron Rouse
 http://www.happyhacker.com/




 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:246276
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Custom Tag with auto cfoutput

2005-10-25 Thread John C. Bland II
Hmm...seems like way too much but along those lines I'll try similar.

No ideas on how cfquery does it?

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

 Hellishly slow, but you could take the tag body, write it to file
 (with CFOUTPUT tags), and then CFINCLUDE it inside CFSAVECONTENT.
 You'd have to manually change all the references to 'caller' scope,
 however, which would be messy.

 Not that I'm recommending that route, but it would be a way to get
 what you want.

 cheers,
 barneyb

 On 10/23/05, John C. Bland II [EMAIL PROTECTED] wrote:
  Aight, this is my first shot at creating a custom tag.
 
  Usage:
  cf_query name=test server=server database=db username=un
  password=pw
  SELECT *
  FROM table
  WHERE blah = 'prefix#data#'
  /cf_query
 
  (where #data# is a string. Ex - data = hi so WHERE blah = 'prefixhi)
 
  Aight, without any prefix using '#data#' seems to work fine but as soon
 as a
  prefix is in place it doesn't evalute the #data# variable. It will do
 Where
  blah = 'prefix#data#' instead.
 
  So, I tested:
  cf_query name=test server=server database=db username=un
  password=pw
  cfoutput
  SELECT *
  FROM table
  WHERE blah = 'prefix#data#'
  /cfoutput
  /cf_query
 
  and that worked perfect.
 
  Now, I know cfquery has a built in cfoutput. How can I add a built in
  cfoutput into my custom tag? Hopefully I'm clear as to what I'm saying.
 :-)
 
  --
  John C. Bland II
 
 

 --
 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:222197
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 with auto cfoutput

2005-10-25 Thread Barney Boisvert
CFQUERY is not a custom tag, it's a full blown CF tag, which is
basically a cross between [primitive] CFOUTPUT and CFSAVECONTENT to
get the SQL statement, and then a bunch of database interaction stuff.
 It also deals with CFQUERYPARAM, of course.

If you do go with something similar to what I outlined, you'll want to
set up a RAM disk (check your OS docs) to minimize the filesystem
usage.  And you'll want to do heavy caching of the query results,
because it's still going to be hella slow for CF to have to
write/read/compile/execute every single query statement.

cheers,
barneyb

On 10/25/05, John C. Bland II [EMAIL PROTECTED] wrote:
 Hmm...seems like way too much but along those lines I'll try similar.

 No ideas on how cfquery does it?

--
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:07
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 with auto cfoutput

2005-10-25 Thread John C. Bland II
Yeah, gotcha on cfquery. Just wasn't sure if there was something under the
hood I didn't know about.

Well, the tag won't be used too often (not trying to reinvent the wheel) so
it doesn't need to be an enterprise version but your suggestions are
greatly appreciated. I'll look into these things.

Thx...

On 10/25/05, Barney Boisvert [EMAIL PROTECTED] wrote:

 CFQUERY is not a custom tag, it's a full blown CF tag, which is
 basically a cross between [primitive] CFOUTPUT and CFSAVECONTENT to
 get the SQL statement, and then a bunch of database interaction stuff.
 It also deals with CFQUERYPARAM, of course.

 If you do go with something similar to what I outlined, you'll want to
 set up a RAM disk (check your OS docs) to minimize the filesystem
 usage. And you'll want to do heavy caching of the query results,
 because it's still going to be hella slow for CF to have to
 write/read/compile/execute every single query statement.

 cheers,
 barneyb

 On 10/25/05, John C. Bland II [EMAIL PROTECTED] wrote:
  Hmm...seems like way too much but along those lines I'll try similar.
 
  No ideas on how cfquery does it?
 
 --
 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:08
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 with auto cfoutput

2005-10-24 Thread Matthew Walker
If you sould specify that the content of a custom tag was treated as if
wrapped in cfoutput, that would be a very nice CF feature. Unfortunately
you can't.

 Now, I know cfquery has a built in cfoutput. How can I add a 
 built in cfoutput into my custom tag? Hopefully I'm clear as
 to what I'm saying. :-)

~|
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:222148
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 with auto cfoutput

2005-10-24 Thread Barney Boisvert
Hellishly slow, but you could take the tag body, write it to file
(with CFOUTPUT tags), and then CFINCLUDE it inside CFSAVECONTENT. 
You'd have to manually change all the references to 'caller' scope,
however, which would be messy.

Not that I'm recommending that route, but it would be a way to get
what you want.

cheers,
barneyb

On 10/23/05, John C. Bland II [EMAIL PROTECTED] wrote:
 Aight, this is my first shot at creating a custom tag.

 Usage:
 cf_query name=test server=server database=db username=un
 password=pw
 SELECT *
 FROM table
 WHERE blah = 'prefix#data#'
 /cf_query

 (where #data# is a string. Ex - data = hi so WHERE blah = 'prefixhi)

 Aight, without any prefix using '#data#' seems to work fine but as soon as a
 prefix is in place it doesn't evalute the #data# variable. It will do Where
 blah = 'prefix#data#' instead.

 So, I tested:
 cf_query name=test server=server database=db username=un
 password=pw
 cfoutput
 SELECT *
 FROM table
 WHERE blah = 'prefix#data#'
 /cfoutput
 /cf_query

 and that worked perfect.

 Now, I know cfquery has a built in cfoutput. How can I add a built in
 cfoutput into my custom tag? Hopefully I'm clear as to what I'm saying. :-)

 --
 John C. Bland II



--
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:222149
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 knows coldfusion child tags?

2005-10-23 Thread Dave Watts
 This is a long shot, but is there anyway a custom tag can 
 know about coldfusion built-in child tags?  For example:
 
 cf_mytag
 cfoutput query=qryBlog startRow=10 maxRows=20
 /cfouput
 cf_mytag
 
 Is there anyway my custom tag cf_mytag know that it has has 
 child tag called cfoutput and the child tag has an 
 attribute called startRow with a value of 10?

No, I don't think so. Custom tags can know about child custom tags, because
those tags can explicitly report data back to the custom tag, which can then
receive it with CFASSOCIATE. But everything else just ends up generating
content - your custom tag can read the generated content, of course, but
that occurs after the tags have run. When the code between the opening and
closing custom tags is running, the custom tag itself isn't running.

The only way I can think of by which you might be able to do this, is
through exception handling. Within an exception handler, you can reference
the tag stack and information about each tag within the stack. Within your
closing custom tag, you'd have to throw an exception, catch it, read the tag
stack, and continue processing. I have no idea whether this will actually
work, though.

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:221968
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 knows coldfusion child tags?

2005-10-22 Thread Raymond Camden
As far as I know, the answer is no. A parent custom tag can introspect
child custom tags, bu tnot child built-in tags. Again, afaik.

On 10/22/05, Johnny Le [EMAIL PROTECTED] wrote:
 This is a long shot, but is there anyway a custom tag can know about 
 coldfusion built-in child tags?  For example:

 cf_mytag
 cfoutput query=qryBlog startRow=10 maxRows=20
 /cfouput
 cf_mytag

 Is there anyway my custom tag cf_mytag know that it has has child tag 
 called cfoutput and the child tag has an attribute called startRow with a 
 value of 10?

 Johnny

 

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


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


RE: custom tag help

2004-10-19 Thread Pascal Peters
Phillip,

If you are using CF5, this wont work because variables wasn't a
structure back then. I'm just telling you this, not to correct James,
but because you are using CT and not CFC (so I think you might be on pre
CFMX).

Before CFMX you would have to (reluctantly) use Evaluate():

#Evaluate(attributes.queryname  .  attributes.fieldname)#

Pascal

 -Original Message-
 From: James Holmes [mailto:[EMAIL PROTECTED]
 Sent: 19 October 2004 06:40
 To: CF-Talk
 Subject: RE: custom tag help
 
 The variables scope should work within the custom tag:
 
 cfoutput query=#ATTRIBUTES.QUERYNAME#
 #VARIABLES[ATTRIBUTES.QUERYNAME][attributes.fieldname][currentrow]#
 /cfoutput
 
 Note that I dropped the query name from currentrow as it's now a
dynamic
 name and you can rely on CF to figure out what currentrow means inside
a
 cfoutput tag.
 
 -Original Message-
 From: Phillip Perry [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 19 October 2004 11:26
 To: CF-Talk
 Subject: RE: custom tag help
 
 Thanks James. That does work if you assume that display is the query
name,
 but what if the query name is stored in an attributes.queryname value?
 I've
 played around with what you gave me but I can't seem to get it to
work.
 any
 thoughts?

~|
Sams Teach Yourself Regular Expressions in 10 Minutes  by Ben Forta 
http://www.houseoffusion.com/banners/view.cfm?bannerid=40

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:181812
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 help

2004-10-19 Thread Phillip Perry
No i'm using cfmx. I just got on so I haven't tested anything yet.

Phil

-Original Message-
From: Pascal Peters [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 19, 2004 3:10 AM
To: CF-Talk
Subject: RE: custom tag help


Phillip,

If you are using CF5, this wont work because variables wasn't a
structure back then. I'm just telling you this, not to correct James,
but because you are using CT and not CFC (so I think you might be on pre
CFMX).

Before CFMX you would have to (reluctantly) use Evaluate():

#Evaluate(attributes.queryname  .  attributes.fieldname)#

Pascal

 -Original Message-
 From: James Holmes [mailto:[EMAIL PROTECTED]
 Sent: 19 October 2004 06:40
 To: CF-Talk
 Subject: RE: custom tag help

 The variables scope should work within the custom tag:

 cfoutput query=#ATTRIBUTES.QUERYNAME#
 #VARIABLES[ATTRIBUTES.QUERYNAME][attributes.fieldname][currentrow]#
 /cfoutput

 Note that I dropped the query name from currentrow as it's now a
dynamic
 name and you can rely on CF to figure out what currentrow means inside
a
 cfoutput tag.

 -Original Message-
 From: Phillip Perry [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 19 October 2004 11:26
 To: CF-Talk
 Subject: RE: custom tag help

 Thanks James. That does work if you assume that display is the query
name,
 but what if the query name is stored in an attributes.queryname value?
 I've
 played around with what you gave me but I can't seem to get it to
work.
 any
 thoughts?



~|
Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF 
community.
http://www.houseoffusion.com/banners/view.cfm?bannerid=38

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:181828
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 help

2004-10-18 Thread James Holmes
Assuming the attribute is ATTRIBUTES.FIELDNAME,

cfoutput
query=display#display[attributes.fieldname][display.currentrow]#/cfoutpu
t

will do the job.

-Original Message-
From: Phillip Perry [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 19 October 2004 10:12 
To: CF-Talk
Subject: custom tag help

Hi,

I'm messing with custom tags and am doing pretty basic stuff (i think) to
get used to using them. the tag does the following query

cfquery datasource=dataname name=display SELECT * FROM table_name
/cfquery

I've determined this works, but obviously this isn't very useful as is. I
added an attribute that gets the field name and displays the info from the
field to the screen something like this...

cfoutput query=display#feildname#/cfoutput

but that doesnt work. I put the field name in a variable and instead of
displaying the value of the field its displaying the variable name. How can
I make this display the value of the field instead of the value of the
attribute?

~|
Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF 
community.
http://www.houseoffusion.com/banners/view.cfm?bannerid=36

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:181804
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 help

2004-10-18 Thread Phillip Perry
Thanks James. That does work if you assume that display is the query name,
but what if the query name is stored in an attributes.queryname value? I've
played around with what you gave me but I can't seem to get it to work. any
thoughts?

-Original Message-
From: James Holmes [mailto:[EMAIL PROTECTED]
Sent: Monday, October 18, 2004 10:30 PM
To: CF-Talk
Subject: RE: custom tag help


Assuming the attribute is ATTRIBUTES.FIELDNAME,

cfoutput
query=display#display[attributes.fieldname][display.currentrow]#/cfoutpu
t

will do the job.

-Original Message-
From: Phillip Perry [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 19 October 2004 10:12
To: CF-Talk
Subject: custom tag help

Hi,

I'm messing with custom tags and am doing pretty basic stuff (i think) to
get used to using them. the tag does the following query

cfquery datasource=dataname name=display SELECT * FROM table_name
/cfquery

I've determined this works, but obviously this isn't very useful as is. I
added an attribute that gets the field name and displays the info from the
field to the screen something like this...

cfoutput query=display#feildname#/cfoutput

but that doesnt work. I put the field name in a variable and instead of
displaying the value of the field its displaying the variable name. How can
I make this display the value of the field instead of the value of the
attribute?



~|
Protect your mail server with built in anti-virus protection. It's not only good for 
you, it's good for everybody.
http://www.houseoffusion.com/banners/view.cfm?bannerid=39

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:181805
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 help

2004-10-18 Thread James Holmes
The variables scope should work within the custom tag:

cfoutput query=#ATTRIBUTES.QUERYNAME#
#VARIABLES[ATTRIBUTES.QUERYNAME][attributes.fieldname][currentrow]#
/cfoutput

Note that I dropped the query name from currentrow as it's now a dynamic
name and you can rely on CF to figure out what currentrow means inside a
cfoutput tag.

-Original Message-
From: Phillip Perry [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 19 October 2004 11:26 
To: CF-Talk
Subject: RE: custom tag help

Thanks James. That does work if you assume that display is the query name,
but what if the query name is stored in an attributes.queryname value? I've
played around with what you gave me but I can't seem to get it to work. any
thoughts?

~|
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.houseoffusion.com/banners/view.cfm?bannerid=11

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:181808
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 Occlussion

2004-09-23 Thread Adam Churvis
Look for more than one Custom Tag Path defined in CF Administrator that
contains a custom tag with the same name-- perhaps even two definitions of
the same path.

Unfortunately, ColdFusion doesn't have a true definition of an application
to which it can bind a specific Custom Tag Path, so all are available to all
CF applications.

There are a couple of ways to resolve this, though.

One way is to use CFIMPORT (available in CFMX) to assign a specific a
namespace to each custom tag directory, which will eliminate occlusion, but
because CFIMPORT is a compile-time directive, you can't use a variable in
the path to the directory, so they must all be hard-coded and can be
annoying to change when migrating from server environment to server
environment.This also means that you must copy the CFIMPORT directive to
each and every page that calls a custom tag, which is another hassle.

But our favorite method of resolving this is to use CFMODULE with the
Template syntax (as opposed to the Name syntax).This lets you declare once
in a configuration file a variable containing the path to the directory that
contains your custom tags for a specific application, then use that variable
in all your calls to CFMODULE.

We even created a drag-and-drop utility named cf_2CFMODULE that
automatically converts all cf_ syntax calls to CFMODULE syntax calls, and
even closes empty custom tag calls to eliminate closing tag mismatches in
the converted code (just make sure to code your custom tags properly testing
for ThisTag.ExecutionMode so the code doesn't run twice).

The converted code will use a write-once constant named
Application.customTags that contains the path to the custom tags directory.
Since this is a write-once constant, you don't have to lock it in CFMX.You
can do a search-and-replace for your CF5 application to change this to
Request.customTags to get around having to lock access to this variable in
CF5.

We created cf_2CFMODULE for our upcoming Plum product, but you can use it
for any ColdFusion application.Just make sure to heed the warnings about
backing up your source code first.You can get a free copy of cf_2CFMODULE
here:

http://www.ProductivityEnhancement.com/download/cf_2cfmodule.zip

Hope this helps.

Respectfully,

Adam Phillip Churvis
Member of Team Macromedia

Advanced Intensive Training:
* C#  ASP.NET for ColdFusion Developers
* ColdFusion MX Master Class
* Advanced Development with CFMX and SQL Server 2000
http://www.ColdFusionTraining.com

Download CommerceBlocks V2.1 and LoRCAT from
http://www.ProductivityEnhancement.com

The ColdFusion MX Bible is in bookstores now!
- Original Message - 
From: E C list [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Thursday, September 23, 2004 2:36 PM
Subject: Custom Tag Occlussion

 I am seeing an error appear in the application log on
 one of my CF 5.0 servers several times after a
 restart.The weird thing is that its listing the same
 file name twice.In other words the errors state that
 the first file will occlude the second file, but both
 are the identical file name.

 For example:
 In a CF_TagName construct custom tag file
 'C:\CFUSION\CustomTags\ContentManagement\actUpdateVerity.cfm'
 will occlude custom tag file
 'C:\CFusion\CustomTags\ContentManagement\actUpdateVerity.cfm'.

 Does anyone know what would cause this?

 __
 Do You Yahoo!?
 Tired of spam?Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




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]




Re: (custom) tag to convert text to html

2004-03-03 Thread Stephen Moretti
Frederik,

 
 Is there an easy way to automatically convert text out of a database into
 html?
 We have an application in different languages where some text elements are
 in the database.
 Now we have a problem with French since it uses a lot of '' and '', which
 need to be converted to a character entity for proper display in html.
 Does anybody know of a (custom) tag that can do this automatically?


What database are you using?

This shouldbe handled by the DB quite happily if you have the correct 
character encoding set up on your web pages and, in some cases, in your 
database.

Stephen
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: (custom) tag to convert text to html

2004-03-03 Thread Frederik Van Goolen
Stephen,

Database: MySQL 4.014
In the mean time I noticed that when I cfdump the query that the special
characters are already messed up.
I used phpMyAdmin to enter the French sentences, and when I look and the 
content with phpMyAdmin, it looks ok (special characters are ok).
So it must be something that happens when CF receives the query.
To be honest, I don't know how to set up a character coding set in the database.

Frederik
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Custom Tag for importing into ACT?

2004-02-17 Thread Mark Leder
Take a look at www.egrabber.com

Thanks, Mark 

_

From: Ben Densmore [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 17, 2004 1:56 PM
To: CF-Talk
Subject: Custom Tag for importing into ACT?

Does anyone know if there are any custom tags for importing some info
from a form into ACT? I've looked on the MM exchange and on google but
couldn't seem to find anything.

Thanks,
Ben 
_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Custom tag for data validation - tell me if I'm crazy

2004-02-12 Thread Qasim Rasheed
I would recommend you to take a look at qform API.

 
http://www.pengoworks.com/qforms/docs/

 
Qasim

-Original Message-
From: Austin Govella [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 11, 2004 9:06 PM
To: CF-Talk
Subject: Custom tag for data validation - tell me if I'm crazy

I'm working on a modular way to validate form data and 
display error messages across all of my applications.

Once a form is submitted, I want to:

1. Make sure the form data meets certain requirements 
(required, alphanumeric, whatever...).

2. If there's an error, redisplay the form with the original 
responses filled in.

3. Highlight the field that had the errors.

4. Display the error messages *near* the field that had the 
error.

So, my proposed solution uses a custom tag, cf_validate, 
that requires two attributes, the variable and the variable 
name. A number of optional attributes indicate how the 
variable needs to be tested. For example, to validate the 
form data for form.foobar:

cf_validate
VariableName = foobar
VariableValue = #foobar#
Required = yes
StringType = alphanumeric

If there's an error we set three variables:

1. caller.form_type = error
2. caller.foobar_class = error
3. caller.foobar_message[] = error message

Form_type is a flag that tells us to redisplay the form 
(instead of inserting/updating the record).

My form elements are set as list items, so Foobar_class sets 
the class to li class=error (so I can visually note the 
error).

And the array, foobar_message[], displays any existing error 
messages. I'm planning on looping through the array and 
displaying them in a numbered list so the user knows exactly 
how many ways they suck.

So, on my whiteboard, it looks like it works, but that's a 
lot of code and debugging to go through for it to end up not 
being possible. Am I missing any big obstacles? Is it 
categorically impossible?

Many thanks for the guidance,
--
Austin 
_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Custom tag for data validation - tell me if I'm crazy

2004-02-11 Thread Matthew Walker
Definitely possible. I've built a product very similar
(http://www.electricsheep.co.nz/terraform/). If I were you I'd consider
using XML to store all the form field validation data in one packet at the
top of the form or something like that. Of course that would effectively
restrict you to CFMX only. I'd recommend adding a caption to the fields too
- a human friendly version of the field name. And I'd definitely consider
adding regex validation + the ability to add a catchall custom error message
for each field.

-Original Message-
From: Austin Govella [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 12 February 2004 2:06 p.m.
To: CF-Talk
Subject: Custom tag for data validation - tell me if I'm crazy

I'm working on a modular way to validate form data and 
display error messages across all of my applications.

Once a form is submitted, I want to:

1. Make sure the form data meets certain requirements 
(required, alphanumeric, whatever...).

2. If there's an error, redisplay the form with the original 
responses filled in.

3. Highlight the field that had the errors.

4. Display the error messages *near* the field that had the 
error.

So, my proposed solution uses a custom tag, cf_validate, 
that requires two attributes, the variable and the variable 
name. A number of optional attributes indicate how the 
variable needs to be tested. For example, to validate the 
form data for form.foobar:

cf_validate
VariableName = foobar
VariableValue = #foobar#
Required = yes
StringType = alphanumeric

If there's an error we set three variables:

1. caller.form_type = error
2. caller.foobar_class = error
3. caller.foobar_message[] = error message

Form_type is a flag that tells us to redisplay the form 
(instead of inserting/updating the record).

My form elements are set as list items, so Foobar_class sets 
the class to li class=error (so I can visually note the 
error).

And the array, foobar_message[], displays any existing error 
messages. I'm planning on looping through the array and 
displaying them in a numbered list so the user knows exactly 
how many ways they suck.

So, on my whiteboard, it looks like it works, but that's a 
lot of code and debugging to go through for it to end up not 
being possible. Am I missing any big obstacles? Is it 
categorically impossible?

Many thanks for the guidance,
--
Austin

_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Custom tag for Link point

2003-12-18 Thread Matthew Fusfield
I have one that works with their HTML forms entry method (linkpoint
basic/lite I think) They also have a CFX tag available for free if you
have Linkpoint API.

 
Email me off list if you want the CF tag for linkpoint basic.

 
Matt

_

From: Troy Montour [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 18, 2003 1:13 PM
To: CF-Talk
Subject: Custom tag for Link point

anyone have a custom tag made for link point so I don't have to create
or recrest one.

Thank you
Troy Montour 
_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Custom tag for Link point

2003-12-18 Thread Mickael
I have one, can you tell me what recrest means, I have never heard that term?
- Original Message - 
From: Troy Montour 
To: CF-Talk 
Sent: Thursday, December 18, 2003 1:12 PM
Subject: Custom tag for Link point

anyone have a custom tag made for link point so I don't have to create or recrest one.

Thank you
Troy Montour
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Custom tag for Link point

2003-12-18 Thread Troy Montour
sorry for miss typing.. ment recreate.

-- Original Message --
From: Mickael [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Date:Thu, 18 Dec 2003 14:05:29 -0500

I have one, can you tell me what recrest means, I have never heard that term?
- Original Message - 
From: Troy Montour 
To: CF-Talk 
Sent: Thursday, December 18, 2003 1:12 PM
Subject: Custom tag for Link point


anyone have a custom tag made for link point so I don't have to create or recrest one.

Thank you
Troy Montour


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Custom tag for Link point

2003-12-18 Thread Mickael
:)I thought it was a programming term that I have never heard of
- Original Message - 
From: Troy Montour 
To: CF-Talk 
Sent: Thursday, December 18, 2003 3:17 PM
Subject: Re: Custom tag for Link point

sorry for miss typing.. ment recreate.

-- Original Message --
From: Mickael [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Date:Thu, 18 Dec 2003 14:05:29 -0500

I have one, can you tell me what recrest means, I have never heard that term?
- Original Message - 
From: Troy Montour 
To: CF-Talk 
Sent: Thursday, December 18, 2003 1:12 PM
Subject: Custom tag for Link point


anyone have a custom tag made for link point so I don't have to create or recrest one.

Thank you
Troy Montour


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Custom tag for Link point

2003-12-18 Thread Rick Root
Troy Montour wrote:

  anyone have a custom tag made for link point so I don't have to create
  or recrest one.

Did you try a google search?

I'm guessing not... a search simply for linkpoint cfx returned the top 
result you need

http://www.linkpoint.com/product_solutions/internet/lcfx/lcfx_main.html

C'mon people, google is your FRIEND. :)

- Rick
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Custom tag for Link point

2003-12-18 Thread Dwayne Cole
Linkpoint has a tag and I think it's free. checkout the linkpoint central site.

Dwayne Cole, MS in MIS, MBA
Certified Advanced ColdFusion Developer
850-591-0212

 
It can truly be said that nothing happens until there is vision. But it is equally true that a vision with no underlying sense of purpose, no calling, is just a good idea - all sound and fury, signifying nothing.The Fifth Discipline - Peter Senge

-- Original Message --
From: Rick Root [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Date:Thu, 18 Dec 2003 20:16:35 -0500

Troy Montour wrote:

  anyone have a custom tag made for link point so I don't have to create
  or recrest one.

Did you try a google search?

I'm guessing not... a search simply for linkpoint cfx returned the top 
result you need

http://www.linkpoint.com/product_solutions/internet/lcfx/lcfx_main.html

C'mon people, google is your FRIEND. :)

- Rick



 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Custom Tag / Include Location question

2003-10-29 Thread Raymond Camden
 How would I go about putting each set of files into their own 
 directory without breaking the application? I assume for Tags 

That's the rub - I can describe how I'd set it up, but you will need to
do some reworking to get stuff done.

 I can setup a Custom Tag Path in CFAdmin, but for the 
 includes and the tools ... if the tools call the includes 
 and I simply add the path using a global find and replace 
 will I have any issues because of them being in different 
 physical locations? Should I use a CF Mapping to each of the 
 tools and includes directories?

I'd use a mapping, and I'd also use it for your custom tags and just
switch to using cfmodule.


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Custom tag that will ring a phone

2003-10-04 Thread John McCosker
Had a look George, there is a few things there, but not to our specific
needs

-Original Message-
From: Earl, George [mailto:[EMAIL PROTECTED]
Sent: 03 October 2003 18:27
To: CF-Talk
Subject: Re: Custom tag that will ring a phone

John said:
 is anyone aware of a CFX tag free or for purchase that will ring a mobile
phone.

I can't help you directly, but I have a pretty strong memory of seeing
Jeremy Allaire demonstrate this functionality (although maybe to a land
phone instead of mobile), probably at the ColdFusion Developer Conference in
2000. And maybe it was even part of the demo of the upcoming 'Neo' that
became CFMX . . .

Have you checked the Developer's Exchange? (Sorry, had to ask . . .)

George
[EMAIL PROTECTED]

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Custom tag that will ring a phone

2003-10-04 Thread Peter Tilbrook
Perhaps an SMS solution could be used?
-Original Message-
From: John McCosker [mailto:[EMAIL PROTECTED]
Sent: Saturday, 4 October 2003 7:52 PM
To: CF-Talk
Subject: RE: Custom tag that will ring a phone

Had a look George, there is a few things there, but not to our specific
needs

-Original Message-
From: Earl, George [mailto:[EMAIL PROTECTED]
Sent: 03 October 2003 18:27
To: CF-Talk
Subject: Re: Custom tag that will ring a phone

John said:
 is anyone aware of a CFX tag free or for purchase that will ring a
mobile
phone.

I can't help you directly, but I have a pretty strong memory of seeing
Jeremy Allaire demonstrate this functionality (although maybe to a land
phone instead of mobile), probably at the ColdFusion Developer Conference
in
2000. And maybe it was even part of the demo of the upcoming 'Neo' that
became CFMX . . .

Have you checked the Developer's Exchange? (Sorry, had to ask . . .)

George
[EMAIL PROTECTED]

 _


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Custom tag that will ring a phone

2003-10-03 Thread Earl, George
John said:
 is anyone aware of a CFX tag free or for purchase that will ring a mobile
phone.

I can't help you directly, but I have a pretty strong memory of seeing
Jeremy Allaire demonstrate this functionality (although maybe to a land
phone instead of mobile), probably at the ColdFusion Developer Conference in
2000. And maybe it was even part of the demo of the upcoming 'Neo' that
became CFMX . . .

Have you checked the Developer's Exchange? (Sorry, had to ask . . .)

George
[EMAIL PROTECTED]



 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Custom tag location in cfmx 6.1 jrun version

2003-08-28 Thread Kris Pilles
Yo Lo Tengo!

-Original Message-
From: Kris Pilles 
Sent: Thursday, August 28, 2003 2:05 PM
To: CF-Talk
Subject: Custom tag location in cfmx 6.1 jrun version


Where is the custom tag directory for coldfusion???

KP

Kris Pilles
Website Manager
Western Suffolk BOCES
507 Deer Park Rd., Building C
Phone: 631-549-4900 x 267
E-mail: [EMAIL PROTECTED]



~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

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


RE: Custom tag location in cfmx 6.1 jrun version

2003-08-28 Thread Dave Carabetta

Where is the custom tag directory for coldfusion???


It's in the WEB-INF/cfusion/CustomTags directory. So, for example, I have my 
MX installed into a cfusion subdirectory of my server instance, so my CT 
directory path is:

[jrun_install_path]/servers/[servername]/cfusion/WEB-INF/cfusion/CustomTags

HTH,
Dave.

_
Get MSN 8 and enjoy automatic e-mail virus protection.  
http://join.msn.com/?page=features/virus

~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

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


RE: Custom tag moved to MX custom tag path

2003-06-06 Thread Dave Sueltenfuss
Stan,

Do you have a web file in that subdirectory with the same name? Or is it
possible you didn't remove the original? If the original was still in the
subdirectory, that would be the first place CFMX would pull it from

Dave


-Original Message-
From: Stan Winchester [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 06, 2003 2:08 PM
To: CF-Talk
Subject: Custom tag moved to MX custom tag path


Using CFMX, I had a custom tag in a sub-directory of an application, and
then moved it to a user defined custom tag path. The MX server has been
restarted since moving the custom tag and yet it still thinks the custom tag
is in the original directory, even though there is nothing there. Is there a
way to force MX to see the new location of the custom tag?

Stan Winchester
[EMAIL PROTECTED]
http://www.aftershockweb.com/
Tel. 503-244-3440
Fax 503-244-3454


~|
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 moved to MX custom tag path

2003-06-06 Thread Bryan Stevenson
h...shot in the dark, but mabye clearing the compiled files out may
clear that up.

delete everything in CFusionMX\wwwroot\WEB_INF\cfclasses\

that will force MX to recompile the CF files on first run

HTH

Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
t. 250.920.8830
e. [EMAIL PROTECTED]

-
Macromedia Associate Partner
www.macromedia.com
-
Vancouver Island ColdFusion Users Group
Founder  Director
www.cfug-vancouverisland.com
- Original Message -
From: Stan Winchester [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, June 06, 2003 11:08 AM
Subject: Custom tag moved to MX custom tag path


 Using CFMX, I had a custom tag in a sub-directory of an application, and
 then moved it to a user defined custom tag path. The MX server has been
 restarted since moving the custom tag and yet it still thinks the custom
tag
 is in the original directory, even though there is nothing there. Is there
a
 way to force MX to see the new location of the custom tag?

 Stan Winchester
 [EMAIL PROTECTED]
 http://www.aftershockweb.com/
 Tel. 503-244-3440
 Fax 503-244-3454

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



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: 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 recommendation?

2003-02-14 Thread Ryan Mitchell
Hey

Just had the chance to look at this.
Im runnign cfmx pro... Do I just dump the jar files into a classpath? I can
write a class ok, thatll be no probs, I just need to figure out how to get
these jars running properly on the server :)

Ryan

On 12/2/03 10:43, Thomas Chiverton [EMAIL PROTECTED] wrote:

 On Wednesday 12 Feb 2003 10:24 am, Robertson-Ravo,Neil (RX)
 [EMAIL PROTECTED] wrote:
 You may need a CFX tag for this.
 
 Nah,  just call the JAI classes:
 http://www.macromedia.com/desdev/mx/coldfusion/articles/jai_images.html

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

2003-02-14 Thread ksuh
Hmm, you might be able to just put the jar file(s) into the wwwroot/web-inf/lib 
directory.  Then restart the CFMX service...

- Original Message -
From: Ryan Mitchell [EMAIL PROTECTED]
Date: Friday, February 14, 2003 3:38 pm
Subject: Re: Custom tag recommendation?

 Hey
 
 Just had the chance to look at this.
 Im runnign cfmx pro... Do I just dump the jar files into a 
 classpath? I can
 write a class ok, thatll be no probs, I just need to figure out 
 how to get
 these jars running properly on the server :)
 
 Ryan
 
 On 12/2/03 10:43, Thomas Chiverton [EMAIL PROTECTED] wrote:
 
  On Wednesday 12 Feb 2003 10:24 am, Robertson-Ravo,Neil (RX)
  [EMAIL PROTECTED] wrote:
  You may need a CFX tag for this.
  
  Nah,  just call the JAI classes:
  
 http://www.macromedia.com/desdev/mx/coldfusion/articles/jai_images.html
 
~|
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 recommendation?

2003-02-12 Thread Neil.Robertson-Ravo
You may need a CFX tag for this. 

-Original Message-
From: Ryan Mitchell [mailto:[EMAIL PROTECTED]]
Sent: 12 February 2003 10:27
To: CF-Talk
Subject: Custom tag recommendation?


Hey

Can anyone recommend a good custom tag, needs to work with CFMX, that will
resize a jpg and also has options to crop it and pad it ??


TIA,
Ryan Mitchell



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

2003-02-12 Thread Thomas Chiverton
On Wednesday 12 Feb 2003 10:24 am, Robertson-Ravo,Neil (RX) 
[EMAIL PROTECTED] wrote:
 You may need a CFX tag for this.

Nah,  just call the JAI classes:
http://www.macromedia.com/desdev/mx/coldfusion/articles/jai_images.html
-- 
Tom C

At work, the authority of a person is inversely proportional to the
number of pens that person is carrying.

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

2003-02-12 Thread Ryan Mitchell
That url brings up an error for me


On 12/2/03 10:43, Thomas Chiverton [EMAIL PROTECTED] wrote:

 On Wednesday 12 Feb 2003 10:24 am, Robertson-Ravo,Neil (RX)
 [EMAIL PROTECTED] wrote:
 You may need a CFX tag for this.
 
 Nah,  just call the JAI classes:
 http://www.macromedia.com/desdev/mx/coldfusion/articles/jai_images.html


Ryan Mitchell

e: [EMAIL PROTECTED]
w: www.rtnetworks.net
t: 07866569916


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

2003-02-12 Thread Neil.Robertson-Ravo
Jeezonice one; damn being stuck on 5 (and some cases 4.5!)

-Original Message-
From: Thomas Chiverton [mailto:[EMAIL PROTECTED]]
Sent: 12 February 2003 10:44
To: CF-Talk
Subject: Re: Custom tag recommendation?


On Wednesday 12 Feb 2003 10:24 am, Robertson-Ravo,Neil (RX) 
[EMAIL PROTECTED] wrote:
 You may need a CFX tag for this.

Nah,  just call the JAI classes:
http://www.macromedia.com/desdev/mx/coldfusion/articles/jai_images.html
-- 
Tom C

At work, the authority of a person is inversely proportional to the
number of pens that person is carrying.


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




  1   2   3   4   >