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
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.
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.
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?
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?
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
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156