SmilingYoda

I have a ActiveX control that fire Javascript events which have worked fine in IE6. But in IE7 the Javascript functions are no longer firing when the ActiveX control raises an event.

<object id="activeXObj" classid="..." viewastext></object>

<script language="Javascript" FOR="activeXObj"
EVENT="Click(row, col)" >
alert("click") // Doesn't fire any more
</script>

Any suggestion is highly appreciated. Thanks.



Re: Windows Forms General IE7 ActiveX control event can't fire javascript funtion to handle events

Pazout

I have the same problem. Please help!

now, I try vbscript and working both in (IE6 and IE7)!

<object id="activeXObj" classid="..." viewastext></object>

<script type="text/vbscript" language="vbscript">

    sub activeXObj_Click(row, col)

       call window.alert("click")

    end sub

<script>

 

 





Re: Windows Forms General IE7 ActiveX control event can't fire javascript funtion to handle events

Sad Ken

I've just spent a few hours banging my head against a wall with this as well. Try adding this line:

val ThreadingModel = s 'Apartment'

to the

InprocServer32 = s '%MODULE%'
{

}

section in xxxxxx.rgs. Let me know if that fixes it.