Skip to content

Instantly share code, notes, and snippets.

@dydx
Created March 25, 2015 06:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dydx/9c606a58be795f171508 to your computer and use it in GitHub Desktop.
Save dydx/9c606a58be795f171508 to your computer and use it in GitHub Desktop.
work-handler-snippet
$(document).ready(function() {
$.getJSON('http://192.168.3.193:8000/api/all', function(data) {
data.forEach(function(data) {
console.log(data);
$("#work-list").append(
"<li><a href='/admin/work-order.html#"+data._id+"'>"+data.properties.name+"</a></li>"
);
})
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment