J
janestory
Unregistered / Unconfirmed
GUEST, unregistred user!
我有一个ActivexForm, 里面有一个按钮Button1,点击事件为Button1Click。我想在IE中
利用JavaScript或者VBScript调用Button1Click事件,代码出错,请问各位何解?
代码如下:
<HTML>
<H1> Delphi 6 ActiveX Test Page </H1><p>
You should see your Delphi 6 forms or controls embedded in the form below.
<HR><center>
<P>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub Button1_OnClick
aaa.Button1.Button1Click()
End Sub
-->
</SCRIPT>
<OBJECT
classid="clsid:6A54274F-1C7E-42CD-9B6B-EB2F0D608DB7"
name="aaa"
codebase="file:///c:/temp/ActiveFormProj1.ocx#version=1,0,0,2"
width=0
height=0
>
</OBJECT>
<p>
<INPUT NAME="Button1" TYPE="BUTTON" VALUE="单击此处">
</HTML>
利用JavaScript或者VBScript调用Button1Click事件,代码出错,请问各位何解?
代码如下:
<HTML>
<H1> Delphi 6 ActiveX Test Page </H1><p>
You should see your Delphi 6 forms or controls embedded in the form below.
<HR><center>
<P>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub Button1_OnClick
aaa.Button1.Button1Click()
End Sub
-->
</SCRIPT>
<OBJECT
classid="clsid:6A54274F-1C7E-42CD-9B6B-EB2F0D608DB7"
name="aaa"
codebase="file:///c:/temp/ActiveFormProj1.ocx#version=1,0,0,2"
width=0
height=0
>
</OBJECT>
<p>
<INPUT NAME="Button1" TYPE="BUTTON" VALUE="单击此处">
</HTML>