Skip to content

Instantly share code, notes, and snippets.

@atarkowska
Created July 4, 2016 08:54
Show Gist options
  • Save atarkowska/9133b092d3048e692b39f4a14ce2a7d1 to your computer and use it in GitHub Desktop.
Save atarkowska/9133b092d3048e692b39f4a14ce2a7d1 to your computer and use it in GitHub Desktop.
CORS
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>load demo</title>
<style>
body {
font-size: 12px;
font-family: Arial;
}
</style>
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<script>
$(document).ready(function () {
$.getJSON('http://idr-demo.openmicroscopy.org/webclient/api/annotations/', { 'type': 'file', 'screen': 202 }, function(data) {
$.each(data, function(index, element) {
$('body').append($('<div>', {
text: element
}));
});
});
});
</script>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment