Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

What to do if jQuery is used?

Posted on by

Hello All Expert,

what will be the best approach to remove legacy features from java scripts which contains jquery library as  a web resource.

I come to know this because i have used the custom  validation tool and which is showing the messages for the jQuery legacy feature.

*This post is locked for comments

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: What to do if jQuery is used?

    Have you removed jQuery webresource from references on your form? If yes - this is the answer because $ is synonymous of jQuery. If you still have that reference then you possibly have issue described here - mcaconnect.com/.../solving-jquery-issues-in-microsoft-dynamics-crm-online-2015

  • EmployeeOcta Profile Picture
    EmployeeOcta on at
    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;

       },

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: What to do if jQuery is used?

    If you use jQuery for ajax calls only - that should be supported. If you use it for some DOM manipulations like hiding or relabeling of elements - it is not.

  • EmployeeOcta Profile Picture
    EmployeeOcta on at
    RE: What to do if jQuery is used?

    Hello Andrii,

    Do the CRM 2016 on premise supports to jquery.?

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: What to do if jQuery is used?

    Hello,

    I believe that if you want to remove all jQuery references you will have to rewrite all the code that uses jQuery.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans