Fork501 Posted July 22, 2008 Posted July 22, 2008 Does anyone know if there's a security policy, which would disallow JavaScript from sending data to/from a .NET ActiveX control? I've 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, I'm unable to send values to the control. I've even tried skipping the step of creating an interface and that didn't help at all. Due to security policies here at work, I can't actually add my own site as a trusted site, so I'm stuck =\ I'd test at home, but I don't like to admit defeat if I don't have to :p Thanks in advance! ~Derek Quote Check out my blog! DevPaper.NET
Fork501 Posted July 22, 2008 Author Posted July 22, 2008 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 Quote Check out my blog! DevPaper.NET
Recommended Posts