jscript calling c# function?

B

Bootstrap Bill

I want to create a Windows Form in C# that has a web browser componant on
it. If I load a web page into the web browser containing jscript, can
jscript call a C# function on my form?
 
A

Anders Both

I canot help you, but I would like to know if javascript can call into a
dotnet windows form on a web-page, and
the other way.

This is possible with Java and Flash, using liveconnect. But how about
dotnet?

Sorry if you feel I mix up you question, just thourt that maybe this was a
little bit the same thing.

Best Regards,

Anders,
 
B

bruce barker

yes, with a little work. the javascript in the browser can call any com
object that supports late binding. this means you have to expose a com
object to the browser that the javascript can talk too.

there are two approaches to exposing this object:

1) the browser support one external object (defined in the hosting site).
but this is not supported by the web control, you will have to write your
own C/C++ wrapper to expose it.

2) supply a .net active/x control that remotes back into your app.

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top