Login

Latest postings for ASP/ VbScript.
Daily Code Email
|
|
| |
|
|
|
Submitted on: 4/3/2001 11:15:20 PM
By: Hendry Cahyadi
Level: Intermediate User Rating:
By 5 Users Compatibility:ASP (Active Server Pages), HTML
Users have accessed this article 29075 times. | (About the author) |
| | | Creating a user friendly error handler. This Friendly Error Handler pops up a VB liked dialog box to display error messages. This article has accompanying files | |
 | | | Terms of Agreement:
By using this article, you agree to the following terms...
1) You may use
this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
2) You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.
3) You may link to this article from another website, but ONLY if it is not wrapped in a frame.
4) You will abide by any additional copyright restrictions which the author may have placed in the article or article's description.
|
Error Handler
is the most critcal thing to be considered when you build your application.
The more complex your application, the more probability of bug occurs inside
your application. Novice programmers usually never or hardly think about this,
so when an unexpected error occurs, the application will throw the user with
a very confusing words (the error text from script engine) and sometimes it
makes our user get more frustration since they don't know what happened and
what to do. Some more experience programmers have tackle this issue but usually
the application still shows the error text (but this one may be formatted well).
Howerver, the error text is not a bad thing as it's a mean to tell the support
person of what happened to our application. Some programmers prefer to rewrite
the error message so it will be more meaningful to our user. But some of our
users really allergic to see any error message as they got more frustration
with their work.
Now, Friendly
Error Handler will handle this thing. Instead of just showing the error text,
this error handler will pop up a modal dialogbox (looks like VB message box).
At first, this message box shows a generic message to tell our user that there's
an error inside the application, if our user get more interested to know the
details of the error, he could click on the detail button that will resize the
message box and shows error message in more detail. If he doesn't like the detail
message, he can click again on that button (the label changed!) and the message
box will resize to its original size and not display the error details. Along
with the message and detail button there're also other buttons, i.e.: Ok button
and Contact Webmaster button. The Ok button will close the dialog box and bring
back the user to the page where he comes from. The Contact Webmaster button
will get the user to a page that has been designed for error or bug reporting
center. The message box doesn't have to just have these buttons, feel free to
extend it to fit your needs.
So the main goal
of our error handler here is to make our user more happy. Have
fun exploring the code. | |
Download article
Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.
Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.
FOR YOUR OWN SAFETY, PLEASE: 1)Re-scan downloaded files using your personal virus checker before using it. 2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com
| Terms of Agreement:
By using this article, you agree to the following terms...
1) You may use
this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
2) You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.
3) You may link to this article from another website, but ONLY if it is not wrapped in a frame.
4) You will abide by any additional copyright restrictions which the author may have placed in the article or article's description.
| |
| Other 3 submission(s) by this author
| | | |
Report Bad Submission | | | | | Your Vote! | |
See Voting Log | | | | Other User Comments |
5/17/2001 9:53:58 AM: Robert Long
Awesome... (If this comment was disrespectful, please report it.)
|
7/14/2001 4:25:36 PM: Kenny McCormick
dude whats the code?
(If this comment was disrespectful, please report it.)
|
7/14/2001 4:26:06 PM: Kenny McCormick
put the code in the read me (If this comment was disrespectful, please report it.)
|
7/20/2001 3:11:13 AM: Hendry Cahyadi
Kenny McCormick,
The code is in *.asp files and the main logic is in errHandler.asp.
Regards,
Hendry (If this comment was disrespectful, please report it.)
|
3/27/2004 5:35:55 AM:
Whats the code you used to call the message pop up window>? (If this comment was disrespectful, please report it.)
| | |
Add Your Feedback! | Note:Not only will your feedback be posted, but an email will be sent to the code's author from the email account you registered on the site, so you can correspond directly.
NOTICE: The author of this article has been kind enough to share it with you. If you have a criticism, please state it politely or it will be deleted.
For feedback not related to this particular article, please click here. |
To post feedback, first please login. | |
|