ActiveX Security

Fork501

Active member
Joined
Jan 27, 2007
Messages
41
Location
Weston, Florida
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 :p

Thanks in advance!

~Derek
 
Well I sure feel funny :D

I forgot to mark the control as being COM Visible. Solved my problem as soon as it was checked.

Determination often times solves even the most complex of problems :p

Thanks anyways!

~Derek
 
Back
Top