Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. <html>
  2. <head>
  3. <meta name="viewport" content="width=device-width" />
  4. <meta http-equiv="x-ua-compatible" content="IE=11, IE=Edge" /> <!-- Use Internet Explorer 11 and above Standards mode -->
  5. <title>Instrumentation Data</title>
  6. <script type="text/javascript">
  7. var urlToGet = "/Sage300/OnPremise/Core/Instrumentation/Get";
  8. var instruAjax = {
  9. call: function (actionUrl, succussCallBack) {
  10. $.ajax({
  11. type: "Post",
  12. url: actionUrl,
  13. data: {},
  14. success: succussCallBack
  15. });
  16. }
  17. };
  18.  
  19. var instruSuccess = {
  20. get: function (result) {
  21. $("#sessionPoolData").text("");
  22.  
  23. $("#sessionPoolData").append("Session Pools ( Total : " + result.SessionPools.length + " ) - Sessions ( Total : " + result.TotalSessionCount + " )"); // extract this, result.TotalSessionCount
  24.  
  25. // More code
  26. }
  27.  
  28. };
  29.  
  30. $(function () {
  31. instruAjax.call(urlToGet, instruSuccess.get);
  32. });
  33.  
  34. </script>
  35. </head>
  36. <body>
  37. <div id="sessionPoolData">
  38. </div>
  39. </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement