This sample demonstrates the use of the WebSphere MQ Automation Classes for ActiveX to call WebSphere MQ from an HTML page, using code written in VBScript or JavaScript. Click on either button above to send a predefined message to WebSphere MQ and immediately retrieve it. Under normal circumstances the WebSphere MQ Java client is recommended for use with World Wide Web applications.
There are several limitations to the use of the WebSphere MQ Automation Classes for ActiveX:
A browser that is set up with default security options will not execute any Automation Classes scripts. To resolve this in Microsoft Internet Explorer, choose menu item "view-options". Select the "security" tab, and the "safety level" button under "Active content".
In the "safety level" dialog select "Medium". You will then be required to confirm the use of Automation Classes scripts each time you enter a page that uses the Automation Classes.
The alternative is to use "Low" safety level: this is not recommended for obvious reasons.
In the "security" page of the "options" dialog you must also select "Enable ActiveX controls and plug-ins" and "Run ActiveX scripts". It is not necessary to select "Enable Java programs" to run JavaScript programs.