yaniv_av
July 18th, 2007, 10:01 AM
Hi,
I developed some simple OCX with one function (Func1) that fire an event (OnFunc1) through the standart ConnecionPoints.
When I tested it eith VB, the client captured the event and it was OK.
When I tested it eith IE7, the javascript didn't captured the event. and I don't know what is the problem ...
the JS code:
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
<object CLASSID='clsid:62060B0D-1A78-4E53-9FBB-82E38BA59FAD' id='TmpOcx_TempCtl' name='TmpOcx_TempCtl' style='position:absolute;bottom:0pxright:0px;' width='1'>
</object>
<SCRIPT LANGUAGE="JavaScript" FOR="TmpOcx_TempCtl" EVENT="OnFunc1(str)">
window.alert('Kermit the frog');
</SCRIPT>
</HEAD>
<BODY>
<script language="JavaScript">
window.alert('temp');
TmpOcx_TempCtl.Func1();
</script>
<P> </P>
</BODY>
</HTML>
Does someone has an idea ??
I developed some simple OCX with one function (Func1) that fire an event (OnFunc1) through the standart ConnecionPoints.
When I tested it eith VB, the client captured the event and it was OK.
When I tested it eith IE7, the javascript didn't captured the event. and I don't know what is the problem ...
the JS code:
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
<object CLASSID='clsid:62060B0D-1A78-4E53-9FBB-82E38BA59FAD' id='TmpOcx_TempCtl' name='TmpOcx_TempCtl' style='position:absolute;bottom:0pxright:0px;' width='1'>
</object>
<SCRIPT LANGUAGE="JavaScript" FOR="TmpOcx_TempCtl" EVENT="OnFunc1(str)">
window.alert('Kermit the frog');
</SCRIPT>
</HEAD>
<BODY>
<script language="JavaScript">
window.alert('temp');
TmpOcx_TempCtl.Func1();
</script>
<P> </P>
</BODY>
</HTML>
Does someone has an idea ??