0

I have to call a C# function from Java Script in an embedded Webkit browser (OpenWebkitSharp). For .NET 4.0 this can be easily done with:

<webkitbrowser>.GetScriptManager.GlobalContext.GetGlobalObject().SetProperty("CallbackHandler", new CallBackhandler());

Unfortunately .NET 40 crashes my application and I'm looking for a way, to do this in .NET 20 (Visual Studio 2005).

Any ideas?

Tom

Tom Torell
  • 51
  • 5

1 Answers1

2

For anyone who is looking for a solution on this issue.

After intensely searching the web, I found a solution that is working for me:

Using WebKit.NET to call a C# function from JavaScript

http://phil-rashleigh.blogspot.de/2012/10/calling-c-from-javassript-for-local.html

Tom

Community
  • 1
  • 1
Tom Torell
  • 51
  • 5