Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Check out my blog! DevPaper.NET
Posted

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

Check out my blog! DevPaper.NET
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...