Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Using chrome to open a crm entity webpage, it shows "script error", however using IE to open the same webpage, it is ok.

Posted on by 378

Hi,

I guess this may be a cross-origin problem, however it still not work after I set "--disable-web-security --user-data-dir=C:\MyChromeDevUserData" in the chrome, it shows "One of the scripts for this record has caused an error. For more details, download the log file. ReferenceError: $ is not defined at onload ", but using IE to open it is perfectly normal. I want to use chrome to debug, but i don't know how to setup this chrome or modify my js script to make it work. 

*This post is locked for comments

  • Stone Huang Profile Picture
    Stone Huang 378 on at
    RE: Using chrome to open a crm entity webpage, it shows "script error", however using IE to open the same webpage, it is ok.

    Thank you for your quick reply! It works well in the IE, but all the browsers except IE have this problem. I open "display mixed content" in the IE. I also tried to open mixed content in the chrome, but the problem still exists.

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Using chrome to open a crm entity webpage, it shows "script error", however using IE to open the same webpage, it is ok.

    Hi,

    The error says "$ is not defined at onload" seems JQuery reference is missing in the form onload or somehow your JS code is getting loaded as before that some error occurred.

    Try to debug all onload method and find where exactly the error is happening.

    Did you tired to enable script options in the Internet Explorer ? You should get the error in Internet explorer as well I am assuming.

    In addition please share your code , so that it will help to identify where exactly your code is breaking.  

  • Stone Huang Profile Picture
    Stone Huang 378 on at
    RE: Using chrome to open a crm entity webpage, it shows "script error", however using IE to open the same webpage, it is ok.

    But I think my this problem refer to cross-origin, and it can work if I use IE but not chrome or other. I just want to debug it with chrome. Do you have any other suggestions?  

  • Stone Huang Profile Picture
    Stone Huang 378 on at
    RE: Using chrome to open a crm entity webpage, it shows "script error", however using IE to open the same webpage, it is ok.

    But I think my this problem refer to cross-origin, and it can work if I use IE but not chrome or other. I just want to debug it with chrome. Do you have any other suggestions?

  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: Using chrome to open a crm entity webpage, it shows "script error", however using IE to open the same webpage, it is ok.

    Hi,

    You can refer below articles on how to debug the JS.

    blogs.msdn.microsoft.com/.../debugging-custom-javascript-code-in-crm-using-browser-developer-tools

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans