Created
May 14, 2018 11:50
-
-
Save mikerodionov/f2099fcd7e85daeb80b8e2676ffe295b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script type="text/javascript" src="jquery-3.3.1.js"></script> | |
<script type="text/javascript"> | |
$.ajaxSetup ({ | |
cache: false // Disable caching of AJAX responses | |
}); | |
$(document).ready(function() { | |
$.ajax({ | |
type: 'GET', | |
url: 'https://k2.denallix.com/Api/Workflow/preview/workflows/', | |
dataType: 'json', | |
crossDomain: true, | |
xhrFields: { | |
withCredentials: true | |
}, | |
success: function(json_data) { | |
console.log('success'); | |
$("#wfs").html(JSON.stringify(json_data)); | |
}, | |
error: function() { | |
alert('Failed!'); | |
}, | |
}); | |
}); | |
</script> | |
</head> | |
<body> | |
<span id='wfs'>(Result)</span> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment