<script type="text/javascript">
function CallAzurefunction() {
debugger;
var data = {
'name': 'testazure function'
};
var req = new XMLHttpRequest();
req.open("POST", "AzureFunctionUrl&name=test", true);
req.setRequestHeader("Accept", "application/json");
req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
req.setRequestHeader("crossDomain", true);
req.onreadystatechange = function () {
if (req.readyState == 4 /* complete */) {
req.onreadystatechange = null;
if (req.status == 200) {
// alert("Project created");
} else {
//alert(error.message);
}
}
};
//req.send(JSON.stringify(data));
req.send();
}
</script>
function CallAzurefunction() {
debugger;
var data = {
'name': 'testazure function'
};
var req = new XMLHttpRequest();
req.open("POST", "AzureFunctionUrl&name=test", true);
req.setRequestHeader("Accept", "application/json");
req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
req.setRequestHeader("crossDomain", true);
req.onreadystatechange = function () {
if (req.readyState == 4 /* complete */) {
req.onreadystatechange = null;
if (req.status == 200) {
// alert("Project created");
} else {
//alert(error.message);
}
}
};
//req.send(JSON.stringify(data));
req.send();
}
</script>