tags:

views:

85

answers:

1

Hi

I am trying to develop an HTML page (internal of course) that can in some way be able to load another application. I don't mind using any language to do that. I am using a webkit interface to render the HTML page (well, it QTWebKit) and sadly it does not allow using ActiveXObject (JavaScript) to be used to call another app. I am not sure if this is possible but hopefully it is.

As I said, I don't mind using any kind of script or methods to do that (as long as its user friendly).

So my question in short: Can I load an external c++/c# function from a dll and call the functions directly from an HTML page.

+2  A: 

With QtWebKit you can easily expose objects to script using QWebFrame::addToJavaScriptWindowObject(), see e.g. this blog post for an example.

If you want a plugin that works in all browsers except IE, use NPAPI or one of its wrappers. If you want to support all browsers including IE, you can simplify your work by using a framework like FireBreath.

Georg Fritzsche