isInBrowser() function

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
3 posts • Page 1 of 1
vladimir
Posts:25
Joined: Thu Jan 23, 2014 1:34 pm

isInBrowser() function

Post by vladimir »

Hello!

WinCCOA 3.14, any patch, OS Windows-family

When WebClient starts within browser via http://.... function works fine.

When WebClient starts with command line:
>Siemens\\Automation\\WinCC_OA\\WebClient\\3.14\\bin\\WinCCOAWebClient.exe - server 111.222.111.222:1443
function gets result like for Standard UI.

Is there 100%-way determine a mode - WebClient or not?

Gertjan van Schijndel
Posts:634
Joined: Mon Aug 02, 2010 10:37 am

Re: isInBrowser() function

Post by Gertjan van Schijndel »

Try the 'getActiveHttpServerUrl' function, when it is not empty then it gets its files (panels, libraries, pictures, etc.) from the server.

vladimir
Posts:25
Joined: Thu Jan 23, 2014 1:34 pm

Re: isInBrowser() function

Post by vladimir »

I check it:

When start WebClient within web-browser:
7.3.2017 9:11:3.487 isInBrowser:TRUE
7.3.2017 9:11:3.489 getActiveHttpServerUrl:http://172.111.111.111:1443/

When start WebClient via command line:
7.3.2017 13:41:59.414 isInBrowser:FALSE
7.3.2017 13:41:59.415 getActiveHttpServerUrl:http://172.111.111.111:1443/

When STD UI:
7.3.2017 13:41:59.414 isInBrowser:FALSE
7.3.2017 13:41:59.415 getActiveHttpServerUrl:

Its works!
Thanks.

3 posts • Page 1 of 1