web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
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.

(1) ShareShare
ReportReport
Posted on by 455

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

I have the same question (0)
  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    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

  • Stone Huang Profile Picture
    455 on at

    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
    455 on at

    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
    gdas Profile Picture
    50,091 Moderator on at

    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
    455 on at

    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.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans