state.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. state_parameter = {};
  2. function state_summary() {
  3. $.ajax({
  4. type : 'get',
  5. dataType : 'json',
  6. url : '../jaxrs/state/summary',
  7. contentType : 'application/json; charset=utf-8',
  8. xhrFields : {
  9. 'withCredentials' : true
  10. },
  11. crossDomain : true
  12. }).always(function(json) {
  13. $('#result').html(JSON.stringify(json, null, 4));
  14. });
  15. }
  16. function state_running() {
  17. $.ajax({
  18. type : 'get',
  19. dataType : 'json',
  20. url : '../jaxrs/state/running',
  21. contentType : 'application/json; charset=utf-8',
  22. xhrFields : {
  23. 'withCredentials' : true
  24. },
  25. crossDomain : true
  26. }).always(function(json) {
  27. $('#result').html(JSON.stringify(json, null, 4));
  28. });
  29. }
  30. function state_organization() {
  31. $.ajax({
  32. type : 'get',
  33. dataType : 'json',
  34. url : '../jaxrs/state/organization',
  35. contentType : 'application/json; charset=utf-8',
  36. xhrFields : {
  37. 'withCredentials' : true
  38. },
  39. crossDomain : true
  40. }).always(function(json) {
  41. $('#result').html(JSON.stringify(json, null, 4));
  42. });
  43. }
  44. function state_category() {
  45. $.ajax({
  46. type : 'get',
  47. dataType : 'json',
  48. url : '../jaxrs/state/category',
  49. contentType : 'application/json; charset=utf-8',
  50. xhrFields : {
  51. 'withCredentials' : true
  52. },
  53. crossDomain : true
  54. }).always(function(json) {
  55. $('#result').html(JSON.stringify(json, null, 4));
  56. });
  57. }