Configuration of the example page |
Manual -> Web Server and Web Server Pro -> Creating the HTML project entry page -> Example from the WEB server CD -> Configuration of the example page |
Show all Hide all |
During the setup also the WEB server is installed: in the folder Config the configuration file Globalvars.js can be opened in the notepad.
In order to adjust this page for your project you have to replace the placeholders in the following way:
Project name |
Enter the name of the project. Please be aware, that the project has to run as a server project on the defined Runtime server PC! |
Runtime Server Name |
Enter the computer name of the Runtime server.
The name has to match with the name entered as the server name in
the project properties. See also: Project configuration version
5.x and Project configuration version
6.x. |
Webserver Name |
Enter the computer name of the WEB server. (Not the name of the publishing server.) |
Initfunction |
Enter the name of the function which should be executed when the clients are initialized (started). Take care that the spelling equals the spelling of the function names in zenon (case sensitive). |
Zoom |
The value can be 0 or 1. The zoom adjustment is only considered on initializing, not when the Runtime is running. |
|
If a certain size is needed, it has to be defined by the ActiveX control. |
Cabpath |
Path for the automatic installation |
Info |
Please make sure, that the project name and
the computer names of the WEB server and the Runtime server are
always entered in capitals, for example: PROJECT_1 and PC_WEB. |
Redundant WEB
server (since WEB client 6.01):
If in addition to the zenon Runtime server the WEB server is also
redundant, you have to install and license two WEB servers on
different computers.
In the variable declaration in the HTML page you have to enter both
WEB servers separated by a comma:
var WEBSERVER = WEB-SERVERNAME,WEB-STANDBY-SERVERNAME;
Additional
parameters:
Via the parameter InitFunction, a startfunction for the webclient
can be defined. Instead of 'Init' the name of the desired start
function has to be entered in inverted commas. Not the name of the
functiontype; but the freely definable name of the function.
The parameters width / height define the size of the ActiveX
control (zenon WEB Client) in the browser. Default is 100%:
Info |
If they are set to 105%, the scroll bars of
your project are moved to the invisible area of the browser. |
Fpr VB or other connections:
Create: the connection to the Runtime server is started (ActiveX
initialized)
GetApplication: Access to the COM objects (VBA interface) of the
Runtime.
Start of the
WEB client:
By doubleclicking the page init.html you can start and test the WEB
client at any time.