[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

How to get line number and message for error event via EventListener or attachEvent?

Asked by mdaoudi in JavaScript, Firefox Web Browser, Opera Web Browser

Tags: Javascript, FireFox 2.0+, IE 7+, Opera 8+

Instead of onError I want to use addEventListener/attachEvent to listen for error events.

I can get the element that caused the error via the event target or srcElement.
But I haven't found a way to get the line number or error message  that I would get by using onError.
How can I get this information?
 
Related Solutions
Keywords: How to get line number and message f…
 
Loading Advertisement...
 
[+][-]11/29/08 09:18 AM, ID: 23060246Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/29/08 09:20 AM, ID: 23060251Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091118-EE-VQP-93 - Hierarchy / EE_QW_2_20070628