BUG: Client-Side Events Do Not Execute in VBScriptID: Q192151
|
When using Design-Time Controls (DTCs) that ship with Visual InterDev 6.0, the client-side events will not execute if they are being called using VBScript and the client (that is, browser) JScript.dll is version 3.x.
The DTCs that ship with Visual InterDev 6.0 require the client machine to have the JScript.dll version 4.0 or later when using VBScript to handle the DTC events. This is caused by the DTCs underlying use of the Script Object Library that ships with Visual InterDev 6.0.
There are several workarounds:
<SCRIPT FOR="window" EVENT="onload" LANGUAGE="JavaScript">
Recordset1.advise("ondatasetcomplete", Recordset1_ondatasetcomplete());
</SCRIPT>
<SCRIPT Language=VBScript>
Sub Recordset1_ondatasetcomplete()
'-- Event Handler Code --
End Sub
</SCRIPT>
<SCRIPT Language=VBScript>
Sub Recordset1_ondatasetcomplete_VBS()
'-- Event Handler Code --
End Sub
</SCRIPT>
<SCRIPT Language=JScript>
function Recordset1_ondatasetcomplete() {
Recordset1_ondatasetcomplete_VBS()
}
</SCRIPT>
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.
Please refer to the following site for the latest information on
Microsoft's scripting engines:
http://www.microsoft.com/scripting/
Additional query words:
Keywords : kbCtrl kbScript kbVisID600bug kbGrpASP
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: May 26, 1999