Web developers can embed Microsoft® ActiveX® Controls into their Web pages and drive them using Microsoft® Visual Basic® Scripting Edition (VBScript). The Microsoft virtual machine (Microsoft VM) offers developers another option by making Java applets scriptable, too. When a Java applet is running in a browser, such as Microsoft® Internet Explorer, most of the public methods and variables of the applet automatically become available to VBScript or any other language supporting the ActiveX scripting protocol.
Note Returning a long data type from a Java applet to a web page script causes an overflow error. This is due to rounding of the maximum and minimum values of the long integer. Specifically, when placed in a com.ms.com.Variant, a Java long integer becomes a VT_R8, or a Variant.VariantDouble. When the upper and lower limits for a Java long integer are returned to the script with a Variant, the resultant value's last four digits are rounded from 5808 and 5807 to 6000.