Download ThinRDP Workstation User's Guide
Transcript
Advanced Settings
69
5. Also inside the <head> tag, add one more <script> tag. This one will be used to create the
connection with the remote desktop. If the page already has a script tag, just append this code into
the $(document).ready method.
The GetThinRDP method creates the object that handles the ThinRDP SDK functionality. It has two
arguments: the ThinRDP server URL and the connection mode in which ThinRDP SDK will work.
The connect method is the method that creates the connection and positions it on the structure you
have selected (div, iFrame, Window).
<script type="text/javascript">
var mythinrdp;
$(document).ready(function () {
mythinrdp = GetThinRDP("ThinRDP URL", connection mode);
mythinrdp.connect({
//Read the "The connect method" to complete
all the expected parameters
});
});
</script>
a. Substitute the "ThinRDP URL" argument for the getThinRDP method with the ThinRDP
protocol + Computer's IP + Port, following this format: https://127.0.0.1:8443.
b. Substitute the getThinRDP second argument with the connection mode:
Mode
Local
(remote =false)
Remote
(remote=true)
How it w orks
Where you can place
the connection
The connection is embedded in the same page
and after the connection is established, the data
exchange is sent directly to your w ebsite/
application, through the sdk.min.js library.
div
The sdk.min.js posts into ThinRDP Server and all
the remote desktop data is exchanged through
the ThinRDP Server JavaScript scripts.
The connection w ill occupy the w hole target
w indow area (w indow or iFrame).
brow ser w indow
or
IFrame
c. Find out in the next sub-topic ("Connect method") how you should complete the parameters that
go along with the connect method, and substitute the text on the connect
method.
6. If you are using the "Local" connection mode you can code special behaviours for the available
ThinRDP SDK events and keystrokes,.
© 2014, Cybele Software, Inc.