PRB: Unable to Access Script in ALX from Script in HTML (163397)
The information in this article applies to:
- Microsoft Visual Basic, Scripting Edition 2.0
This article was previously published under Q163397 SYMPTOMS
When attempting to invoke a script embedded in an .alx file from a script
in an HTML page, which references that ALX via an HTML Layout control, the
following error occurs:
VBScript runtime error. Line <n>: Type Mismatch
RESOLUTION
The following two steps are required to work around this problem:
- Upgrade to Microsoft Visual Basic, Scripting Edition, version 2.0
or later.
- Place the common code that needs to be executed by both the HTML and the
ALX in the HTML file. While scripts in an HTML file cannot invoke
scripts in an ALX file, scripts embedded in an ALX file can invoke
scripts embedded in the containing HTML file.
In VBSCRIPT 1.0, scripts could not be invoked in either direction and
instead yielded the following error:
VBScript runtime error. Line <n>: Type Mismatch
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 6/12/2001 |
---|
Keywords: | KB163397 |
---|
|