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?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top