Results 1 to 3 of 3

Thread: How to find javascript error in IE. Firefox work well but IE does Not

  1. #1
    Join Date
    Oct 2008
    Posts
    40
    Thanks
    3
    Thanked 1 Time in 1 Post

    Smile How to find javascript error in IE. Firefox work well but IE does Not

    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 .........................

  2. #2
    Join Date
    Oct 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Red face Enable notification of javascript errors in Internet Explorer (IE)

    Tools >> Internet Options >> Advanced Tab >> Browsing >> Check the "Display a notification about every script error" checkbox and click OK

  3. #3
    Join Date
    Oct 2008
    Posts
    40
    Thanks
    3
    Thanked 1 Time in 1 Post

    Smile

    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 ............................

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •