473,378 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

JS Error Messaging suggestions

I am at a point of deciding on the future of how my frameworks present
errors to users.

Currently, I capture all errors with window.onerror and I create a big
ugly JavaScript dump that includes: Error message, Line number, source
file (moz), stack dump, date, url, other meta data and some contact
information.

Needless to say, it is verbose and ugly but it has as much information
as I can get to debug the issue but form a user perspective, it must be
scary.

I am now considering other options such as showing a nice floating and
clickable message that an error ocurred. Clicking may give them the
option to read the message, send the message to dev team and with
possible debugging data.

For those who are maintaining huge JS applications, what is your ideal
way of handling JS error and keeping the users in the know without
scaring them with the gory details?

Your insight is greatly appreciated.

JsD

Oct 26 '05 #1
2 1129
> For those who are maintaining huge JS applications, what is your ideal
way of handling JS error and keeping the users in the know without
scaring them with the gory details?


I have found that the best comprimise is to create a form with all the
error information as hidden fields, display a simple message - "sorry
an error occoured" or the such - with a submit button to report it and
a message letting the user know that reporting the error will help
refine the application, maybe a couple of "what were you doing that
f**ked up my app?" type text fields.

Bonus points for submitting the form using AJAX or something else
completely invisible when possible, and displaying the button as a
fallback otherwise. Be sure to change the message about how the user
should report the error to let them know that it has already been
reported.

Oct 26 '05 #2
> "what were you doing that f**ked up my app?"

My thoughts exactly =)

Thanks for the Info

Oct 26 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jagdeesh | last post by:
Hai Colleagues, I am using Tomcat 4.1.24 and JDK 1.4.0_03 in my winXP machine. I've transferred a set of folders(containing jsp files) into tomcat's webapps directory(to /webapps/bob ,...
0
by: Dennis Owens | last post by:
Read below for previous conversation. We are developing an application that will some day run on anything from a computer down to a PDA (this is were the Lightweight comes in). The messaging...
1
by: ptdaw | last post by:
After spending a little time reading the documentation, I attempted to add some messaging code to my VB.Net project, only to discover that I couldn't get past my Imports System.Messaging ...
3
by: JasonH | last post by:
Hi all, I have a client that wants to allow users to signup for a contest using text messaging. I have no idea where to start with this, so hoping someone here has some experience with this. ...
4
by: SRLoka | last post by:
I have an application that has five threads. All five threads write to the same MSMQ. All five threads are using the same global instance to send data to the MSMQ server(on same machine)....
1
by: Ramanfromoz | last post by:
Hi, Developing a new we application. Everything okay on my local WIN XP PROFESSIONAL, IIS 5.0 running locally. The website is running smoothly. Now, the same code I am copying over to a...
3
by: Ibrahim. | last post by:
Hello, Im getting the following error when mail is sent from ASP.NET 2.0 website. CDO.Messaging componenet is used for sending mail. " The message was not able to be transmitted to the SMTP...
2
by: Richard | last post by:
Our web programmer was looking in his application log an found the following error: 2006-08-31 16:33:35,129 ERROR org.hibernate.util.JDBCExceptionReporter - < SQL0723N An error occurred in a...
2
by: mirin | last post by:
From my ASP.NET 2.0 web application running on a Windows 2003 server, I want to write a message to a WebSphere messaging queue running on a UNIX Solaris machine. I have the destination hostname,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.