RE: What to do if jQuery is used?
Hello Andrii,
if so then on page i am getting the $ is not defined error which internally an ajax call.
below is the method which throwing an error.
queryMultipleEntities: function (oDataSelect) {
var resultEntities = null;
// Perform a synchronous oData retrieve
$.ajax({
type: "GET",
async: false,
contentType: "application/json; charset=utf-8",
datatype: "json",
url: crmUtilities.CRM_ORG_PATH + oDataSelect,
beforeSend: function (XMLHttpRequest) { XMLHttpRequest.setRequestHeader("Accept", "application/json"); },
success: function (data, textStatus, XmlHttpRequest) {
// The query was successful, so check if there are any records and return them
if ((data != undefined) && (data.d != undefined) && (data.d.results.length > 0)) {
resultEntities = data.d.results;
}
},
error: function (XmlHttpRequest, textStatus, errorThrown) { alert('OData Select Failed: ' + oDataSelect); }
});
return resultEntities;
},