embed dll in html <object>

Posted by Raynos on Stack Overflow See other posts from Stack Overflow or by Raynos
Published on 2011-01-07T10:38:09Z Indexed on 2011/01/07 10:53 UTC
Read the original article Hit count: 288

Filed under:
|
|
|

I've come across some old code

<object id="foo" classid="/location/bar.dll#ProjectName.ClassName" viewastext></object>

It doesn't currently work and used to work in older versions of IE. I've never come across embedding a dll in a web page like this. It appears to be a windows .NET application written in C#. This is used on our intranet.

And ClassName is of type System.Windows.Forms.UserControl

It also seems I can call the C# methods of the UserControl directly through javascript.

Does anyone have any documentation on how this works and whether its possible to hack it into firefox. Rewriting the windows control as a web application would be a nightmare.

[Edit]

It appears to be some kind of activeX / COM thing where in IE you could just port a windows application directly into a html file. It's supposed to be able to run locally if you set up various correctly. If anyone has an idea of what needs to be set up for this to work, that would be nice.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html