The information in this article applies to:
SYMPTOMSThe showModalDialog() function allows you to pass a value into the dialog window. If the method is called from VBScript and a variable is passed to it, as opposed to a literal value like "hello," accessing the dialogArguments property of the window object from within the HTML page that is displayed with showModalDialog will result in a type mismatch error. STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This bug has been corrected in Internet
Explorer 5.0 Developer Preview.
For more information, please see the MSDN Web Workshop: http://msdn.microsoft.com/workshop/default.asp MORE INFORMATIONSteps to Reproduce BehaviorThe following VBScript code calls showModalDialog to access the modalDlg.htm Web page and passes a string variable as the second parameter. This VBScript subroutine is called in response to a button on the page being clicked.
When you access the window.dialogArguments window property from within
Modaldialog.htm, you receive a type mismatch error. Here is the HTML code
for Modaldialog.htm. This HTML creates a button that, when clicked,
displays dialogArguments in an alert box.
REFERENCESFor more information, please see the MSDN Web Workshop: http://msdn.microsoft.com/workshop/default.asp Additional query words:
Keywords : kbDSupport |
Last Reviewed: November 2, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |