Fork501
Active member
Does anyone know if theres a security policy, which would disallow JavaScript from sending data to/from a .NET ActiveX control?
Ive found some tutorials online about ActiveX and they all seem to use the same basic format for using JavaScript with it:
*Create an Interface in the ActiveX Control
*Derive your object class from the Interface
*Implement a String value
*Use the Set method to grab the value sent
*Tell JavaScript to set [ControlID].[StringName] as a value
ex: MyControl.Msg = Hello
When I follow the same basic steps, Im unable to send values to the control. Ive even tried skipping the step of creating an interface and that didnt help at all. Due to security policies here at work, I cant actually add my own site as a trusted site, so Im stuck =\ Id test at home, but I dont like to admit defeat if I dont have to
Thanks in advance!
~Derek
Ive found some tutorials online about ActiveX and they all seem to use the same basic format for using JavaScript with it:
*Create an Interface in the ActiveX Control
*Derive your object class from the Interface
*Implement a String value
*Use the Set method to grab the value sent
*Tell JavaScript to set [ControlID].[StringName] as a value
ex: MyControl.Msg = Hello
When I follow the same basic steps, Im unable to send values to the control. Ive even tried skipping the step of creating an interface and that didnt help at all. Due to security policies here at work, I cant actually add my own site as a trusted site, so Im stuck =\ Id test at home, but I dont like to admit defeat if I dont have to
Thanks in advance!
~Derek