- If you must use Jquery on a form, you can perform the following steps:
- Add jQuery library to the form properties
- Create a new alias to access jQuery instead of $. (e.g., $xyz)
- Declare the alias with jQuery.noConflict()
- An example of what this would look like is var $xyz = jQuery.noConflict();
- From this point on you can make Jquery calls using $xyz.ajax() within your code
- If you’re not using a third party tool or the SDK, you can directly use the XMLHTTPRequest object for AJAX calls. Third party tools and the SDK are just wrappers around this object anyway.
- We recommend using the XRMToolKit library instead, as this library uses the XMLHTTPRequest object, and also provides common functionality for accessing CRM
- Note: XRMToolKit has methods that use Jquery, however these methods are in the “Extensions” namespace, and are “unsupported” as also declared in the toolkit
If you have other jQuery issues, please tell us what you encountered (and if/how you solved it) in the comments below. We may even use your feedback for a future blog post on this subject!
Do you have In-House Dynamics Support or Outsourced Support?
Many companies think they are saving by keeping their Dynamics support in house, but that is not always the case. Take our quick, free survey to receive an instant price quote for our unlimited Dynamics support plan!RECEIVE AN INSTANT PRICE QUOTE
Author: Tunc Samiloglu, Principle Consultant, MCA Connect