Questions

ocx control and javascript

Tags:
+
0 Votes
Locked

ocx control and javascript

simonboey
I am trying to communicate with an ocx control hosted in an aspx web page. The ocx control downloads and instantiates correctly (checked dowbnloaded program files and the registry) but talking to the ocx control using javsacript yields no response.

Page snippet:

function GetData() {

alert('here');
var ctrl = document.FC;
ctrl.Trace_Reference = 'qqq';
alert(ctrl.Trace_Reference);
var stringData = ctrl.Trace_Data;
alert(stringData);

return false;

}


<OBJECT
id='FC'
codebase='vcatracerax.ocx#version=1,0,0,0'
classid='clsid:435ACDEF-A9FC-4736-B329-3EEF99D64866'
width=799
height=580
align=center
hspace=0
vspace=0>
</OBJECT>


<input type="button" value="Get Data" onclick="javascript:return GetData();" />


Any ideas? The ocx control works fine when tested in a windows form.