When accessing an .net 3.5 web application in Microsoft Internet Explorer 9, I get the error:

Microsoft JScript runtime error: Unable to get value of the property ‘srcElement’: object is null or undefined

 

When the "Compatibility View" button is pushed the error is resolved, but I am still investigating what the cause of the error is and if it can be fixed without reminding all the users of the website to push the "Compatibility View" button Winking smile

14 Comments

  1. For this specific problem I added the below javascript to the page as a fix …. hackish not a real solution

    function GetEventTarget(a){
    ULSA13:;
    if(!a) return {};
    if(!IsSupportedMacBrowser())
    return a.srcElement;
    if(a.srcElement)
    return a.srcElement;
    return a.target
    }

  2. I got error in IE:

    SCRIPT5007: Unable to get value of the property ‘news_archive_long_desc’: object is null or undefined

    The script line is:
    CKEDITOR.instances.news_archive_long_desc.setData(”);

    Any one knows to solving this problem pls update this

  3. I have the same issue.

    I have a ListBox which have both RequriedFieldValidator and ListSearchExtender. But whenever I change the selection of the ListBox and click anywhere in the page, a JavaScript error occurs. The function that throws the error is ValidatorOnChange, the event is null. This is only happens on IE9.

    Does any know how to fix this? As for Matt’s solution, where do I apply it?

    Gaolai
  4. Gaolai..you are doing exactly what I am doing…with the requiredfield validator and listsearchextender and I have the same error. I get the error on the same function that you do. Were you able to solve it?

    AMMEEk
  5. Any other solutions? I’ve tried Matt’s one, but that function is never fired so just adding that js to my page doesn’t work.

    This is only happens on IE9.

    Thank you.

    dheeraj koli

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.