Greg Oks
Greg Oks

Reputation: 2730

Reference jquery from aspx webpage in CRM 2011

I've created a web resource with the jquery script, this is the url:

"http://dynamics:port/somelib/WebResources/new_orgName/scripts/jquery1.7.2.min"

I've created a new aspx web page and put it in the navbar in 'account' form.

I've added to the 'account' form properties the jquery script, but when the aspx webpage loads, it doesnt recognizes the "$" symbol of jquery.

How do I reference the jquery from the webpage? Do I still need specifically reference the jquery file from the webpage?

Upvotes: 0

Views: 642

Answers (1)

Tats_innit
Tats_innit

Reputation: 34117

As per our conversation above:

Add this in your page top or master page.

Scripts

<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>‌

​<script type="text/javascript" src="http://code.jquery.com/ui/1.8.18/jquery-ui.min.js"></script>

further if you have any conflict also look into .noConflict API.

< according to your need / purpose > use it either way ; or Is it safe to reference google's JQuery library? Might help to make decision.

Rest this will help the cause.

Upvotes: 2

Related Questions