Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta name="viewport" content="width=device-width" />
- <meta http-equiv="x-ua-compatible" content="IE=11, IE=Edge" /> <!-- Use Internet Explorer 11 and above Standards mode -->
- <title>Instrumentation Data</title>
- <script type="text/javascript">
- var urlToGet = "/Sage300/OnPremise/Core/Instrumentation/Get";
- var instruAjax = {
- call: function (actionUrl, succussCallBack) {
- $.ajax({
- type: "Post",
- url: actionUrl,
- data: {},
- success: succussCallBack
- });
- }
- };
- var instruSuccess = {
- get: function (result) {
- $("#sessionPoolData").text("");
- $("#sessionPoolData").append("Session Pools ( Total : " + result.SessionPools.length + " ) - Sessions ( Total : " + result.TotalSessionCount + " )"); // extract this, result.TotalSessionCount
- // More code
- }
- };
- $(function () {
- instruAjax.call(urlToGet, instruSuccess.get);
- });
- </script>
- </head>
- <body>
- <div id="sessionPoolData">
- </div>
- </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement