what is the content of the templates that you are calling, in the event of
cferror?  

Only minimal cfcode is allowed, basically <cfoutput>Whichever error
variables your exception creates</cfoutput>.  You can also do whatever
standard html you want.  (I suspect this is so you won't create an exception
and start an infinite loop) 

To do other processing on it, you would need to hit another page.  I
accomplish this by creating a form on the template page. with all of the
error scoped variables being the values of my hidden form fields, display
some type of "happy" error message, and the body tag has an
onLoad="setTimeout('document.forms[0].submit();',6000)" to send it to
another page after enough time to read the page.  This next page can do any
cfm processing.

-----Original Message-----
From: Lawrence Smith [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 20, 2000 1:01 AM
To: CF-Talk
Subject: cferror and exceptions


Hi All

We are trying to utilise one of the new CF4.5 features where you can catch 
exceptions using cferror instead of using cftry and cfcatch.

However, our host is on 4.5 and it is not working - anyone else had this 
experience of know of a bug/solution?

Many thanks!
Lawrence Smith



----------------------------------------------------------------------------
--------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]

Reply via email to