Project

General

Profile

Download (835 Bytes) Statistics
| Branch: | Revision:
1
dojo.provide("evd.rdp");
2

    
3
dojo.require("evd.applet");
4
dojo.require("dojo.string");
5

    
6
(function(/*window*/$, /*dojo*/d){
7
     
8
    $.rdp = {
9
    
10
        start: function(node, args){
11
            // NOTE: something fishy about Rdisplay, although former session
12
            // (socket, streams) are shutdown when we share the JVM -
13
            // because of same jar name - a connection exception is thrown!
14
            // we avoid that by appending a version to the JAR!
15
            $.applet.inject(node, {
16
                archive: '/stabile/static/applet/rdp.jar?v=' + new Date().getTime(),
17
                code: "net.propero.rdp.applet.RdpApplet",
18
                port: args.port,
19
                host: args.host,
20
                title: args.title,
21
                log_level: "warn"
22
            });
23
        }
24
    };
25

    
26
})(window, dojo);
27

    
(3-3/6)