Applies To:
  • CitectSCADA 6.XX
  • CitectHMI 6.XX

Summary:
When I run WebClient, I get a White border around the WebClient instance.  How can I get rid of this?
 

Solution:
This is due to the default Margins and formatting of an HTML page.

This can be changed, however, it will require modification to some Citect WebServer Java script files that determine how the WebClient behaves.

A MISTAKE IN MODIFYING THESE FILES COULD PREVENT WEBCLIENT FROM FUNCTIONING, BACKUPS SHOULD BE MADE. ONLY ATTEMPT THIS IF CONFIDENT.

In order to change the Margins of the WebClient page, open the SCADA.js file located in your WebServer\cgi-bin folder with Notepad.

Navigate through the file until you get to the DoCitectSCADA() function, this should look like the snippet below.

Now, Add ONLY the line which is in BOLDITALICS, in the position as shown, leave everything else as it is.

On the clients, restart Internet Explorer and open the WebClient Deployment to see the changes.  Note you may need to empty the cache before the changes will be reflected.

Function doCitectSCADA()
{
try
{
SetLocaleInit(false);
QueryString_Parse();

var strObject=new String();
var strParam=new String();
var strDeployUrl=new String();
var strDeployName=QueryString("DeployDir");
var strProjectName=QueryString("ProjectName");
var strStartPage=QueryString("StartPage");
var strClientCAB=QueryString("ClientCAB");
var strAccess=QueryString("AccessMode");

if( strClientCAB == null )
{
strClientCAB = "CitectSCADA.cab";
}

strObject ='<html><head><title>CitectSCADAWeb</title></head>'
strObject += '<script language="JavaScript" src="cgi-bin/global.js"></script>';
strObject += '<script language="JavaScript" src="cgi-bin/locale.js"></script>';
strObject += '<script language="JavaScript" src="cgi-bin/scada.js"></script>';

strObject += '<style>BODY {margin: 0px 0px 0px 0px;}</style>';

strObject += '<OBJECT ID="ctlCitectSCADA" onerror="SetLocaleInit(false);onErrorLoadCab()" WIDTH="100%" HEIGHT="100%" ';

< file continues……..>
 

Keywords:
internet explorer web client webclient webserver server white border

Attachments