Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <link href="http://localhost:9510/tm1web/css/cubeviewer.css"
- rel="stylesheet" type="text/css" />
- <link href="http://localhost:9510/tm1web/css/websheeter.css"
- rel="stylesheet" type="text/css" />
- <link href="http://localhost:9510/tm1web/scripts/tm1web/themes/tm1web/tm1web.css"
- rel="stylesheet" type="text/css" />
- <link href="http://localhost:9510/tm1web/scripts/dijit/themes/claro/claro.css"
- rel="stylesheet" type="text/css" />
- <link href="http://localhost:9510/tm1web/scripts/dojo/resources/dojo.css"
- rel="stylesheet" type="text/css" />
- <script type="text/javascript"
- src="http://localhost:9510/tm1web/scripts/tm1web/common/DjConfig.js"></script>
- <script language="javascript" src="http://localhost:9510/tm1web/scripts/dojo/dojo.js"
- type="text/javascript"></script>
- </head>
- <body>
- <body class="claro tm1web">
- <script type="text/javascript">
- {
- var xhr = new XMLHttpRequest();
- xhr.open("POST", "http://localhost:9510/tm1web/dwrx/jsonp/TM1Service/login", true);
- xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
- xhr.onload = function() {
- var response = JSON.parse(xhr.responseText).reply;
- if(response != null) {
- var sessionToken = response.sessionToken;
- console.debug("Session token: " + sessionToken);
- }
- else {
- console.error("Login failed.");
- }
- }
- var params = "param0=localhost¶m1=EPMNP¶m2=service_cognosmon_uk¶m3=12345";
- xhr.send(params);
- };
- </script>
- </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement