I am having a problem similar to what is described here:
http://www.essentialobjects.com/Forum/postsm32938_Return-a-value-from-C-and-passing-object-to-Javascript.aspxI am trying to return a value from .NET to javascript. I am returning a simple string value, but it is not
getting assigned. Here is the code I am using:
Private Sub WebView_InvokeFunction(sender As Object, e As JSExtInvokeArgs)
Dim lv_String1 As String = TryCast...(argument 0 from e variable to string following your example code)
Dim lv_String2 As String = TryCast...(argument 1 from e variable to string folowing your example code)
e.ReturnValue = "Hello from .NET:" & lv_String2
End Sub
And here is my invocation:
var lv_String = invokeFunction("Hello", "World");
alert(lv_String);
I know the function is getting called by the WebView because I can trap it in the debugger, but the alert
displays "undefined" Am I invoking correctly?