First, you should copy the necessary files to run a TCE application in browsers to a directory of your web server provided by your web provider.
The latest files can be obtained from our support team.
A Web Page has the following structure (example):
<meta
charset="utf-8" />
<html>
<head>
<title>TCE Web
Client</title>
<link rel="stylesheet"
href="css/tce.css">
<script type="text/javascript"
src="tce/TCE.js"></script>
</head>
<body>
<h2
id="pagetitle"></h2>
<div id="output" style="left:0px; top:0px;
width:calc(100% - 0px);height:calc(100% -
0px);position:absolute;overflow:hidden"></div>
<script>
document.tce = new TCE(false, "output",
"ws://127.0.0.1:8002/chat", "TCP NBDell", "TCE", "TAP.CON CRM", "-1", "-1",
"Start",
"");
</script>
</body>
</html>
A link to the style sheet and Javascript files is entered in the web page's head tag. Use the correct pathes to the files on your web server:
<link rel="stylesheet" href="css/tce.css">
<script type="text/javascript" src="tce/TCE.js"></script>
In the Web Page Body Tag, the connection to the TCE Web Socket Listener and the Start parameters are selected. The object is stored here in the document object of the Web Page.
<script>
document.tce = new TCE(false, "output", "ws://ws.tap-con.de:80/chat", "TCP", "TCE", "TAP.CON CRM", "-1", "-1", "Start", "");
</script>
The parameters are in detail:
pDebug |
False |
pOutputDIV |
Name of a DIV in the DOM that is used when a form in TCE has the Embedded = True property.
|
pWebSocketURI |
Connection to the Web Socket Listener:
ws://ws.tap-con.de:80/chat In this case the connect with the server is done by pure http (ws) protocol. The server is connected via port 80.
Alternatively: wss://ws.tap-con.de:443/chat In this case the connect with the server is done by https protocol. The server is connected via port 443. This is only working, if the server is providing a valid TLS certificate.
|
pConnect |
Name of the server connection entered in the server connections of the TCE Client. |
pDSN |
To run the knowledge base of a nonpublished project, use the name of the project. To run a published knowledge base file, use <pkf> |
pKNB |
Name of the knowledge base |
pMajor |
Major version of the knowledge base or -1 for the highest available major version |
pMinor |
Minor version of the knowledge base or -1 for the highest available minor version of major version. |
pStartClass |
Name of the class to use for running (start object). |
pUser |
Name of the user to run the knowledgebase or empty string for shared classes only. |