x
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
    <meta charset="utf-8" />
5
    <title>Wialon Playground - Forum 11659</title>
6
    <script type="text/javascript" src="//code.jquery.com/jquery-latest.min.js"></script>
7
    <script type="text/javascript" src="//hst-api.wialon.com/wsdk/script/wialon.js"></script>
8
</head>
9
<body>
10
    
11
<table><tbody id="table"></tbody></table>
12
13
<hr>
14
15
<div id='log'></div>
16
17
</body>
18
</html>
19
HTML
1
 
1
#log { border: 1px solid #c6c6c6; }
CSS
127
 
1
/*
2
 * https://forum.gurtam.com/viewtopic.php?id=11659
3
 */
4
5
// Token that will be used for auth
6
// For more info about how to generate token check
7
// http://sdk.wialon.com/playground/demo/app_auth_token
8
var TOKEN = '5dce19710a5e26ab8b7b8986cb3c49e58C291791B7F0A7AEB8AFBFCEED7DC03BC48FF5F8';
9
10
// Print message to log
11
function msg(text) { $("#log").prepend(text + "<br/>"); }
12
13
// will be called after DOM is ready and we are successfully logged in
14
function init() {
15
    var session = wialon.core.Session.getInstance();
16
17
    session.loadLibrary('resourceZones');
JS
Result
Source code of example Close ✕
1
 
1
/*source*/