Dan, sorry I haven't been able to jump into this until now. What's the real problem? Are you saying you're doing the CFIF in the template being pointed to by CFERROR? If so, then I think your problem is that you're using the old-style CFERROR TYPE="REQUEST" which does not process any CF tags in the template. If you look at the source of the page shown on your browser, you'll see the CFIF and CFELSE in there.
Of course, those should never be seen in the source of the page sent to the user, but that proves that the tags aren't being executed. They're just being passed down to the browser, which simply ignores any "HTML tags" it sees but doesn't recognize. Try changing your CFERROR to a TYPE="exception". But be sure to review the slides, as there's more to things than just doing that. Not all errors are caught by this newer style CFERROR. /charlie > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of [EMAIL PROTECTED] > Sent: Monday, May 06, 2002 1:37 PM > To: [EMAIL PROTECTED] > Subject: [CFTALKTor] cferror - This is Strange > > > Inspired by Charlie's lecture at CF North, I started to develop a better > way to handle errors. After trying a couple of things and > wondering why my > results were so strange, I finally developed a very simple error template. > Here is the code. > > <cfif true>yes <cfelse> no </cfif> > > When I create an error and call this template with <cferror>, I get this > output: > > yes no > > Has this sort of thing ever happened to anyone else? How did you > solve it? > > This happened on CF5. > > - > You are subscribed to the CFUGToronto CFTALK ListSRV. > This message has been posted by: [EMAIL PROTECTED] > To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/ > Manager: Kevin Towes ([EMAIL PROTECTED]) > http://www.CFUGToronto.org/ > This System has been donated by Infopreneur, Inc. > (http://www.infopreneur.net) > - You are subscribed to the CFUGToronto CFTALK ListSRV. This message has been posted by: "charles arehart" <[EMAIL PROTECTED]> To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/ Manager: Kevin Towes ([EMAIL PROTECTED]) http://www.CFUGToronto.org/ This System has been donated by Infopreneur, Inc. (http://www.infopreneur.net)
