udf in custom tag, problem with end tag
I found that a udf created on a page is not available inside custom tags. I just put a copy of the code into the custom tag. That works. Now I want to call the same tag more than once and that works as long as it is only defined the first time the tag is called. The problem comes if I use an end tag. It simply doesn't work. If anyone else has tried this and gotten it to work let me know. -(customtag.cfm) #ThisTag.ExecutionMode# *inside if statement* function iudf() {return "function output";} caller.alreadycreated = "Yes"; -(callcustomtag.cfm) - The error only occurs on the end tag for some reason. If the function definition is commented out it works fine. I've reduced the code down as simple as I can to try to figure this out. Chris Runyan ~~ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: udf in custom tag, problem with end tag
Thanks for the tip, nice to know it's the compiler and not me. I was about to try that but wanted to make sure I wasn't missing something about how udf's are supposed to work. Chris >From: "Raymond Camden" <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: CF-Talk <[EMAIL PROTECTED]> >Subject: RE: udf in custom tag, problem with end tag >Date: Fri, 30 Nov 2001 15:35:25 -0500 > >This is a known issue. You cannot define UDFs in CTs that are used in >Begin/End fashion as you have shown below. You can get around this by >moving the UDF to an include and doing a CFINCLUDE from the CT. > >=== >Raymond Camden, Principal Spectra Compliance Engineer for Macromedia > >Email: [EMAIL PROTECTED] >Yahoo IM : morpheus > >"My ally is the Force, and a powerful ally it is." - Yoda > > > -Original Message- > > From: C Runyan [mailto:[EMAIL PROTECTED]] > > Sent: Friday, November 30, 2001 3:26 PM > > To: CF-Talk > > Subject: udf in custom tag, problem with end tag > > > > > > I found that a udf created on a page is not available inside > > custom tags. I > > just put a copy of the code into the custom tag. That works. > > Now I want to > > call the same tag more than once and that works as long as it is only > > defined the first time the tag is called. The problem comes > > if I use an end > > tag. It simply doesn't work. If anyone else has tried this > > and gotten it > > to work let me know. > > > > -(customtag.cfm) > > #ThisTag.ExecutionMode# > > > > *inside if statement* > > > > function iudf() {return "function output";} > > caller.alreadycreated = "Yes"; > > > > > > -(callcustomtag.cfm) > > > > > > > > - > > > > The error only occurs on the end tag for some reason. If the > > function > > definition is commented out it works fine. I've reduced the > > code down as > > simple as I can to try to figure this out. > > > > Chris Runyan > > > > > > > > > > > ~~ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
AbleCommerce
I'm working at a company that is planning to buy AbleCommerce to do e-commerce. Just wondering if anyone has opinions positive or negative about using it. If anyone has done source code modifications it would be helpful to know how easy that is. We're expecting to do some of that as well to get what we want out of it. Chris ~~ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: AbleCommerce
Mostly I think we will be adding things to it (such as checking a user owns a product before giving them an upgrade item). As far as changing their existing code we may want to change the format of their forms just for appearance. Hopefully that part won't be too hard. Not afraid of doing a bit of work, but is their code difficult to figure out? Hoping it's well written and commented so we can figure out where we need to make changes. Chris >From: Chuck Rodgers <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: CF-Talk <[EMAIL PROTECTED]> >Subject: Re: AbleCommerce >Date: Mon, 03 Dec 2001 17:21:15 -0500 > >Hi, > >If you want to do what it does straight out of the box, it will work >great. Depending on your modifications, expect some serious work to modify >the code. > >Chuck Rodgers > >At 10:17 PM 12/3/01 +, you wrote: > >I'm working at a company that is planning to buy AbleCommerce to do > >e-commerce. Just wondering if anyone has opinions positive or negative > >about using it. If anyone has done source code modifications it would be > >helpful to know how easy that is. We're expecting to do some of that as > >well to get what we want out of it. > > > >Chris > > > > > > > > > ~~ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
CF Webstore
Thanks to all for the comments about AbleCommerce. Based on what we're hearing and looking at the CFDJ readers survey CF Webstore looks like a reasonable alternative. If anyone has used CF Webstore and modified the code let me know what you think. Another consideration is whether it can handle a large amount of traffic. Hopefully a good package would use CFTRANSACTION processing for reliability. Chris ~~ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CF Webstore
I guess you're right that there are other ways to accomplish the same goal. A different method for scalability might be better for us especially if it works well with MySQL which apparently does not support CFTRANSACTION. We've been using MySQL and find it easy to work with, but weren't sure if it is the best solution for our e-commerce. I think CFWebstore can use any database. Chris >From: "Jon Hall" <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: CF-Talk <[EMAIL PROTECTED]> >Subject: Re: CF Webstore >Date: Tue, 4 Dec 2001 13:41:52 -0500 > >A good piece of software would not rely on cftransaction at all It's a >handy shortcut that's all. > >jon >- Original Message - >From: "C Runyan" <[EMAIL PROTECTED]> >To: "CF-Talk" <[EMAIL PROTECTED]> >Sent: Tuesday, December 04, 2001 12:49 PM >Subject: CF Webstore > > > > Thanks to all for the comments about AbleCommerce. Based on what we're > > hearing and looking at the CFDJ readers survey CF Webstore looks like a > > reasonable alternative. If anyone has used CF Webstore and modified the > > code let me know what you think. Another consideration is whether it >can > > handle a large amount of traffic. Hopefully a good package would use > > CFTRANSACTION processing for reliability. > > > > Chris > > > > > > > > > ~~ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CF and Cybercash
LinkPoint is another solution which has a Cold Fusion tag available. I believe they charge $99 for it or at least they did a year ago. I haven't been using the tag but I have a merchant account on LinkPoint so I might want to. On-line info about how to use it looks pretty good: http://www.linkpoint.com/support/support.asp Chris >From: "Tangorre, Michael T." <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: CF-Talk <[EMAIL PROTECTED]> >Subject: RE: CF and Cybercash >Date: Tue, 4 Dec 2001 19:45:17 -0500 > >Are there any other solutions out there that have custom tags written for >them? > > >-Original Message- >From: Matt Robertson [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, December 04, 2001 7:29 PM >To: CF-Talk >Subject: Re: CF and Cybercash > > >The last I heard Cybercash was dead as a doornail. Verisign is only >supporting existing Cybercash customers that it acquired as part of its >mercy killing/buyout, and is only signing up new people to one of their >Payflow solutions. > > > > ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists