Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
mix-tape developer #1
Error handling and Look and feel
I'm developping an Error Handling Framewok and I try to display error message
in the page has occured the exception (a form for example) without changing the
look and feel (or for exaample displaying the error message above the form)!
Is it possible using cferror and not cfcatch?
If it is, please explain to me how!
thx
S@id+
mix-tape developer Guest
-
Error handling
In you provide labels or line numbers in your code, you can use ERL to get the most recent label/line number. Using line numbers does slow down... -
CF Error Handling
I currently have no error handling with the website I am working with. I want to start integrating it in. The error I am most concerned about is... -
better error handling...?
test guy wrote: Do a query on the record keys prior to inserting. If it is found, return to an error page/prior page with the information... -
Error handling and custom error messages
How can I get more informations about last error? I get the last error number with @@ERROR, but I don't know what is the source of error. For... -
Error handling in SQL
Hi. I came across following stored procedure. CREATE PROCEDURE . @iId int, @iErrorCode int OUTPUT AS -
mix-tape developer #2
Re: Error handling and Look and feel
Please help me if you know!
S@id+
mix-tape developer Guest
-
Stressed_Simon #3
Re: Error handling and Look and feel
You are going about this entirely the wrong way. You do not really need to use
cferror or cfcatch.
cferror is to help maintain your application when an unexpected error occurs.
And cftry and catch are mainly used to cope with stuff that might not always
work.
To handle form validation, you should post the form to the submitting page.
Use cfparam to set defaults for the form varaibles. I normally use a hidden
form field to represent if the form has been submitted. Then check each field
for your chosen provisos. ie is it a valid email address, is it too long or too
short.
Sadly form validation is unavoidable in this business and you should be able
to find countless tutorials on it if you search the internet.
HTH
Stressed_Simon Guest



Reply With Quote

