ThinVNC Javascript Object

Top  Previous  Next

The ThinVNC javascript class contains all the client-side logic for the Web. After it is create, it also needs to be initialized passing the id of the div element that will display the remote desktop, as follows:

 

 

<script type="text/javascript">

 

$(document).ready(function(){

 mythinvnc = new ThinVNC();

 mythinvnc.init({

         divId:'desk',

         scaled : true,

         mouseControl:true

 });

    mythinvnc.connect();

</script>

 

Methods

init

connect

disconnect

refresh

setGrayscale

setKdbControl

setMonitor

setMouseControl

setPixelFormat

setScaled

stop

start

 

Events

 

 

Remarks

The PlatformHTML5 global variable holds a TPlatformHTML5 class object that is automatically instantiated every time your application is executed.

 

See also

Find on the TRemoteInfo and TDevServer topics more information regarding the RemoteInfo and DevServer properties.