Skip to main content
InSource Solutions

TN IT254 Web Browser opens with Javascript Errors from WindowViewer

InSource_Logo_Transparent.png

Description

 

This article from InSource shows how to resolve Javascript errors that are sometimes encountered from a web browser embedded in a Wonderware InTouch window.

  • Author: Rich Brooks
  • Published: 1/10/2017
  • Applies to: InTouch 2014R2 and higher

Details

The Microsoft Web Browser .Net control is often embedded in an ArchestrA graphic.  This is done to provide access to web applications from within InTouch during runtime.  Javascript errors such as "unable to get property or prototype" are sometime encountered when navigating to a website.  These errors may be resolved by adding view.exe and the version of Internet Explorer to the registry as described below.

Start by opening the registry editor by typing in REGEDIT from the command line.  Expand the registry editor tree to locate the following:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BROWSER_EMULATION

Capture1.jpeg

Right-click FEATURE_BROWER_EMULATION to add a new DWORD named View.exe.  Edit the data to enter the corresponding IE version level as detailed below from the following web link.

https://msdn.microsoft.com/en-us/library/ee330730(v=vs.85).aspx#browser_emulation

Capture2.jpeg

The hexidecimal value of 2AF8 was used in the example above.  This is the default for Internet Explorer 11.  Be sure to check the IE version installed on the InTouch Runtime machine that is encountering the error.  The web page will open normally after this change is applied.