How to use AddJavaScriptMessageHandler?
By hon
28 Dec 2017 23:32
English
5 Replies
How to use AddJavaScriptMessageHandler of webview to send message from JavaScript?
c#
try
{
this.control = (T.WebView)this.NativeView;
if (this.control != null)
{
bool bok = this.control.AddJavaScriptMessageHandler("test", new T.JavaScriptMessageHandler(this.OnJavaScriptCall));
System.Diagnostics.Debug.WriteLine(bok);
}
}
catch
{
}
JavaScript:
<script type="text/javascript">
alert(test);
</script>
test is null on Html.... who can help me?
You must log in to use this service. Log in now?
The tag you entered already exists.
Do you want to report this post as spam?
The post has been reported as spam.
cannot be empty.
Are you sure you want to cancel and return to the list?
The code has been copied to the clipboard.
Enter a title.
All Categories
General Support
Tizen .NET
Web Application Development
Native Application Development
SDK & IDE
--------
--------