STK HTML VBScript Compatibility Mode

« Go Back

Information

 
QuestionHow do I get VBScript to run in Embedded HTML windows in STK with browser versions after Internet Explorer 10?
Answer
For years, STK users have used HTML pages embedded with VBScript code to automate STK scenarios. However, as of 2016, Microsoft no longer supports VBScript, starting with Internet Explorer 11 and continuing with Microsoft Edge. STK uses the local browser (Internet Explorer or Edge) for the libraries to render HTML code, so if your local browser is IE11 or Edge, STK will not be able to run the embedded VBScript in the HTML page.

AGI strongly encourages users of HTML scripts within STK to migrate the code from VBScript to JavaScript for continued use in STK.

If you need to continue using the HTML space with VBScript, you can employ a workaround:
 
Add the following to the <HEAD> tag of an HTML page with VBScript to restore VBScript functionality.
                <meta http-equiv="x-ua-compatible" content="IE=10">
 
If your HTML code has this in the <HEAD> of the HTML page, the entire page will render in an older, compatible mode, and the VBScript will work. This mode will apply to the entire page, so newer SVG and HTML5 rendering cannot happen in this environment.

Starting with STK 12.5, AGI added to STK a modern Edge browser with Chromium controls to browse HTML pages, enabling advanced HTML and JavaScript usage and modern libraries. This is the desired HTML browser moving forward, and it does not support VBScript. AGI strongly encourages users of HTML scripts within STK to migrate the code from VBScript to JavaScript for continued use in STK.
TitleSTK HTML VBScript Compatibility Mode
URL NameSTK-HTML-VBScript-Compatibility-Mode

Related Files