Re: extend application.cfc based upon condition

2010-09-01 Thread Sean Corfield
FWIW, you wouldn't get this error on Railo (due to a philosophical difference on how function declarations actually work). On Tue, Aug 31, 2010 at 2:04 PM, Matthew Smith chedders...@gmail.com wrote: Ok, here is what I tried: I removed the cfcomponent tags in the org.corfield.framework file,

Build embedded PDF buttons using coldfusion

2010-09-01 Thread Richard Cooper
Hi, Is it possible to create interactive buttons within a PDF form using coldfusion 8? Specifically, I would like to add email, print, and save a copy buttons to a pdf form I'm building using coldfusion. Alternatively, is it possible to add fields to an existing pdf form using coldfusion?

RE: ODBC (microsoft access) DSN's not working

2010-09-01 Thread Mark A. Kruger
Russ, I would unpack the Admin scripts that create DSN's (from inside the CF Admin) and figure out what they are doing differently. There must be an attribute you can use to set the port - or a path to a config file or something. -Mark -Original Message- From: Russ Michaels

New Coldfusion User Group in the DC Area

2010-09-01 Thread Sandra Clark
The Capital Area ColdFusion User Group is now beginning to meet. Our first meeting will be Tuesday, September 14th at 6pm. It will be a social gathering, held at Timpanos Italian Grill, 12021 Rockville Pike Rockville MD 20852. View Map of

Re: Build embedded PDF buttons using coldfusion

2010-09-01 Thread Russ Michaels
I don't know if you can add thos einto the PDF itself, but when it is viewed in a browser these options are there by default. Russ On Wed, Sep 1, 2010 at 1:36 PM, Richard Cooper rcoo...@thesearchagent.co.uk wrote: Hi, Is it possible to create interactive buttons within a PDF form using

Re: ODBC (microsoft access) DSN's not working

2010-09-01 Thread Russ Michaels
all the cfadmin files are encrypted, so it is not possible to view them, and the decrypt tools no longer seem to work on current versions of cf files. Russ On Wed, Sep 1, 2010 at 2:18 PM, Mark A. Kruger mkru...@cfwebtools.comwrote: Russ, I would unpack the Admin scripts that create DSN's

Re: (ot) Perl Groups

2010-09-01 Thread Rick Root
I doubt it. Perl pre-dates email ;) On Tue, Aug 31, 2010 at 5:53 PM, Duane Boudreau du...@sandybay.com wrote: Hi All, Since many of you out there are multi-talented developers, I was hoping I could ask if anyone is on a similar list for Perl or wouldn't mind answering a Perl question

RE: ODBC (microsoft access) DSN's not working

2010-09-01 Thread Mark A. Kruger
Russ, H I wonder how much those methods have changed since version 6. I would suspect not much. You might figure out what you need from a previous version. -Mark Mark A. Kruger, MCSE, CFG (402) 408-3733 ext 105 Skype: markakruger www.cfwebtools.com www.coldfusionmuse.com

Re: (ot) Perl Groups

2010-09-01 Thread Jose Diaz
Hi Duane, These chaps might be able to help - might be worth pinging them a message. http://www.perl.org/ HTH, Jose Diaz On Wed, Sep 1, 2010 at 2:51 PM, Rick Root rick.r...@gmail.com wrote: I doubt it. Perl pre-dates email ;) On Tue, Aug 31, 2010 at 5:53 PM, Duane Boudreau

Re: (ot) Perl Groups

2010-09-01 Thread Jose Diaz
Duane, I came across this link on the community page http://www.pm.org/ Lists Perl Monger groups worldwide. Could be a good place to start. HTH, Jose Diaz On Wed, Sep 1, 2010 at 3:04 PM, Jose Diaz bleached...@gmail.com wrote: Hi Duane, These chaps might be able to help - might be worth

Re: Build embedded PDF buttons using coldfusion

2010-09-01 Thread Dave Watts
Is it possible to create interactive buttons within a PDF form using coldfusion 8? Specifically, I would like to add email, print, and save a copy buttons to a pdf form I'm building using coldfusion. No, not really. That is, CF doesn't provide an easy way to do this. The idea is that you

Encryption Performance for PayPal

2010-09-01 Thread Phillip Duba
I'm working on integrating PayPal's web standard into a site using their Java EWPS toolkit. They have a utility class that takes the string of parameters, the paths to the certificate files needed and the paswword for the private one. In our test and local development environments, this whole

CFParam vs. IsDefined

2010-09-01 Thread Michael Grant
I prefer to CFParam my vars with a default value of a zero len string or a 0 for numeric values. Then I skip the isdefined and just test against the value. Well recently someone I know said that it's better to test if it's defined. Is there a pro or con to doing it my way vs. IsDefined ? Thanks.

RE: CFParam vs. IsDefined

2010-09-01 Thread DURETTE, STEVEN J (ATTASIAIT)
Using your way ensures that any variables that you are using already exist. I was always taught that I should define my variables before I use them in code (my ancient programming college courses). So, I tend to follow your method. Also, from a security stand, you should already know what

Re: CFParam vs. IsDefined

2010-09-01 Thread Dave Watts
I prefer to CFParam my vars with a default value of a zero len string or a 0 for numeric values. Then I skip the isdefined and just test against the value. Well recently someone I know said that it's better to test if it's defined. Is there a pro or con to doing it my way vs. IsDefined ? No,

Re: CFParam vs. IsDefined

2010-09-01 Thread Russ Michaels
defo better to make sure they are defined. Also using isDefined() is also bad as this search every single scope for your variable and is thus quite slow and can potentially cause timeouts. Much better to use StructKeyExists() and only test the scope your variable is in. -- Russ Michaels

Re: CFParam vs. IsDefined

2010-09-01 Thread John M Bliss
FWIW, the following two tickcounts are nearly identical on my localhost so the reason to use one over the other (cfparam versus isdefined/set) is likely not due to performance... cfset starttick = getTickCount() cfloop index=i from=1 to=1 cfparam default=#i# name=variables.var#i# /cfloop

RE: CFParam vs. IsDefined

2010-09-01 Thread Mark A. Kruger
Russ, You are correct about that - but it's not typically a performance problem in my view. More of a buggy/security type problem :) -Mark Mark A. Kruger, MCSE, CFG (402) 408-3733 ext 105 Skype: markakruger www.cfwebtools.com www.coldfusionmuse.com www.necfug.com -Original Message-

Re: CFParam vs. IsDefined

2010-09-01 Thread Russ Michaels
it depends how many vars you have in each scope. If you have barely any then the search will be quick. If you have a complex app with hundreds of vars then the result will of course be different, especially if they are complex structs. There is also the fact that isdefined() will find the

RE: CFParam vs. IsDefined

2010-09-01 Thread Andy Matthews
One reason to use IsDefined over StructKeyExists is when you don't know if one of the child structures exists. For example, in our control app, we assign permissions to our users like so: SESSION.p -- struct, always exists SESSION.p.nav -- struct, exists if the user has at least one perm in

Re: CFParam vs. IsDefined

2010-09-01 Thread John M Bliss
dot notation means nothing to isdefined() Um, really? The following returns NO for me: cfset variables.myvar = 1 cfoutput#IsDefined(url.myvar)#/cfoutput On Wed, Sep 1, 2010 at 11:16 AM, Russ Michaels r...@michaels.me.uk wrote: it depends how many vars you have in each scope. If you

Re: CFParam vs. IsDefined

2010-09-01 Thread Sean Corfield
On Wed, Sep 1, 2010 at 8:54 AM, John M Bliss bliss.j...@gmail.com wrote: cfloop index=i from=1 to=1 cfif not IsDefined(variables.anothervar i) cfset SetVariable(variables.anothervar i, i) /cfif /cfloop Try that with cfset variables[anothervar i] = i / - I suspect setVariable() is

Re: CFParam vs. IsDefined

2010-09-01 Thread John M Bliss
Nevermind. Misread your post. On Wed, Sep 1, 2010 at 11:24 AM, John M Bliss bliss.j...@gmail.com wrote: dot notation means nothing to isdefined() Um, really? The following returns NO for me: cfset variables.myvar = 1 cfoutput#IsDefined(url.myvar)#/cfoutput On Wed, Sep 1, 2010 at

Re: CFParam vs. IsDefined

2010-09-01 Thread Roger Austin
Michael Grant mgr...@modus.bz wrote: I prefer to CFParam my vars with a default value of a zero len string or a 0 for numeric values. Then I skip the isdefined and just test against the value. Well recently someone I know said that it's better to test if it's defined. Is there a pro

Using ## vs not using ##

2010-09-01 Thread Michael Grant
Ok, i have another one. (In CF7) Here's an example of code I'm running into: cfset errors[#varName#][string] = errors[#varName#][string] bit to add here./ I would normally write this as: cfset errors[varName][string] = errors[varName][string] bit to add here./ Other than the fact it's

Re: Using ## vs not using ##

2010-09-01 Thread Dave Watts
Ok, i have another one. (In CF7) Here's an example of code I'm running into: cfset errors[#varName#][string] = errors[#varName#][string] bit to add here./ I would normally write this as: cfset errors[varName][string] = errors[varName][string] bit to add here./ Other than the fact

Problem with Paypal since CF 9

2010-09-01 Thread Claude Schnéegans
Hi, I recently upgraded an old CF site from version 5 to version 9. Since then, my Instant Payment Notification from Paypal is broken. It CFHTTP the Paypal server, but the response is now INVALID instead of VERIFIED as it used to be. There must be something changed in the CFHTTP which makes

Re: Using ## vs not using ##

2010-09-01 Thread Michael Grant
It makes me want to barf. However I don't really have the time for it. On Wed, Sep 1, 2010 at 12:31 PM, Dave Watts dwa...@figleaf.com wrote: Ok, i have another one. (In CF7) Here's an example of code I'm running into: cfset errors[#varName#][string] = errors[#varName#][string] bit

Re: Problem with Paypal since CF 9

2010-09-01 Thread Russ Michaels
Things have changed a lot since CF5 and there is likley to be a fair few things that no longer work the same. If you cfdump the cfhttp results in CF5 and CF9 and compare them then you will see the difference. If you are using a 3rd party tag then there are more up to date ones you could use

Re: CFParam vs. IsDefined

2010-09-01 Thread Russ Michaels
of course as you are checking for url.myvar which doesn't exist as you created variables.myvar not url.myvar. On Wed, Sep 1, 2010 at 5:24 PM, John M Bliss bliss.j...@gmail.com wrote: dot notation means nothing to isdefined() Um, really? The following returns NO for me: cfset

Re: CFParam vs. IsDefined

2010-09-01 Thread Peter Boughton
I prefer to CFParam my vars with a default value of a zero len string or a 0 for numeric values. Then I skip the isdefined and just test against the value. Well recently someone I know said that it's better to test if it's defined. Is there a pro or con to doing it my way vs. IsDefined ? There

Re: Using ## vs not using ##

2010-09-01 Thread Eric Cobb
According to Adobe, yes. http://www.adobe.com/devnet/coldfusion/articles/coldfusion_performance_04.html Although, I'm sure it's probably negligible. All they really say is that the extra pound signs will negatively affect performance. Thanks, Eric Cobb ECAR Technologies, LLC

Re: Using ## vs not using ##

2010-09-01 Thread Michael Grant
Thanks Eric. On Wed, Sep 1, 2010 at 12:45 PM, Eric Cobb cft...@ecartech.com wrote: According to Adobe, yes. http://www.adobe.com/devnet/coldfusion/articles/coldfusion_performance_04.html Although, I'm sure it's probably negligible. All they really say is that the extra pound signs will

Re: Using #### vs not using ####

2010-09-01 Thread Peter Boughton
It'll have a (very very minor) impact on the first load. I'd be surprised (and dissappointed) if it wasn't optimised away after that. However, don't forget Human performance impact - if it takes an extra 0.5 seconds to decipher whether it just says varName versus #varName#i (or similar), then

Re: Using ######## vs not using ########

2010-09-01 Thread Peter Boughton
Hmmm, I'm guessing the web interface to cf-talk is doing double escaping or something bad. ~| Order the Adobe Coldfusion Anthology now!

Upgrade to Windows 2008 server with IIS 7 while still running CF 8

2010-09-01 Thread Nathan Chen
All: Has anyone experienced any problem when upgrading the server to Windows 2008 with IIS 7 while keeping CF 8? My IT is planning the upgrade but I am still running CF 8 and would like to know any issue so I can be prepared. Nathan Chen

Re: Upgrade to Windows 2008 server with IIS 7 while still running CF 8

2010-09-01 Thread John M Bliss
I just upgraded my dev box to Win 7 including IIS 7 and gave up on getting it to work with CF8 after about 4 hours of following Googled instructions. (Reverted to uninstalling IIS and using the dev webserver that comes with CF.) Googling suggests that it *can* be done but be aware that it's not

RE: Using ######## vs not using ########

2010-09-01 Thread Rick Faircloth
I'm not so sure... I understand that subject completely! ;o) -Original Message- From: Peter Boughton [mailto:bought...@gmail.com] Sent: Wednesday, September 01, 2010 12:44 PM To: cf-talk Subject: Re: Using vs not using Hmmm, I'm guessing the web interface to cf-talk

Re: Problem with Paypal since CF 9

2010-09-01 Thread Claude Schnéegans
If you cfdump the cfhttp results in CF5 and CF9 and compare them then you will see the difference. Not easy to to. The template is called by the Paypal server for every transaction. The template should return all form fields IN SAME ORDER in another CFHTTP request to Paypal. If everything

Re: Using ######## vs not using ########

2010-09-01 Thread Michael Grant
I have escaped your escape. Pray I don't escape it any further. /darth On Wed, Sep 1, 2010 at 1:08 PM, Rick Faircloth r...@whitestonemedia.comwrote: I'm not so sure... I understand that subject completely! ;o) -Original Message- From: Peter Boughton [mailto:bought...@gmail.com]

Re: Problem with Paypal since CF 9

2010-09-01 Thread Phillip Duba
As someone who is working on a new PayPal integration and has run into the same issue as you, make sure all form fields are lower case. I seem to remember CF defaulting to upper case in the transition to MX, Phil On Wed, Sep 1, 2010 at 1:15 PM, wrote: If you cfdump the cfhttp results in

Re: Upgrade to Windows 2008 server with IIS 7 while still running CF 8

2010-09-01 Thread Russ Michaels
cf9.0.1 includes proper support for IIS7, so I would upgrade windows first and then install cf 9.0.1 Anything prior to cf 9.0.1 requires the IIS6 management compatibility mode and management console to be installed, otherwise it will not work. Russ On Wed, Sep 1, 2010 at 5:58 PM, John M Bliss

Re: cfcontent to serve PDF files hanging

2010-09-01 Thread Jason Fill
Thank you for the ideas. We are going to change the mime/type and also add some I/O logging to see if we can find a correlation there. Should we find the issue I will certainly post back. Thanks for the time! Jason ON the other hand... I would expect a mime/type problem to result in an

Re: CFParam vs. IsDefined

2010-09-01 Thread David McGraw
The only general advantage I see is that you are reserving memory no matter what, even though it's not much, where as with the isDefined, your just checking, rather than reserving that memory. I prefer to CFParam my vars with a default value of a zero len string or a 0 for numeric values.

Re: Problem with Paypal since CF 9

2010-09-01 Thread Claude Schnéegans
I'm pretty sure its it some sort of encoding problem. I've found this on the Paypal site: PayPal's IPN server expects that your script will POST back all variables that were posted to it and more importantly, that they are encoded the same way as they were sent to your script. If your script

Re: CFParam vs. IsDefined

2010-09-01 Thread Rick Root
Personally I like to cfparam things that I know are supposed to exist, and I will go both ways on page variables that may or may not exist. I prefer to param it and then test for a valid value than to test for isDefined() Ie... cfparam name=someid default= cfif someid eq (or cfif len(someid)

Re: Problem with Paypal since CF 9

2010-09-01 Thread Phillip Duba
There are two dates the come over encoded but aren't when you look at your string back that caused my issues initially and only when i outputted each form value and looked at the resulting string did I see the issue. I forget which ones they are and I'm not able to look at our listener right

Re: CFParam vs. IsDefined

2010-09-01 Thread Casey Dougall
On Wed, Sep 1, 2010 at 5:56 PM, Rick Root rick.r...@gmail.com wrote: Personally I like to cfparam things that I know are supposed to exist, and I will go both ways on page variables that may or may not exist. I prefer to param it and then test for a valid value than to test for

Re: Problem with Paypal since CF 9

2010-09-01 Thread Claude Schnéegans
There are two dates the come over encoded but aren't when you look at your string back that caused my issues initially Yeah, I've seen that. Fields ending with _date are not listed in form.fieldnames. Curiously enough, this bug was already in CF 5, but Paypal would accept the verification

Re: CFParam vs. IsDefined

2010-09-01 Thread Tony Bentley
A classic issue yesterday related to isDefined(): This worked perfectly: cfscript //pass boolean to determine if the given field is null in the stored proc (1=submitted, 2=finalized) if(arguments.status eq 1){ submitted = false;