applications.js 514 B

123456789101112131415161718
  1. function applications_get() {
  2. var str = '<table border="1" width="100%">';
  3. str += '<tr><td><textarea style="width:95%; height:240px" id="applications"/></td></tr>';
  4. str += '</table>';
  5. $('#content').html(str);
  6. $.ajax({
  7. type : 'get',
  8. dataType : 'json',
  9. contentType : 'application/json; charset=utf-8',
  10. url : '../jaxrs/applications',
  11. xhrFields : {
  12. 'withCredentials' : true
  13. },
  14. crossDomain : true
  15. }).done(function(json) {
  16. $('#result').html(JSON.stringify(json, null, 4));
  17. });
  18. }