HTML Pages and Customization

You can edit the provided HTML pages with Notepad or Notepad++ to customize it user interface.

index.html page

The index.html is located in Web Server root folder path.

C:\Program Files (x86)\TSplus\Clients\www

Index.html page is the default web page. It’s like a front-end Portal page with links to the connection pages which are located in \www\ folder.
This web page can be copied and renamed to allow multiple configuration and / or logon informations.
For example let's copy and rename index.html into index2.html, this page will be available using this url http://localhost/index2.html

Screenshot 1-1

Beware that if you change the "index.html" file name to "index2.html" and that you are using the Web Applications Portal, then you must change the following variable on this file: "page_configuration["applications_portal"] = "index_applications.html" to "index2_applications.html" then rename the "index_applications.html" file into "index_2applications.html".

The default index.html includes all possible options:

You will be able to change header and footer in the Web portal design feature on the web portal preferences tile of the Web tab.

By editing the index.html web page, you will have access to various settings.

// --------------- Access Configuration ---------------
var user = "";                   // Login to use when connecting to the remote server (leave "" to use the login typed in 
                                    this page)
var pass = "";                   // Password to use when connecting to the remote server (leave "" to use the password typed
                                    in this page)
var domain = "";                 // Domain to use when connecting to the remote server (leave "" to use the domain typed in 
                                    this page)
var server = "";        // Server to connect to (leave "" to use localhost and/or the server chosen in this page)
var port = "";                   // Port to connect to (leave "" to use localhost and/or the port of the server chosen in
                                    this page)
var lang = "as_browser";         // Language to use
var serverhtml5 = "";   // Server to connect to, when using HTML5 client
var porthtml5 = "3389";          // Port to connect to, when using HTML5 client
var cmdline = "";                // Optional text that will be put in the server's clipboard once connected
// --------------- End of Access Configuration ---------------

For example I will preset demo/Psw as login/password by editing:
var user = "Demo"; var pass = "Psw";

Doing so, pre filled credentials are made visible at each visit of the portal.

Another very important configuration file is settings.js, located in C:\Program Files (x86)\TSplus\Clients\www\software\html5:

Screenshot 1-2

This file contains various settings for the HTML5 web client like disabling sound, clipboard or allowing session reconnection if browser tab is closed.

I have set an example of message to be used below :

W.pageUnloadMessage = "Closing this tab will disconnect your remote session, are you sure ?"; //Dialog to return when page unloads.
//1. Important notice, own dialogs are not supported in all browsers.
//2. HTML standard does not distinguish between page refresh and page close action, the dialog will popup on page refresh too.

Screenshot 1-3

The general settings for the RemoteApp web page is stored on the software folder, in two different files: remoteapp.html and remoteapp2.js.

Screenshot 1-4

Example of available settings present in remoteapp2.js :

// Remote Desktop Server
var remoteapp2\_server = '';
var remoteapp2\_port = '443';

// Windows Authentication
var remoteapp2\_user = '';
var remoteapp2\_psw = '';
var remoteapp2\_domain = '';

// Optional Command Line Parameters
var remoteapp2\_apppath = '';

// Seamless/RemoteApp mode
var remoteapp2\_wallp = 'green';
var remoteapp2\_seamless = 'off';
var remoteapp2\_remoteapp = 'on';

// Screen
var remoteapp2\_color = '32';
var remoteapp2\_full = '2';
var remoteapp2\_width = '';
var remoteapp2\_height = '';
var remoteapp2\_scale = '100';
var remoteapp2\_smartsizing = '1';
var remoteapp2\_dualscreen = 'off';
var remoteapp2\_span = 'off';

// Disks mapping (required for printing)
var remoteapp2\_disk = '1';

// Printing
var remoteapp2\_printer = 'off';
var remoteapp2\_preview = 'off';
var remoteapp2\_default = 'on';
var remoteapp2\_select = 'off';

// Hardware
var remoteapp2\_com = '0';
var remoteapp2\_smartcard = '0';
var remoteapp2\_serial = 'off';
var remoteapp2\_usb = 'off';
var remoteapp2\_sound = 'on';
var remoteapp2\_directx = 'off';

// Miscellaneous
var remoteapp2\_alttab = '0';
var remoteapp2\_firewall = '1';
var remoteapp2\_localtb = '32';
var remoteapp2\_lock = 'off';
var remoteapp2\_rdp5 = 'off';
var remoteapp2\_reset = 'off';

Discover all TSplus features »