i have added button in command bar of "ribbon workbench".
and button calling javascript method, code below:
/// <reference path="new_/scripts/jquery_1.9.1.js" /> function callpotentialduplicateservice() { $.ajax({ type: "post", datatype: "json", contenttype: "application/json; charset=utf-8", url: 'http://*******.svc/methodname', success: function (data) { result = data.result; alert(result); }, error: function (xmlhttprequest, textstatus, errorthrown) { alert("err") alert(xmlhttprequest.status); } }); }
now when try same in visual studio, working fine. in crm not working.
how should add jquery-1.9.1.js file in above method.
you need add jquery script file part of action , make command isnan.
include jquery in command before include custom script file.
Comments
Post a Comment