- Mon Aug 28, 2017 6:17 am
#794971
Hi
I try to call a trigger from Javascript, I have this script in Javascript Dynaform :
I try to call a trigger from Javascript, I have this script in Javascript Dynaform :
Code: Select all
and in trigger i have this script :
$.ajax({
url: host+"/api/1.0/"+ws+"/cases/"+app_uid+"/execute-trigger/"+trig_uid+"", // endpoint URL
data: {}, // a GET request does not send parameters. But in case of other type of requests, data could be sent here
type: "PUT",
beforeSend: function(xhr){xhr.setRequestHeader('Authorization', 'Bearer '+token);}, // Header with the access token
success: function(xhr, status, error){
alert("SUCCESS!!"+xhr.responseText);
},
error: function(xhr, status, error){
alert("ERROR!!"+error);
}
});
Code: Select all
But i have this message ==> SyntaxError: Unexpected end of JSON input@@textPanel="Coooooooooooooooool";