PDA

View Full Version : How to find javascript error in IE. Firefox work well but IE does Not



pankaj.ghadge
10-17-2008, 11:21 AM
How to find javascript error in IE.
In fire firefox we see the error and warning in (Tools->Error_Console).
But in IE we see the error on left hand button side.(There is error on page something like that). when we click on that we see the error.

But I am working on one application..................
there is one inbuilt javascript function

onerror = function(e)
{
alert(e);
}

In firefox i don't get any alert message.......or even
onerror = function(e) does not get called. or Error_console i don't see any error ..it is easy to debug in firefox ............

but in IE that onerror = function(e) function get called . and my application get stop.
even in IE i haven't get the error line number .......................In IE onerror = function(e) that function get called means their is error but it does not show any message like (There is error on page) on the bottom side..........

So my question is how to debug in IE.......how to find error line number............
Firefox work well but IE does not...................
So please guide me....................
I need U R Help .........................

khalidmehmoodawan
10-17-2008, 12:03 PM
Tools >> Internet Options >> Advanced Tab >> Browsing >> Check the "Display a notification about every script error" checkbox and click OK

pankaj.ghadge
10-17-2008, 01:22 PM
That option is enabled still IE is not showing any error message................
I am using frame may be thats why it is not showing me any message or something else
i don't know

this function is still getting called .............
onerror = function(e)
{
alert(e); // showing an error like Objectx is null or not an Object in IE
}

please tell me the solution ............................