1
<!DOCTYPE html>
2
<html>
3
<head>
4
    <meta charset="utf-8" />
5
    <title>Wialon Playground - Management Driver</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
<div id="base">
12
    <form  id="driver_data">
13
      <p>Resource: <select id="resource" name="resource"><option value="">-- select resource --</option></select></p>
HTML
17
 
1
.btn {
2
  cursor:pointer;
3
}
4
div {
5
    margin-bottom:20px;
6
}
7
#log_cont {
8
    background-color: #EEEEEE;
9
    height: 150px;
10
    overflow-y: scroll;
11
    font-size:75%;
12
}
13
#log_cont table {
14
    width:100%;
15
}
16
17
CSS
228
 
1
var createDriver = {
2
    init: function () {
3
        var self = this;
4
        this.res = null;
5
      
6
        this.log("Logged successfully");
7
        this.sess = wialon.core.Session.getInstance();
8
        this.sess.loadLibrary("resourceDrivers");
9
        
10
        // fetch data of resurse
11
        this.getResurse();
12
13
        this.addEventListeners();
14
    },
15
    addEventListeners: function(){
16
        var self = this;
17
JS
Result
Source code of example Close ✕
1
 
1
/*source*/