Re: Application.cfc question

2013-11-25 Thread Steve 'Cutter' Blades
to get the application.cfc in the subfolder to run, then your original request would have to be to the subfolder. CF bases which application.cfc to fire upon the originating request, then travels up the tree til it finds one (not down, as you are trying to do) Steve 'Cutter' Blades Adobe

RE: Application.cfc question

2013-11-25 Thread Robert Harrison
I would tend to agree that you cannot do it this way because the application.cfc fires on first request. If you can use IIS (or Apache) to do your redirect before the application.cfc fires you should be able to get the ones in the subfolders to fire first, then do an include at the top of

RE: Application.cfc question

2013-11-25 Thread Eric Roberts
That is what I was afraid of ;-) Thanks Steve! -Original Message- From: Steve 'Cutter' Blades [mailto:cold.fus...@cutterscrossing.com] Sent: Monday, November 25, 2013 12:34 PM To: cf-talk Subject: Re: Application.cfc question to get the application.cfc in the subfolder to run

Re: Application.cfc question

2013-11-25 Thread Jon Clausen
Short answer is, it’s difficult if you want to inherit the methods of the root folder Application.cfc. Coldfusion allows for one Application.cfc to extend another, but only if the inherited Application.cfc isn’t in the root directory of the site or has a mapping in the CF Admin ( i.e. -you

Re: Application.cfc question

2013-11-25 Thread Russ Michaels
: That is what I was afraid of ;-) Thanks Steve! -Original Message- From: Steve 'Cutter' Blades [mailto:cold.fus...@cutterscrossing.com] Sent: Monday, November 25, 2013 12:34 PM To: cf-talk Subject: Re: Application.cfc question to get the application.cfc in the subfolder to run, then your

Re: Application.cfc question

2013-11-25 Thread Byron Mann
If the purpose is code reuse, another possibility might be putting all logic into templates or other cfc. Then have both application.cfc call the required functionality through includes or method calls. Somewhat like a shared library. Byron Mann Lead Engineer Architect HostMySite.com On Nov 25,

Re: Application.cfc OnErrorRequest

2011-09-22 Thread Justin Scott
I have the following for OnError. Live mode (application.setlocal eq 0) works perfectly. It's the ELSE that's not working.  In the else I want it to show robust error messaging... but I'm getting a blank screen. The onError() method is catching the error for you, so if you want ColdFusion to

RE: Application.cfc OnErrorRequest

2011-09-22 Thread Robert Harrison
-williams.com Great advertising can't be either/or.  It must be . Plug in to our blog: AW Unplugged http://www.austin-williams.com/unplugged -Original Message- From: Justin Scott [mailto:leviat...@darktech.org] Sent: Thursday, September 22, 2011 11:24 AM To: cf-talk Subject: Re

RE: Application.cfc OnErrorRequest

2011-09-22 Thread Robert Harrison
Found it... In spite of Adobe's documentation which says: This method does not return a value; do not use the cfreturn tag. (http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=AppEvents_06.html) Adding cfreturn false / Now this (below) works as expected: cffunction

Re: Application.cfc execution order

2011-02-11 Thread Nicholas Tunney
Sounds like either a) and error is occurring in onApplicationStart() or b) you didn;t reinitialize your app and onApplicationStart isn;t running since the app already exists. nic On 2/11/11 3:49 PM, Mike P mike...@optonline.net wrote: I recently modified my Application.cfc to email all errors

Re: Application.cfc execution order

2011-02-11 Thread Mike P
Weird. It didn't work when I manually called OnApplicationStart, but it worked when i restarted the server. Sounds like either a) and error is occurring in onApplicationStart() or b) you didn;t reinitialize your app and onApplicationStart isn;t running since the app already exists. nic On

Re: Application.cfc cfinclude

2011-01-28 Thread Will Tomlinson
Hi Folks - I am feeling dumb and either I am missing something simple or it's way above me. In my application.cfc, I was going to have a cfinclude that would pull in my DB Name, user name, and password. I would store those variables in application scope in onApplicationStart().

Re: Application.cfc cfinclude

2011-01-27 Thread Russ Michaels
Doug, can u show us the code in the include so we can see how you are storing/referencing the username/password. Russ On Thu, Jan 27, 2011 at 10:49 PM, Doug Ford doug.e.f...@gmail.com wrote: Hi Folks - I am feeling dumb and either I am missing something simple or it's way above me. In

Re: Application.cfc cfinclude

2011-01-27 Thread Alan Rother
Hey Doug, 1. How many lines of code are in the include? I'm just wondering because it might be easiest to simply move your code into the Application.CFC 2. How are you setting these vars in the include? Can you give us a sample of that code? 3. Once you moved the code around and into the

Re: Application.cfc cfinclude

2011-01-27 Thread Michael Grant
can't you just do cfset onApplicationStart() / to get the method to fire? Do you really need to rename the app scope? On Thu, Jan 27, 2011 at 6:03 PM, Alan Rother alan.rot...@gmail.com wrote: Hey Doug, 1. How many lines of code are in the include? I'm just wondering because it might be

Re: Application.cfc cfinclude

2011-01-27 Thread Ian Skinner
On 1/27/2011 3:12 PM, Michael Grant wrote: can't you just docfset onApplicationStart() / to get the method to fire? Do you really need to rename the app scope? Yes, you can /fire/ the method that way. But that is OFTEN not exactly the same as triggering the onApplicaitonStart *event*.

Re: Application.cfc cfinclude

2011-01-27 Thread Michael Grant
Ah, I didn't know that. On Thu, Jan 27, 2011 at 6:27 PM, Ian Skinner h...@ilsweb.com wrote: On 1/27/2011 3:12 PM, Michael Grant wrote: can't you just docfset onApplicationStart() / to get the method to fire? Do you really need to rename the app scope? Yes, you can /fire/ the method

Re: Application.cfc cfinclude

2011-01-27 Thread Alan Rother
Yeah, I was trying to get to the idea that he needed to somehow clear the app scope and force it to re-init those vars. I should have been clearer about that. =] On Thu, Jan 27, 2011 at 4:12 PM, Michael Grant mgr...@modus.bz wrote: can't you just do cfset onApplicationStart() / to get the

Re: Application.cfc cfinclude

2011-01-27 Thread Dave Watts
can't you just docfset onApplicationStart() /  to get the method to fire? Do you really need to rename the app scope? Yes, you can /fire/ the method that way.  But that is OFTEN not exactly the same as triggering the onApplicaitonStart *event*.  Sometimes one just really wants to

Re: application.cfc

2009-11-23 Thread Ian Skinner
Chad Gray wrote: I can't put it in application.cfc. What not? That is the *good* way to include it in every file. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion

Re: application.cfc

2009-11-23 Thread Dominic Watson
A quick and clean way is to create a cfc named 'utils', 'udfs' or 'helpers' or somesuch. In that, place your MyDecimalFormat function, along with any other udfs you may have. Then, in application.cfc: cffunction name=onApplicationStart cfset application.udfs = CreateObject('component',

Re: application.cfc

2009-11-23 Thread Tony Bentley
yep. Exactly how I do it. application.cfc = createObject(component,cfc); application.cfc.MyDecimalFormat('1234567'); ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion

RE: application.cfc

2009-11-23 Thread Chad Gray
Ah.. makes sense! I should have thought of that. Thanks! Chad -Original Message- From: Dominic Watson [mailto:watson.domi...@googlemail.com] Sent: Monday, November 23, 2009 5:12 PM To: cf-talk Subject: Re: application.cfc A quick and clean way is to create a cfc named 'utils', 'udfs

RE: application.cfc for security

2009-10-09 Thread brad
Not if the files being uploaded are things like images, or text files. Requests for those file types aren't routed through ColdFusion. Instead the webserver hands the files directly back to the user. Options: 1) Store the files outside of the webroot and only allow programmatic access via

Re: application.cfc for security

2009-10-09 Thread Agha Mehdi
first of all, users should not be able to upload files below the web root. that is a dangerous thing to offer to them. What are you defining as right credentials? If a user can create directories and upload files using some ftp client then there are a number of things you can do to make sure each

RE: application.cfc for security

2009-10-09 Thread Robert Harrison
://www.austin-williams.com Great advertising can't be either/or.  It must be . Plug in to our blog: AW Unplugged http://www.austin-williams.com/unplugged -Original Message- From: b...@bradwood.com [mailto:b...@bradwood.com] Sent: Friday, October 09, 2009 2:45 PM To: cf-talk Subject: RE

Re: application.cfc for security

2009-10-09 Thread Charles Sheehan-Miles
, October 09, 2009 2:45 PM To: cf-talk Subject: RE: application.cfc for security Not if the files being uploaded are things like images, or text files. Requests for those file types aren't routed through ColdFusion. Instead the webserver hands the files directly back to the user. Options: 1

Re: application.cfc

2009-04-20 Thread Ras Tafari
id put it in an email rather than displaying, that way you knnow someone who isnt supps to see it is seeing it. but thats just me. On Mon, Apr 20, 2009 at 12:56 PM, Chad Gray cg...@careyweb.com wrote: Is it safe to put this code in the onError function? FORM Variablesbr / cfif

Re: application.cfc subdirectories and links

2009-04-17 Thread Ben Nadel
Liz, This is not a great solution, but you could put a dynamic Base tag in the head: Main directory: base href=./ / Sub directory: base href=../ / I think that would work as a stop-gap. -- Ben Nadel Adobe Community Expert Adobe Certified Advanced ColdFusion Developer Manager New York

Re: application.cfc subdirectories and links

2009-04-17 Thread Peter Boughton
Create a mapping to the siteroot, and do cfinclude template=/siterootmapping/afile.cfm/ ? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial

Re: application.cfc subdirectories and links

2009-04-17 Thread Adrian Moreno
IMO, your best option is going to be setting your header, footer, etc. links to absolute paths. Meaning if your application root is www.mysite.com, then all of your primary links need to point to /aboutUs.cfm. The ensures that no matter how deep you are in the site, that link will always

Re: Application.cfc error

2009-01-23 Thread cf coder
Hi Laura, I'm getting this same error. Did you manage to fix this error? Do you remember what the problem was and if so can you kindly share it with me? Regards, John I'm getting an odd error when I try to use Application.cfc instead of Application.cfm. I get the following error: 500

RE: Application.cfc - normal request or web service?

2008-12-01 Thread Hugo Ahlenius
|On Fri, Nov 28, 2008 at 10:59 AM, Hugo Ahlenius wrote: | Is there any way that the processing (e.g. OnRequestStart) |can know about the request to figure out if it is a web |service call (calling a component as a web service) or a |normal/plain .cfm request? I guess one can always parse this

Re: Application.cfc - normal request or web service?

2008-12-01 Thread Azadi Saryev
because http:/host/testobject.cfc?method=testfunction request is NOT invoking a web service. Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Hugo Ahlenius wrote: |On Fri, Nov 28, 2008 at 10:59 AM, Hugo Ahlenius wrote: | Is there any way that the processing (e.g. OnRequestStart) |can

Re: Application.cfc - normal request or web service?

2008-11-28 Thread Jochem van Dieten
On Fri, Nov 28, 2008 at 10:59 AM, Hugo Ahlenius wrote: Is there any way that the processing (e.g. OnRequestStart) can know about the request to figure out if it is a web service call (calling a component as a web service) or a normal/plain .cfm request? I guess one can always parse this

Re: Application.cfc - normal request or web service?

2008-11-28 Thread Adam Haskell
This will only return true for web service calls to be clear there are other ways of calling a CFC via HTTP that this will return false, AMF for example (which Mark was just showing me last night this lovely example). Fusebox just looks at the extension in the target page in OnRequestStart:

Re: Application.cfc - normal request or web service?

2008-11-28 Thread s. isaac dealey
On Fri, Nov 28, 2008 at 10:59 AM, Hugo Ahlenius wrote: Is there any way that the processing (e.g. OnRequestStart) can know about the request to figure out if it is a web service call (calling a component as a web service) or a normal/plain .cfm request? I guess one can always parse this from

Re: Application.cfc question

2008-11-24 Thread Martijn van der Woud
Just curious: can anyone tell a bit more on how exactly Application.cfc is executed? With normal cfc's I believe that the code above the first method runs only when a new instance of the cfc is created, or when the cfc is invoked as a static component. It seems a bit strange to me that the

RE: Application.cfc question

2008-11-24 Thread Dawson, Michael
, application.cfc is the same as application.cfm. Mike _ From: Martijn van der Woud [mailto:[EMAIL PROTECTED] Sent: Mon 11/24/2008 1:31 PM To: cf-talk Subject: Re: Application.cfc question Just curious: can anyone tell a bit more on how exactly Application.cfc is executed? With normal

Re: Application.cfc question

2008-11-24 Thread James Holmes
A new instance of Application.cfc is created and used on each request, which is why the code above the first method runs each time. mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2008/11/25 Martijn van der Woud [EMAIL PROTECTED]: Just curious: can anyone tell

Re: Application.cfc question

2008-11-22 Thread Jochem van Dieten
On Sat, Nov 22, 2008 at 8:38 AM, Dave Phillips wrote: I have the following code. When I try to execute my URL with the reloadConfig=yes parameter, The app fails on the first line of the onSessionStart() function with 'application.datasource does not exist.' Since onSessionStart is called

Re: Application.cfc question

2008-11-22 Thread Nicholas Stein
I ran into the same problem. I assign datasource in the application.cfm and then lose the connection string in the cfc. I believe the problem is that a cfc is intended to run in a different machine as thought it were a web service. As a result Cold Fusion does not carry the application state

Re: application.cfc error

2008-11-17 Thread Emmet McGovern
Are you sure your not clearing the cart outside of your application.cfc? -e On Mon, Nov 17, 2008 at 12:19 PM, Chad Gray [EMAIL PROTECTED] wrote: I don't understand what is happening. Anyone see something in my application.cfc that would cause this error? I can get rid of the error by

RE: application.cfc error

2008-11-17 Thread Josh Nathanson
Could it be that the application is timing out? What sort of traffic does the site get? What is your application timeout set to? -- Josh -Original Message- From: Chad Gray [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2008 9:20 AM To: cf-talk Subject: application.cfc error I

Re: application.cfc error

2008-11-17 Thread Alan Rother
Off hand I'm not sure what is causing it, but this may help cfif (isdefined(URL.reinit)) OR (NOT IsDefined(Application.Cart)) OR (NOT IsDefined(Application.Page)) cfset onApplicationStart() / /cfif =] -- Alan Rother Adobe Certified

RE: application.cfc error

2008-11-17 Thread Chad Gray
Ya positive. There are only about 10 pages total in the web site. So I know for sure there is no code to kill the variable. -Original Message- From: Emmet McGovern [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2008 12:43 PM To: cf-talk Subject: Re: application.cfc error

RE: application.cfc error

2008-11-17 Thread Chad Gray
-talk Subject: RE: application.cfc error Could it be that the application is timing out? What sort of traffic does the site get? What is your application timeout set to? -- Josh -Original Message- From: Chad Gray [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2008 9:20 AM

RE: application.cfc error

2008-11-17 Thread Chad Gray
Seems like kind of a hack eh'? It probably would work though. -Original Message- From: Alan Rother [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2008 1:20 PM To: cf-talk Subject: Re: application.cfc error Off hand I'm not sure what is causing it, but this may help

Re: application.cfc error

2008-11-17 Thread Alan Rother
Hey Chad, One more thing came to mind... Not knowing anything about your hosting setup this is a wild guess... But your Application scope could be getting corrupted by another site on the same server having the same Application name... cfset this.name = testSite As a practice, I try to make this

RE: application.cfc error

2008-11-17 Thread Chad Gray
Hmmm you know I did realize that there was another web site using the same application name. Could this cause my problems? -Original Message- From: Chad Gray [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2008 1:41 PM To: cf-talk Subject: RE: application.cfc error

RE: application.cfc error

2008-11-17 Thread Adrian Lynch
November 2008 18:41 To: cf-talk Subject: RE: application.cfc error Seems like kind of a hack eh'? It probably would work though. -Original Message- From: Alan Rother Sent: Monday, November 17, 2008 1:20 PM To: cf-talk Subject: Re: application.cfc error Off hand I'm not sure what

Re: application.cfc error

2008-11-17 Thread Alan Rother
Hmmm you know I did realize that there was another web site using the same application name. Could this cause my problems? YES -- Alan Rother Adobe Certified Advanced ColdFusion MX 7 Developer Manager, Phoenix Cold Fusion User Group, AZCFUG.org

RE: application.cfc error

2008-11-17 Thread Dawson, Michael
Use the following code to prevent issues with running multiple applications with the same name on a single server. this.name = constants.siteName { hash(getCurrentTemplatePath()) } (If I remembered where I first saw this, I would give proper credit.) Mike

RE: application.cfc error

2008-11-17 Thread Chad Gray
, but not all of my applications variables are defined for testSite2. This is where I am getting my error! -Original Message- From: Chad Gray [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2008 1:42 PM To: cf-talk Subject: RE: application.cfc error Hmmm you know I did realize

Re: application.cfc and session structure

2008-10-23 Thread Mike Chabot
If you are referring to something that will run in production as opposed to some limited debugging in a development environment, then I prefer dumping the error details to a database table or inside of an email. -Mike Chabot On Thu, Oct 23, 2008 at 9:27 AM, Chad Gray [EMAIL PROTECTED] wrote:

RE: application.cfc and session structure

2008-10-23 Thread Chad Gray
To: cf-talk Subject: Re: application.cfc and session structure If you are referring to something that will run in production as opposed to some limited debugging in a development environment, then I prefer dumping the error details to a database table or inside of an email. -Mike Chabot

Re: application.cfc and session structure

2008-10-23 Thread Mike Chabot
an error in my error function is what I am getting at. Chad -Original Message- From: Mike Chabot [mailto:[EMAIL PROTECTED] Sent: Thursday, October 23, 2008 9:50 AM To: cf-talk Subject: Re: application.cfc and session structure If you are referring to something that will run

RE: Application.cfc OnSessionEnd

2008-08-14 Thread Paul Giesenhagen
Scratch that question .. we found a small problem in the code .. it does run the components. Thought it should. -Original Message- From: Paul Giesenhagen [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2008 10:30 AM To: CF-Talk Subject: Application.cfc OnSessionEnd Can you call

Re: Application.cfc variables

2008-06-10 Thread Barney Boisvert
the 'this' scope corresponds to the CFAPPLICATION tag, not the application scope. If you want to set stuff into the application scope you have to use it literally. A concrete example: setting this.name is equivalent to passing the NAME attribute to CFAPPLICATION, which in turn is available as

RE: Application.cfc question: Where would be the best place to put this code?

2008-06-06 Thread Andy Matthews
That would be the most logical place to put it. I'm not sure that a cfabort is the best bet though. Why not simply use a regex and just strip out the offending portion of the query string? Start with http and remove that, and everything after it. -Original Message- From: Che Vilnonis

Re: Application.cfc question: Where would be the best place to put this code?

2008-06-06 Thread Brian Kotek
OnRequestStart would seem to be a good place for it. You might also override the Session timeout (if you're using sessions) so that these spam requests don't create a large number of dead sessions. You can set the timeout to 5 seconds or something before you do the redirect. Regards, Brian On

RE: Application.cfc question: Where would be the best place to put this code?

2008-06-06 Thread Che Vilnonis
Message- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2008 9:17 AM To: CF-Talk Subject: RE: Application.cfc question: Where would be the best place to put this code? That would be the most logical place to put it. I'm not sure that a cfabort is the best bet though. Why

RE: Application.cfc question: Where would be the best place to put this code?

2008-06-06 Thread Che Vilnonis
, June 06, 2008 9:18 AM To: CF-Talk Subject: Re: Application.cfc question: Where would be the best place to put this code? OnRequestStart would seem to be a good place for it. You might also override the Session timeout (if you're using sessions) so that these spam requests don't create a large number

RE: Application.cfc question: Where would be the best place to put this code?

2008-06-06 Thread Andy Matthews
a spammed link to get to your site. Why kill that legit request when you don't have to? -Original Message- From: Che Vilnonis [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2008 8:24 AM To: CF-Talk Subject: RE: Application.cfc question: Where would be the best place to put this code

RE: Application.cfc question: Where would be the best place to put this code?

2008-06-06 Thread Che Vilnonis
OK. If I were to use a regex, should I still place the code in onRequestStart and use a re-direct with cflocation? -Original Message- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2008 9:44 AM To: CF-Talk Subject: RE: Application.cfc question: Where would

Re: Application.cfc question: Where would be the best place to put this code?

2008-06-06 Thread Brian Kotek
[mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2008 9:18 AM To: CF-Talk Subject: Re: Application.cfc question: Where would be the best place to put this code? OnRequestStart would seem to be a good place for it. You might also override the Session timeout (if you're using sessions) so

RE: Application.cfc question: Where would be the best place to put this code?

2008-06-06 Thread Andy Matthews
That makes sense to me. -Original Message- From: Che Vilnonis [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2008 8:54 AM To: CF-Talk Subject: RE: Application.cfc question: Where would be the best place to put this code? OK. If I were to use a regex, should I still place the code

RE: Application.cfc question: Where would be the best place to put this code?

2008-06-06 Thread Che Vilnonis
[mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2008 9:58 AM To: CF-Talk Subject: RE: Application.cfc question: Where would be the best place to put this code? That makes sense to me. -Original Message- From: Che Vilnonis [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2008 8:54 AM To: CF

RE: Application.cfc question: Where would be the best place to put this code?

2008-06-06 Thread Che Vilnonis
Oops. Fixed it. Needed to add urldecode() to my conditional. -Original Message- From: Che Vilnonis [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2008 10:12 AM To: CF-Talk Subject: RE: Application.cfc question: Where would be the best place to put this code? OK. This is interesting

Re: application.cfc / cfthread / my complete lack of understanding

2007-10-05 Thread Charles Sheehan-Miles
I've figured what I was doing wrong, so my corrected question is: is there any way to terminate a running thread that was launched by a PREVIOUS page request? ~| Get involved in the latest ColdFusion discussions, product

Re: Application.cfc adding whitespace

2007-09-03 Thread James Holmes
Use output=false on the component and all of the methods On 9/3/07, James Smith [EMAIL PROTECTED] wrote: I have a cfm page which must at all costs return a simple pipe delimited list with no whitespace before or after it. Application.cfc is adding some and messing everything up. For now I

RE: Application.cfc adding whitespace

2007-09-03 Thread Bobby Hartsfield
Is output set to false? You can also use cfcontent reset=yes / just before any output in the calling page to reset any white space. That is, of course, if you don't want ANYTHING displayed before this point Example: 1 2 3 4 5 cfcontent reset=yes /6 Would result in the source of just... 6

RE: Application.cfc adding whitespace

2007-09-03 Thread James Smith
Output=no doesn't quite work (almost but not quite) since setting it on the onRequest() function results in no output being sent to the browser at all! However, adding cfcontent reset=yes directly before cfinclude template=#Arguments.targetPage# in the onRequest() function seems to have solved

Re: Application.cfc adding whitespace

2007-09-03 Thread Will Tomlinson
Is output set to false? You can also use cfcontent reset=yes / just before any output in the calling page to reset any white space. That is, of course, if you don't want ANYTHING displayed before this point I always like usin that one for the doctype in a header. :) me

RE: Application.cfc adding whitespace

2007-09-03 Thread Bobby Hartsfield
Yep ;-) ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Will Tomlinson [mailto:[EMAIL PROTECTED] Sent: Monday, September 03, 2007 3:58 PM To: CF-Talk Subject: Re: Application.cfc adding whitespace Is output set to false? You can

RE: application.cfc onError

2007-08-27 Thread Peterson, Chris
I googled for 'cflocation application.cfc onerror' and this was the first result (the fix for it) http://www.coldfusionjedi.com/index.cfm/2005/9/28/Two-Nice-Fixes-in-Cold Fusion-701 You can either update to CF 7.01 (why are you not up to date??) or you can put this into your onError method:

RE: application.cfc onError

2007-08-27 Thread Chad Gray
Oh wow! this server is not up to date. No wonder I was getting strange results from staging to production. Thanks! -Original Message- From: Peterson, Chris [mailto:[EMAIL PROTECTED] Sent: Monday, August 27, 2007 9:23 AM To: CF-Talk Subject: RE: application.cfc onError I googled

Re: application.cfc question

2007-08-27 Thread Crow T. Robot
Plenty of ways to do this, but I'd probably create a utilities.cfc and then drop it into the application scope (in OnApplicationStart()). That way, anytime you want to use it on your site, you just call it that way. The added benefit is if you find you have more functions liek this that you may

Re: application.cfc question

2007-08-27 Thread Josh Nathanson
Plenty of ways to do this, but I'd probably create a utilities.cfc and then drop it into the application scope (in OnApplicationStart()). That way, anytime you want to use it on your site, you just call it that way. I concur with Crow - I was going to suggest exactly the same thing. You

RE: application.cfc and var

2007-08-03 Thread Ben Nadel
Camden [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 01, 2007 6:24 PM To: CF-Talk Subject: Re: application.cfc and var I assume you mean in methods. Yes. The var rule also applies to UDFs as well. Var now. Var tomorrow. Var always. :) On 8/1/07, Chad Gray [EMAIL PROTECTED] wrote: Ok now

Re: application.cfc and var

2007-08-01 Thread Raymond Camden
I assume you mean in methods. Yes. The var rule also applies to UDFs as well. Var now. Var tomorrow. Var always. :) On 8/1/07, Chad Gray [EMAIL PROTECTED] wrote: Ok now that I have learned about declaring variables in CFCs so you don't run into race conditions and problems. How about

Re: Application.cfc and missing templates

2007-03-20 Thread Jochem van Dieten
Jones Eric R Ctr 8 AF Det 1/AFNOC wrote: Why doesn't the Application.cfc file run when a template isn't found? Because technically the constructor code of Application.cfc is included in the template and that is a bit hard when the template isn't present. Anyone know how to catch these

Re: application.cfc problems

2007-01-22 Thread Will Tomlinson
I am new to application.cfc and I am running into problems trying to use the onError function. I think I have narrowed it down to a cfabort in my onRequestStart function. Read this: http://ray.camdenfamily.com/index.cfm?mode=entryentry=ED9D4058-E661-02E9-E70A41706CD89724 That might solve

Re: application.cfc onError

2007-01-16 Thread Josh Nathanson
Anyone know what this java.lang.NullPointerException is? There is nothing in the CF logs to help me figure out what this error is. I have found that this error often pops up when you try to use a date function such as DateDiff or DateFormat, and the value you are passing to the function is

Re: application.cfc onError

2007-01-16 Thread Will Tomlinson
I have started using application.cfc and sending an email when an error occurs by placing a CFMail tag in the onError function. I have one user that when she is doing an insert on a table and is taken back to the display page I get this error emailed to me. I think this was a bug. I know

Re: application.cfc onError

2007-01-16 Thread Raymond Camden
One tip - maybe do a structkeyexists on your exception values like type and tagcontext within rootcause. I see you using it for rootcause itself, but not the others. (Although message should always exist afaik.) Worse comes to worse - just mail a dump of the exception object and see the keys

RE: Application.cfc vs cfm

2006-12-19 Thread Ray Champagne
That file structure formatting got messed up in the transfer. Amended: /root - Application.cfc - Index.cfm /root/subdirectory o Application.cfm o index.cfm ~| Create robust

Re: Application.cfc vs cfm

2006-12-19 Thread Raymond Camden
I'm pretty darn sure it runs the first one it finds. Since your immediate dir has .cfm, it will be loaded. On 12/19/06, Ray Champagne [EMAIL PROTECTED] wrote: That file structure formatting got messed up in the transfer. Amended: /root - Application.cfc - Index.cfm

RE: Application.cfc vs cfm

2006-12-19 Thread Ryan, Terrence
To: CF-Talk Subject: RE: Application.cfc vs cfm That file structure formatting got messed up in the transfer. Amended: /root - Application.cfc - Index.cfm /root/subdirectory o Application.cfm o index.cfm

Re: Application.cfc vs cfm

2006-12-19 Thread Gert Franz
Hi Ray, in Railo 1.1 you can configure this setting. In the Railo administrator you will be able to set the Application Listeners as follows: Type: none - No Application.cfm and Application.cfc will be included classic - First look for Application.cfm and after the request for OnRequestEnd.cfm

RE: Application.cfc vs cfm

2006-12-19 Thread Ryan, Terrence
Senior Systems Programmer Wharton Computing and Information Technology   E-mail:     [EMAIL PROTECTED] -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 19, 2006 10:03 AM To: CF-Talk Subject: Re: Application.cfc vs cfm No - the .CFC wins

RE: Application.cfc vs cfm

2006-12-19 Thread Mansen, Robert E Civ WRALC/ITMS
FWIW --- The following text is quoted straight from the CFMX Development Guide that ships with CFMX7: !--- How ColdFusion MX finds and process application definition pages ColdFusion MX uses the following rules to locate and process the Application.cfc, Application.cfm, and OnRequestEnd.cfm

RE: Application.cfc vs cfm

2006-12-19 Thread Snake
] Sent: 19 December 2006 15:11 To: CF-Talk Subject: Re: Application.cfc vs cfm Hi Ray, in Railo 1.1 you can configure this setting. In the Railo administrator you will be able to set the Application Listeners as follows: Type: none - No Application.cfm and Application.cfc will be included classic

RE: Application.cfc vs cfm

2006-12-19 Thread Snake
Should read how does this affect application.cfc -Original Message- From: Snake [mailto:[EMAIL PROTECTED] Sent: 19 December 2006 15:48 To: CF-Talk Subject: RE: Application.cfc vs cfm While on this subject. Considering CFC's are slower to instantiate compared to regular .cfm files, how

Re: Application.cfc vs cfm

2006-12-19 Thread Robertson-Ravo, Neil (RX)
Sent: Tue Dec 19 15:11:10 2006 Subject: Re: Application.cfc vs cfm Hi Ray, in Railo 1.1 you can configure this setting. In the Railo administrator you will be able to set the Application Listeners as follows: Type: none - No Application.cfm and Application.cfc will be included classic - First

RE: Application.cfc vs cfm

2006-12-19 Thread Dave Watts
While on this subject. Considering CFC's are slower to instantiate compared to regular .cfm files, how does this affect application.cfm, has anyone tested? Is it slower than using application.cfm and onrequestend.cfm I haven't bothered doing any testing. However, I haven't seen any

RE: Application.cfc vs cfm

2006-12-19 Thread Rick Faircloth
necessary to implement a 3rd party CF server. Rick -Original Message- From: Gert Franz [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 19, 2006 10:11 AM To: CF-Talk Subject: Re: Application.cfc vs cfm Hi Ray, in Railo 1.1 you can configure this setting. In the Railo administrator you

RE: Application.cfc vs cfm

2006-12-19 Thread Snake
the speed to be dire, the pages took seconds to load, compared to milliseconds for the same site not done using CFC's Russ -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: 19 December 2006 17:09 To: CF-Talk Subject: RE: Application.cfc vs cfm While on this subject

Re: Application.cfc vs cfm

2006-12-19 Thread Gert Franz
be more attractive and worth the effort to do the work necessary to implement a 3rd party CF server. Rick -Original Message- From: Gert Franz [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 19, 2006 10:11 AM To: CF-Talk Subject: Re: Application.cfc vs cfm Hi Ray, in Railo

RE: application.cfc

2006-12-14 Thread Bobby Hartsfield
You could just use jsstringformat() to escape strings in javascript ..:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Chad Gray [mailto:[EMAIL PROTECTED] Sent: Thursday, December 14, 2006 11:43 AM To: CF-Talk Subject: application.cfc I am

  1   2   >