views:

224

answers:

0

Hi,

I'm using ActiveXObject writted on C# and hosted in Internet Explorer:

<object id="exControl" classid="http://localhost:81/excontrol/ExpandoControl.dll#ExpandoControl.ExpandoControl"&gt; 
</object>

My exControl has NormalField property of object type (but I've tried to use JScript.FunctionObject class as well). So I'm trying to run such code on client:

exControl.NormalField = new Function("x", "y", "return(x+y)"); 
alert(exControl.NormalField(1, 2));

But it gives me error on second line: Object doesn't support this method or property. Can you help me with that?

Thanks, Paul.