ocx control and javascript - TechRepublic
Question
June 8, 2010 at 10:06 AM
simonboey

ocx control and javascript

by simonboey . Updated 16 years ago

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;

}


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

This discussion is locked

All Comments