I tried this to make a web service call. Is it possible to embed jQuery
in the PDF form or what would be the correct way to do this? I am using
AEM 6.2 function
CallRESTWCF() { var caseId = $("#txtCaseId").val(); //I've also tried
passing txtCaseId.rawValue varType = "GET"; varUrl =
"http://localhost/WCF_Service/ABCD.svc/" + "GetPersonInfoByCaseIdREST/"
+ caseId; //Data = '{"Id": "' + caseId + '"}'; varContentType =
"application/json; charset=utf-8"; varDataType = "json"; varProcessData
= true; $.ajax({ type: varType, //GET or POST or PUT or DELETE verb url:
varUrl, // Location of the service data: varData, //Data sent to server
contentType: varContentType, // content type sent to server dataType:
varDataType, //Expected data format from server processdata:
varProcessData, //True or False success: function (msg) {//On
Successfull service call //alert(msg); ServiceSucceeded(msg); }, error:
function () { alert("service call failed"); } }); }