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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Referencing javascript web resources in a Dashboard web resource

(0) ShareShare
ReportReport
Posted on by 2,601

I have a dashboard with a component on it which is a web resources comprised of an HTML page with javascript code in it.

In this code I want to use the the javascript samples that come with SDK (SDK.Jquery.js and json2.js).  I've added them to my CRM Solution, however, with a dashboard libraries can't be added as they can with a form.

I've found out where built-in libraries are stored and referenced these, i.e.
<script src="/_static/_common/scripts/jquery1.7.2.min.js"></script>

But the files SDK.Jquery.js and json2.js are nowhere to be found in the C:\Program Files\CRMWeb.

Has anyone accomplished this with a Dashboard?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    jlattimer Profile Picture
    24,562 on at

    Use something like this in the script tag:

    src="/webresources/new_test.js"

    As long as you've uploaded the files as web resources this should work.

  • Verified answer
    CU21020959-0 Profile Picture
    2,601 on at

    Thanks for that - I got it to work though I had to put two dots before the first forward slash- so:

    src="../webresources/new_test.js"

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans