Advertisements
Home > CRM 2011, JScript > “$ is undefined” error while calling OData Service using JQuery & CRM 2011

“$ is undefined” error while calling OData Service using JQuery & CRM 2011

Hi,

In CRM 2011, you might have experienced “$ is undefined” error, while calling OData Service using JQuery.

Reason’s: –

  • JQuery native support is not available in Microsoft CRM 2011.
  • This was the exact reason why the Javascript was unable to recognize ‘$’ symbol.

Fix:-

The easiest way to get this working is by creating a new “Webresource”  and adding “Jquery min” file to it.

Steps to follow :-

  1. Go to http://jquery.com and then to Download the Jquery file  (i.e., jquery-1.6.2.min.js)
  2. find the latest Jquery min (select the minified version, at the time of writing ‘jquery-1.6.2.min.js‘ was the latest)
  3. Now go to CRM 2011 and create a web resource
  4. Add the new Web resource by name JQueryMin1.6.2 (JQuryMin<Verion>)
  5. Upload the Downloaded file to JQuery to this web resource.
  6. Now add this web resource to which ever form you want to use JQuery API

Hope this helps 🙂

Advertisements
  1. No comments yet.
  1. November 30, 2014 at 5:09 AM

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: