RE: Is there a way to have all CFCatch messages display at once?

2004-06-23 Thread Rick Faircloth
Great!Thanks, Joe... -Original Message- From: Joe Rinehart [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 23, 2004 11:26 AM To: CF-Talk Subject: Re: Is there a way to have all CFCatch messages display at once? Rick - StructIsEmpty() returns a boolean representing whether

RE: Is there a way to have all CFCatch messages display at once?

2004-06-23 Thread Rick Faircloth
Will do!Thanks, Dave... Rick -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 23, 2004 11:38 AM To: CF-Talk Subject: RE: Is there a way to have all CFCatch messages display at once? Is there a way to use a wildcard to check and see if a certain

Is there a way to have all CFCatch messages display at once?

2004-06-22 Thread Rick Faircloth
Hi, all. I run my validation on forms by having a form submit back to the page it's on, then just use CF code validation (since I know little about _javascript_) and then, either showing a CFCatch error or processing the form successfully, then CFLocating to a confirmation page. This works fine

Re: Is there a way to have all CFCatch messages display at once?

2004-06-22 Thread Adrocknaphobia
Faircloth [EMAIL PROTECTED] Date: Tue, 22 Jun 2004 20:57:59 -0400 Subject: Is there a way to have all CFCatch messages display at once? To: CF-Talk [EMAIL PROTECTED] Hi, all. I run my validation on forms by having a form submit back to the page it's on, then just use CF code validation (since I know

RE: Is there a way to have all CFCatch messages display at once?

2004-06-22 Thread Rick Faircloth
name. /CFIF CFCatch Type=AddError CFOUTPUT#CFCatch.Message#/CFOUTPUT /CFTRY Rick -Original Message- From: Adrocknaphobia [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 22, 2004 8:55 PM To: CF-Talk Subject: Re: Is there a way to have all CFCatch messages display at once? Yeah, the array

RE: Is there a way to have all CFCatch messages display at once?

2004-06-22 Thread Matthew Walker
redisplay the form. That's exactly what TerraForm does. Matt. _ From: Rick Faircloth [mailto:[EMAIL PROTECTED] Sent: Wednesday, 23 June 2004 1:19 p.m. To: CF-Talk Subject: RE: Is there a way to have all CFCatch messages display at once? Let see...so how would that be coded? How do I validate

RE: Is there a way to have all CFCatch messages display at once?

2004-06-22 Thread Rick Faircloth
Thanks, all... I think I may be getting what you're saying...I'll tinker with this and see what I can come up with... Rick -Original Message- From: Matthew Walker [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 22, 2004 9:19 PM To: CF-Talk Subject: RE: Is there a way to have all CFCatch

Re: Is there a way to have all CFCatch messages display at once?

2004-06-22 Thread Dick Applebaum
On Jun 22, 2004, at 5:55 PM, Adrocknaphobia wrote: Although rather than blast a user with all those errors, why not do something more subtle like highlight the invalid form fields with another color. I think you want to do both -- a list of errors and highlighted fields-- maybe highlight by

cfdump the cfcatch variable struct

2004-06-11 Thread Tony Weeg
if I run this code, with a c:\cfusion\runtime\servers\lib path present on my server cftry cfquery name=tony datasource=#usersDSN# select * from companyTables /cfquery cfcatch type=any cfdump var=#cfcatch# /cfcatch /cftry I get this response... [unknown type] however, if I remove the c

cfcatch question

2004-06-11 Thread Tony Weeg
=anyDSNonYourServer select * from blahBlahBooey /cfquery cfcatch type=any cfdump var=#cfcatch# /cfcatch /cftry !--- snip above --- thanks. ...tony tony weeg senior web applications architect navtrak, inc. www.navtrak.net [EMAIL PROTECTED] 410.548.2337 visit www.antiwrap.com to send long url emails

Re: Using CFCATCH to display default error messages

2004-05-24 Thread Stan Winchester
cfdump var=#cfcatch#, and it returned the following: object of coldfusion.runtime.UndefinedElementException Methods getMessage (returns java.lang.String) getResolvedname (returns java.lang.String) getErrNumber (returns int) getLocalizedMessage (returns

RE: Using CFCATCH to display default error messages

2004-05-24 Thread Dave Watts
I hope they fix the structure error with cfcatch variable that I reported about a year ago in the Blackstone, you cannot pass the cfcatch structure (for it is a structure) as a type = struct to a function, it has to be type = any. I think it had other problems with its structure identity

Re: Using CFCATCH to display default error messages

2004-05-23 Thread Simon Riley
Stan Winchester wrote: Have you tried using cfdump var=#CFCATCH#? I've read the documentation, and when I use the following: type: #cfcatch.type#br message: #cfcatch.message#br detail: #cfcatch.detail# br extended info: #cfcatch.extendedinfo# It returns the following error message which

RE: Using CFCATCH to display default error messages

2004-05-23 Thread Matt Robertson
on. As was mentioned in an earlier post, the most comprehensive thing to do is just cfdump out the cfcatch scope (or cfdump out the variables scope, which includes cfcatch and any queries you may have run; see below).In CF6+ at least, this will give you a very nice trail of nested templates; i.e. foo.cfm

RE: Using CFCATCH to display default error messages

2004-05-23 Thread Andy Ousterhout
Are the output statements within a catch any block? -Original Message- From: Stan Winchester [mailto:[EMAIL PROTECTED] Sent: Saturday, May 22, 2004 11:46 PM To: CF-Talk Subject: Re: Using CFCATCH to display default error messages I've read the documentation, and when I use the following

RE: Using CFCATCH to display default error messages

2004-05-23 Thread Tom Kitta
I hope they fix the structure error with cfcatch variable that I reported about a year ago in the Blackstone, you cannot pass the cfcatch structure (for it is a structure) as a type = struct to a function, it has to be type = any. I think it had other problems with its structure identity as well

Using CFCATCH to display default error messages

2004-05-22 Thread Stan Winchester
Is there a way to get CFCATCH to display the default CFMX errors? Specifically I want to know the template name and line number where the error occurred, so I can have them emailed to me. Thank you, Stan Winchester [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User

RE: Using CFCATCH to display default error messages

2004-05-22 Thread Paul Vernon
There are lots of cfcatch vars in the cfcatch structure but these are probably the ones that will interest you most cfcatch.message cfcatch.detail cfcatch.extendedinfo Paul [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

RE: Using CFCATCH to display default error messages

2004-05-22 Thread Philip Arnold
From: Stan Winchester Is there a way to get CFCATCH to display the default CFMX errors? Specifically I want to know the template name and line number where the error occurred, so I can have them emailed to me. http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/tags-a10.htm Gotta

Re: Using CFCATCH to display default error messages

2004-05-22 Thread Stan Winchester
was generate from the same page as my 1st example except I commented the any cfcatch block. I want to be able to email error messages with the same detail as in the default error messages. From: Stan Winchester Is there a way to get CFCATCH to display the default CFMX errors? Specifically I want

cfcatch question

2004-05-11 Thread Matt Robertson
Does anyone know why this line errors out only in CF 5?The following code is being run inside of a catch block: error occurred on Line #CFCATCH.TAGCONTEXT[1][LINE]# I could have sworn it worked in CF 4.5.1, but my memory is fading daily on them good ol' days.

cftry/cfcatch question

2004-04-15 Thread Tony Weeg
hi there. If im trying to cftry/cfcatch a webservice that may or may not work 100%, don't ask, and all I want is for it to be skipped if its not working, do I only need to have a blank cfcatch pair, with nothing in between? thanks! tony r e v o l u t i o n w e b d e s i g n [EMAIL

Re: cftry/cfcatch question

2004-04-15 Thread Charlie Griefer
afaik, that's all.there doesn't need to be anything between the cfcatch block. but wouldn't you want to be setting some variables to take the place of those that didn't get passed in by the webservice? (just curious) :) - Original Message - From: Tony Weeg [EMAIL PROTECTED] To: CF-Talk

RE: cftry/cfcatch question

2004-04-15 Thread Tony Weeg
-Original Message- From: Charlie Griefer [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 12:00 PM To: CF-Talk Subject: Re: cftry/cfcatch question afaik, that's all.there doesn't need to be anything between the cfcatch block. but wouldn't you want to be setting some variables to take

RE: cftry/cfcatch question

2004-04-15 Thread Ian Skinner
Yes, you can also get a little fancy by nesting cftry blocks inside the cfcatch block of another cftry.This would allow you to try a web service two or three times, or alternate web services or something before you gave up as unworkable. cftry do something cfcatch cftry do something again

RE: cftry/cfcatch question

2004-04-15 Thread Tony Weeg
ahh yeahgood idea. thanks! ...tony -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 12:05 PM To: CF-Talk Subject: RE: cftry/cfcatch question Yes, you can also get a little fancy by nesting cftry blocks inside the cfcatch block

Re: cftry/cfcatch question

2004-04-15 Thread Ubqtous
Tony, On 4/15/2004 at 11:52, you wrote: TW do I only need to have a blank cfcatch pair, with nothing in TW between? This will suffice: cfcatch / ~ Ubqtous ~ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

RE: cftry/cfcatch question

2004-04-15 Thread Tony Weeg
excellent. thanks. ...tony -Original Message- From: Ubqtous [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 12:44 PM To: CF-Talk Subject: Re: cftry/cfcatch question Tony, On 4/15/2004 at 11:52, you wrote: TW do I only need to have a blank cfcatch pair, with nothing in TW

cfqueryparam, cfcatch 'n cftry

2004-03-10 Thread Stuart Kidd
Hi guys, In my cfcatch i've got a bunch of cfif's checking to make sure all parts of my form were correct. e.g.: cfif form.PropertyDataVillageTown is cfset MessageAlert = MessageAlert font color='b23f3f'bVillage/Town/b/font must have a value.brcfset ErrorFound = yes/cfif cfif

RE: cfqueryparam, cfcatch 'n cftry

2004-03-10 Thread Nathan Strutz
Message- From: Stuart Kidd [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 10, 2004 8:54 AM To: CF-Talk Subject: cfqueryparam, cfcatch 'n cftry Hi guys, In my cfcatch i've got a bunch of cfif's checking to make sure all parts of my form were correct. e.g.: cfif form.PropertyDataVillageTown

RE: cfqueryparam, cfcatch 'n cftry

2004-03-10 Thread Kola Oyedeji
, this can be done on the database but I wouldn't do it that way! Hope that helps Kola -Original Message- From: Stuart Kidd [mailto:[EMAIL PROTECTED] Sent: 10 March 2004 15:54 To: CF-Talk Subject: cfqueryparam, cfcatch 'n cftry Hi guys, In my cfcatch i've got a bunch of cfif's checking

RE: cfqueryparam, cfcatch 'n cftry

2004-03-10 Thread Saturday. S. Kidd
Thanks so much for your help Kola and Nathan! :-) -Original Message- From: Kola Oyedeji [mailto:[EMAIL PROTECTED] Sent: 10 March 2004 16:46 To: CF-Talk Subject: RE: cfqueryparam, cfcatch 'n cftry Stuart Hi, a couple of things. First of all if you are checking ifform fields have

basic CFSET, CFTRY and CFCATCH probs.

2004-02-23 Thread Stuart Kidd
Hi, I've a problem with CFSET, i'm trying to have a font color change in one of my statements but it doesn't seem to work.The CFSET is within a CFCATCH and CFTRY. cfset MessageAlert = pThe following fields have errors:/p cfif form.PropertyDataCountry is cfset MessageAlert = MessageAlert Country

RE: basic CFSET, CFTRY and CFCATCH probs.

2004-02-23 Thread Greg Luce
, CFTRY and CFCATCH probs. Hi, I've a problem with CFSET, i'm trying to have a font color change in one of my statements but it doesn't seem to work.The CFSET is within a CFCATCH and CFTRY. cfset MessageAlert = pThe following fields have errors:/p cfif form.PropertyDataCountry is cfset

RE: basic CFSET, CFTRY and CFCATCH probs.

2004-02-23 Thread Stuart Kidd
that's ending the set value too soon. Just leave out the quotes and try. Greg -Original Message- From: Stuart Kidd [mailto:[EMAIL PROTECTED] Sent: Monday, February 23, 2004 11:59 AM To: CF-Talk Subject: basic CFSET, CFTRY and CFCATCH probs. Hi, I've a problem with CFSET, i'm trying

RE: basic CFSET, CFTRY and CFCATCH probs.

2004-02-23 Thread J E VanOver
23, 2004 9:12 AM To: CF-Talk Subject: RE: basic CFSET, CFTRY and CFCATCH probs. Thanks Greg, that's done it... just made them single ones. -- Original Message -- From: Greg Luce [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date:Mon, 23 Feb 2004 12:04:44

RE: basic CFSET, CFTRY and CFCATCH probs.

2004-02-23 Thread Stuart Kidd
Thanks for that Jevo! :-) -Original Message- From: J E VanOver [mailto:[EMAIL PROTECTED] Sent: 23 February 2004 18:03 To: CF-Talk Subject: RE: basic CFSET, CFTRY and CFCATCH probs. FYI Stuart, you can also use a PAIR of double quotes in a CF string to represent a quote. In your

cfcatch structure: cf5 mx

2004-02-19 Thread Tangorre, Michael
Was there changes made to the way CF handles the cfcatch structure between CF 5 and MX 6.1? The reason I ask is because some of us are noticing that a plug-in written for FB4 is not functioning in MX as it does in CF 5. I know this is SOT, but thought maybe someone has some ideas on what

Invoking CFC from within a CFCATCH block

2004-02-06 Thread Craig Earls
It seems like if I invoke a static method of a CFC from within a CFCATCH block the CFCATCH scope is cleaned out. Meaning I can't create a stock Error handler CFC and call that from within a CFCATCH block without having to individual passing in each of the CFCATCH variables (Type...) Is there any

RE: Invoking CFC from within a CFCATCH block

2004-02-06 Thread Shawn Grover
Isn't this what the CFERROR tag was meant for?Or has it been deprecated with MX and the CFC concept? Shawn -Original Message- From: Craig Earls [mailto:[EMAIL PROTECTED] Sent: Friday, February 06, 2004 2:07 PM To: CF-Talk Subject: Invoking CFC from within a CFCATCH block It seems like

Re: Invoking CFC from within a CFCATCH block

2004-02-06 Thread Ubqtous
Craig, On 2/6/2004 at 16:07, you wrote: CE Is there any way to specify a default error handler? I am stuck using a CE shared server where I cannot get access to the server error logs, and no one CE seems to know how to create an application specific error log... In Application.cfm: cferror

RE: Invoking CFC from within a CFCATCH block

2004-02-06 Thread Craig Earls
: Re: Invoking CFC from within a CFCATCH block Craig, On 2/6/2004 at 16:07, you wrote: CE Is there any way to specify a default error handler? I am stuck using a CE shared server where I cannot get access to the server error logs, and no one CE seems to know how to create an application specific

Re: Invoking CFC from within a CFCATCH block

2004-02-06 Thread Ubqtous
Craig, On 2/6/2004 at 17:04, you wrote: CE I was hoping to be able to generate a log as well, but I'll try CE this. If it's enabled, use CFLOG or CFFILE in addition to the CFMAIL. ~ Ubqtous ~ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

RE: Invoking CFC from within a CFCATCH block

2004-02-06 Thread Craig Earls
Yes, I finally just broke down and started passing the individual CFCATCH variables into my error handling CFC and CFMAILed and CFFILEd a log.I wish I could figure out why CFDUMP says #CFCATCH# is a struct, but I can't pass is as one, or use StructCopy()... -Original Message- From

RE: CFSaveContent inside CFCatch?

2004-01-05 Thread Paul Kenney
-Talk Subject: CFSaveContent inside CFCatch? I am trying to use the cfsavecontent tag inside of a cfcatch.Is there some reason this should not work? I have the following code, and the dump always results in an empty string. I have tried changing the structure variable in the cfsavecontent tag

CFSaveContent inside CFCatch?

2004-01-03 Thread Jeff Chastain
, but it has the same result. cfcatch type=securityException !--- generate user error message --- cfsavecontent variable=content.main span class=errorTextYou have attempted to access an area of the community to which you do not have access. Click a href="" to go

CFTry/CFCatch

2003-09-11 Thread Dave Sueltenfuss
Good Afternoon Is it at all possible to put CFTry/CFCatch into a page by using two include statements? (one at the top, and one at the bottom) I am trying to setup better error handling on my site, but do not want to have to put the full code in each page, just include it. This way, If I need

RE: CFTry/CFCatch

2003-09-11 Thread Ian Skinner
I believe it's possible. Even simpler, if all your cfcatch sections are the same, is put the top into Applicaiton.cfm and the bottom into OnRequestEnd.cfm. Probably not the best practice in the world, but should be easier then converting hundreds of already written templates

RE: CFTry/CFCatch

2003-09-11 Thread Heald, Tim
or sanctioned by these organizations. This e-mail is unclassified based on the definitions in E.O. 12958. -Original Message- From: Dave Sueltenfuss [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2003 1:34 PM To: CF-Talk Subject: CFTry/CFCatch Good Afternoon Is it at all possible

Re: CFTry/CFCatch

2003-09-11 Thread ksuh
Why not just use a cferror tag in your application.cfm? - Original Message - From: Dave Sueltenfuss [EMAIL PROTECTED] Date: Thursday, September 11, 2003 11:12 am Subject: CFTry/CFCatch Good Afternoon Is it at all possible to put CFTry/CFCatch into a page by using two include

RE: CFTry/CFCatch

2003-09-11 Thread Dave Watts
Is it at all possible to put CFTry/CFCatch into a page by using two include statements? (one at the top, and one at the bottom) I am trying to setup better error handling on my site, but do not want to have to put the full code in each page, just include it. This way, If I need to add

CFCatch in CFMX -- some things missing...

2003-01-14 Thread Jeremy Bruck
Everyone, In CF5 we created a custom tag that was used for all catching all our errors. It would loop through all the elements/attributes (cfcatch.detail, cfcatch.message, etc) of cfCatch and email them to us. It worked beautifully and saved lots of time, but some things changed in CFMX. One

RE: Good CFCatch code

2002-08-01 Thread Al Everett
cfdump isn't available on CF 4.5.x. Then create one. Here's the code from my CF_DUMP tag: cfsetting enablecfoutputonly=yes !--- Usage:cf_dump var = ... Attributes: var (var, required) - variable to be dumped --- !--- attributes

RE: Good CFCatch code

2002-08-01 Thread Raymond Camden
-Original Message- From: Al Everett [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 9:32 AM To: CF-Talk Subject: RE: Good CFCatch code cfdump isn't available on CF 4.5.x. Then create one. Here's the code from my CF_DUMP tag: cfsetting enablecfoutputonly=yes

RE: Good CFCatch code

2002-08-01 Thread Robertson-Ravo, Neil (REC)
and if you have a valid license for it :-p -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED]] Sent: 01 August 2002 14:41 To: CF-Talk Subject: RE: Good CFCatch code And you can always use cfa_dump from Spectra if you have

RE: Good CFCatch code

2002-07-31 Thread Dave Watts
Assuming you're on CFMX? cfdump var=#cfcatch#/ will get you started... That'll work fine on CF 4.5.x on up. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 __ Your ad

RE: Good CFCatch code

2002-07-31 Thread Van Vliet, Scott
Watts [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 31, 2002 1:40 PM To: CF-Talk Subject: RE: Good CFCatch code Assuming you're on CFMX? cfdump var=#cfcatch#/ will get you started... That'll work fine on CF 4.5.x on up. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com

RE: Good CFCatch code

2002-07-31 Thread Dave Watts
cfdump isn't available on CF 4.5.x. D'oh! But of course. I'd forgotten about using the cf_dump custom tag back then. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 __ Your

Re: Good CFCatch code

2002-07-31 Thread S . Isaac Dealey
on CFMX? cfdump var=#cfcatch#/ will get you started... .. you left out a on the end of the attribute, but ... why assuming CFMX? This works beautifully on CF 5 -- minus the trailing / since CF 5 and before weren't technically xml languages. Isaac Dealey Certified Advanced ColdFusion Developer

RE: Good CFCatch code

2002-07-31 Thread Dave Watts
This works beautifully on CF 5 -- minus the trailing / since CF 5 and before weren't technically xml languages. Actually, though, you can still use the trailing slash with many tags (perhaps all, for all I know) in CF 4.x and higher. This is actually done quite a bit, when calling nested

RE: Good CFCatch code

2002-07-31 Thread Matthew Walker
CFCatch code This works beautifully on CF 5 -- minus the trailing / since CF 5 and before weren't technically xml languages. Actually, though, you can still use the trailing slash with many tags (perhaps all, for all I know) in CF 4.x and higher. This is actually done quite a bit, when

Re: Good CFCatch code

2002-07-31 Thread Jon Hall
:[EMAIL PROTECTED]] Sent: Thursday, 1 August 2002 10:03 a.m. To: CF-Talk Subject: RE: Good CFCatch code This works beautifully on CF 5 -- minus the trailing / since CF 5 and before weren't technically xml languages. Actually, though, you can still use the trailing slash with many tags

Re: Good CFCatch code

2002-07-31 Thread Jon Hall
Subject: RE: Good CFCatch code This works beautifully on CF 5 -- minus the trailing / since CF 5 and before weren't technically xml languages. Actually, though, you can still use the trailing slash with many tags (perhaps all, for all I know) in CF 4.x and higher. This is actually done

Re: Good CFCatch code

2002-07-31 Thread Sean A Corfield
On Wednesday, July 31, 2002, at 02:39 , S. Isaac Dealey wrote: cfdump var=#cfcatch#/ will get you started... .. you left out a on the end of the attribute, I've been doing that a lot recently... :| but ... why assuming CFMX? This works beautifully on CF 5 -- minus the trailing / since CF 5

Good CFCatch code

2002-07-31 Thread Neil H.
Anyone have a snippet of code that would show all the information available when an error occurs? I am looking for something like what CF displays if I wasn't using the catch but I will email it to me when it does :) Thanks, Neil

RE: Good CFCatch code

2002-07-31 Thread Chad Gray
Something like this? cfmail to=your email here from=your email here subject=Error CFSET todayDate = Now() Referrer = #cgi.HTTP_REFERER# WebBrowser = #CGI.HTTP_USER_AGENT# Full URL this alert was created at httpcfif cgi.HTTPS IS YESs/cfif://#CGI.HTTP_HOST##CGI.SCRIPT_NAME#CFIF

Re: Good CFCatch code

2002-07-31 Thread Jon Hall
I highly reccomend CF_MailTemplateErrors by Benjamin Bloodworth. It works all the way back to v4.5. http://devex.macromedia.com/developer/gallery/info.cfm?ID=921ADF4D-5C48-11D4-83E000508B94F85Amethod=Full I was going to try and make one myself and took a look at the dev exchange and found this,

Re: Good CFCatch code

2002-07-31 Thread Sean A Corfield
on CFMX? cfdump var=#cfcatch#/ will get you started... Sean A Corfield -- http://www.corfield.org/blog/ If you're not annoying somebody, you're not really alive. -- Margaret Atwood __ Get the mailserver that powers this list

Re: Good CFCatch code

2002-07-31 Thread Chris Norloff
There's a good list in the CFTRY/CFCATCH CF documentation. Chris Norloff -- Original Message -- from: Neil H. [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] date: Wed, 31 Jul 2002 14:03:40 -0400 Anyone have a snippet of code that would show all

RE: Good CFCatch code

2002-07-31 Thread Philip Arnold - ASP
Anyone have a snippet of code that would show all the information available when an error occurs? I am looking for something like what CF displays if I wasn't using the catch but I will email it to me when it does :) I prefer to do this (in CFscript) messageString=; for (i

Re: CFTRY/CFCATCH Database errors

2002-05-30 Thread Chris Norloff
the error and redirect. Any ideas... Thanks, Dave - cftry cfquery name=x datasource =x blah blah /cfquery cfcatch type=database script language=JavaScript alert (Database Server is down! Please click OK to continue.); self.location

RE: CFTRY/CFCATCH Database errors

2002-05-30 Thread Tony_Petruzzi
Message- From: Chris Norloff [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 30, 2002 9:45 AM To: CF-Talk Subject: Re: CFTRY/CFCATCH Database errors Strange, seems okay to me. We use this in CF 4.5 and it works okay catching if the Oracle database (using native drivers) goes down. I'd still

RE: CFTRY/CFCATCH Database errors

2002-05-24 Thread Philip Arnold - ASP
. Remember that rubbish SQL will also cause a CFCATCH TYPE=database to hit I'm working with the presumption you're using CF5, as I'm not 100% sure this works with CF4.x What I'd suggest is looping through the CFCATCH.TagContent array and see what's in there for different errors, that way you know

CFTRY/CFCATCH Database errors

2002-05-23 Thread Bosky, Dave
ideas... Thanks, Dave - cftry cfquery name=x datasource =x blah blah /cfquery cfcatch type=database script language=JavaScript alert (Database Server is down! Please click OK to continue.); self.location=TempPage.cfm; /script

CFABORT vs CFEXIT in CFCATCH TAG

2002-02-07 Thread mark kecko
Hello, Whats the best way to stop the execution of a page after a error has been caught using CFCATCH. Can I put a CFABORT or CFEXIT tag within the CFCATCH? Thanks in advance for any advice. Mark Kecko Technology Director MediaPost Communications [EMAIL PROTECTED] http://www.mediapost.com (203

RE: CFABORT vs CFEXIT in CFCATCH TAG

2002-02-07 Thread Mark A. Kruger - CFG
Yes you can... -Original Message- From: mark kecko [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 7:58 AM To: CF-Talk Subject: CFABORT vs CFEXIT in CFCATCH TAG Hello, Whats the best way to stop the execution of a page after a error has been caught using CFCATCH. Can I

RE: CFABORT vs CFEXIT in CFCATCH TAG

2002-02-07 Thread Pascal Peters
If you want to stop executing the page, use cfabort. If you are in a CT and want to stop executing the CT but continue the page, use cfexit. It doesn't matter that you use it in a CFCATCH, it will work anywhere -Original Message- From: mark kecko [mailto:[EMAIL PROTECTED]] Sent

RE: CFABORT vs CFEXIT in CFCATCH TAG

2002-02-07 Thread Benjamin S. Rogers
Whats the best way to stop the execution of a page after a error has been caught using CFCATCH. Can I put a CFABORT or CFEXIT tag within the CFCATCH? Thanks in advance for any advice. It depends on what you want to do. If you want to end the request unconditionally, then I recommend using

Advanced CFCATCH Exception Types

2002-02-06 Thread Dave Carabetta
I would like to trap a CFFILE error using CFTRY/CFCATCH if the user submits a bad file type. I only want to allow them to upload .gif files. I can use the CFCATCH TYPE=Any to trap it, but I was hoping that I could trap specifically for a bad file type. I noticed that there are a whole slew

RE: Advanced CFCATCH Exception Types

2002-02-06 Thread Dave Watts
I would like to trap a CFFILE error using CFTRY/CFCATCH if the user submits a bad file type. I only want to allow them to upload .gif files. I can use the CFCATCH TYPE=Any to trap it, but I was hoping that I could trap specifically for a bad file type. I noticed

RE: Advanced CFCATCH Exception Types

2002-02-06 Thread Andrew Scott
. -Original Message- From: Dave Carabetta [mailto:[EMAIL PROTECTED]] Sent: Thursday, 7 February 2002 7:13 AM To: CF-Talk Subject: Advanced CFCATCH Exception Types I would like to trap a CFFILE error using CFTRY/CFCATCH if the user submits a bad file type. I only want to allow them to upload .gif

RE: Advanced CFCATCH Exception Types

2002-02-06 Thread James Curran
] .. -Original Message- From: Dave Carabetta [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 3:13 PM To: CF-Talk Subject: Advanced CFCATCH Exception Types I would like to trap a CFFILE error using CFTRY/CFCATCH if the user submits a bad file type. I only want to allow them to upload .gif

RE: Advanced CFCATCH Exception Types

2002-02-06 Thread Dave Watts
the user to the problem. If I use Any as the exception type, then I can't know for sure that it was a bad file type versus another problem. You might find some specific information in some of the other CFCATCH variables. You might simply use CFDUMP to display the entire CFCATCH scope, and see

RE: Advanced CFCATCH Exception Types

2002-02-06 Thread Christopher Olive
PROTECTED]] Sent: Wednesday, February 06, 2002 3:13 PM To: CF-Talk Subject: Advanced CFCATCH Exception Types I would like to trap a CFFILE error using CFTRY/CFCATCH if the user submits a bad file type. I only want to allow them to upload .gif files. I can use the CFCATCH TYPE=Any to trap it, but I

RE: Advanced CFCATCH Exception Types

2002-02-06 Thread Dave Carabetta
-direct the user and alert them to the problem. Simply using catch type=Any doesn't really give me enough info to do this. Original Message Follows From: Christopher Olive [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Subject: RE: Advanced CFCATCH Exception

RE: Advanced CFCATCH Exception Types

2002-02-06 Thread UXB Internet
http://www.uxbinfo.com/ -Original Message- From: Dave Carabetta [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 3:13 PM To: CF-Talk Subject: Advanced CFCATCH Exception Types I would like to trap a CFFILE error using CFTRY/CFCATCH if the user submits a bad file type. I only

Re: Using CFTRY - CFCATCH to rollback database tranaction

2002-02-05 Thread Chris Norloff
-To: [EMAIL PROTECTED] date: Mon, 4 Feb 2002 14:40:41 -0500 Is there a way to use CFTRY - CFCATCH to rollback all database tranactions within given block? In otherwords, If I'm running 4 update queries and th e first three are ok but the last one fails I want to roll them all back. I s

Re: Using CFTRY - CFCATCH to rollback database tranaction

2002-02-05 Thread Chris Norloff
-To: [EMAIL PROTECTED] date: Mon, 4 Feb 2002 14:40:41 -0500 Is there a way to use CFTRY - CFCATCH to rollback all database tranactions within given block? In otherwords, If I'm running 4 update queries and th e first three are ok but the last one fails I want to roll them all back. I s

RE: Using CFTRY - CFCATCH to rollback database tranaction

2002-02-05 Thread Dave Watts
. It uses CFTRY/CFCATCH unnecessarily, and won't even work if you run it, if I recall correctly. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 __ Why Share? Dedicated Win

Cftry/cfcatch

2002-02-04 Thread Kris Pilles
I need to put iun place a really simple error management system. I was wondering what the drawbacks, if any were of putting cftry/catch statements in an application.cfm were? Any other ides on how to easily allow 1 generic error page for our app would be appreciated.

RE: Cftry/cfcatch

2002-02-04 Thread Kola Oyedeji
Subject: Cftry/cfcatch I need to put iun place a really simple error management system. I was wondering what the drawbacks, if any were of putting cftry/catch statements in an application.cfm were? Any other ides on how to easily allow 1 generic error page for our app would

RE: Cftry/cfcatch

2002-02-04 Thread Kola Oyedeji
-Original Message- From: Kola Oyedeji [mailto:[EMAIL PROTECTED]] Sent: 04 February 2002 15:20 To: CF-Talk Subject: RE: Cftry/cfcatch cferror is exactly what you are looking for! Kola Oyedeji Web developer Macromedia Certified Advanced ColdFusion 5 Developer ekeda ltd http

Using CFTRY - CFCATCH to rollback database tranaction

2002-02-04 Thread mark kecko
Is there a way to use CFTRY - CFCATCH to rollback all database tranactions within given block? In otherwords, If I'm running 4 update queries and the first three are ok but the last one fails I want to roll them all back. Is there a better way to do this than usign CFTRY - CFCATCH? Mark Kecko

RE: Using CFTRY - CFCATCH to rollback database tranaction

2002-02-04 Thread Haggerty, Michael A.
Mark; Put everything in a CFTRANSACTION type=serializeable block. Should one fail, they are all rolled back. Mike -Original Message- From: mark kecko [mailto:[EMAIL PROTECTED]] Sent: Monday, February 04, 2002 2:41 PM To: CF-Talk Subject: Using CFTRY - CFCATCH to rollback database

RE: Using CFTRY - CFCATCH to rollback database tranaction

2002-02-04 Thread Tyler M. Fitch
/cfcatch can be added so the user doesn't get an error screen, but as far as the functionality you're looking for I think you'll find it with that tag. t ** Tyler M. Fitch Certified Advanced ColdFusion 5 Developer ISITE Design, Inc. 615

CFCatch not displaying all variables

2002-01-18 Thread Brockman, Chuck
I'm using cfmail to notify when a page fails on our site. An example of the code is as follows. Error Type: #cfcatch.type# Message: #replace(cfcatch.message,nbsp;, ,ALL)# cfif cfcatch.type is DATABASENativeErrorCode: #cfcatch.nativeerrorcode#/cfif cfif cfcatch.type is DATABASESQLState:

RE: CFCatch not displaying all variables

2002-01-18 Thread Craig Dudley
Chuck, heres what i do cftry page in here.. cfcatch type=Any cfset x = getHTTPRequestData() cfmail to= cc= bcc= from= subject= type=HTML h1#cgi.server_name#/h1 h2Error in #GetCurrentTemplatePath()#/h2 Error Details;br cfdump var=#cfcatch# hr HTTP Request Details;br cfdump

RE: cfcatch and can't catch

2002-01-09 Thread Chris Norloff
]] Sent: Monday, January 07, 2002 3:08 PM To: CF-Talk Subject: RE: cfcatch and can't catch Thanks for the response. Interesting observation - I AM using a rethrow in a cfcatch, though I don't think that's what's causing the problem. I use a rethrow because timeout errors come in two types

RE: cfcatch and can't catch

2002-01-08 Thread Chris Norloff
. I must have missed that before, or I was reading a different description. In my code it works quite well to cfrethrow from inside a cfcatch block and have it caught by the next cfcatch block - thus, I have two cfcatch type=any blocks. Now that I see it's not supposed to work that way I'll see

cfcatch and can't catch

2002-01-07 Thread Chris Norloff
Here's an odd one - I've got two instances where an error was, at the same time, caught and handled by cfcatch, and NOT-CAUGHT and hit the CFserver. I'll put the shorter of the two examples below - one is the application.log file entry, and the other is our logging of all error.vars available

<    1   2   3   4   >