html5 - How to call c# function in html5app in windows phone? -


I have to make HTML5 application in Visual Studio 2013 for Windows Phone 8.1.

How to Call # Html Working on the page - Javascript?

Any thoughts or links should help me a lot.

Thanks in advance.

There are a few ways to do this, one of them is calling through a window such a C # function is. External Information method and listening to these calls in your C # back-end;

Then to call the JS function in your HTML5 page like this, whenever you want:

  window.external.notify ("some specific Function call ");  

Then you'll hear such notifications in your C # code - where you host your browser controls:

  Private Zero Browser_ScriptNotify (Object Sender, NotifyEventArgs E) {If (e.value.StartsWith ("SomeSpecificFunctionCall")} {// Call Your Function Here}}  

Note that you can use any type of Browser.InvokeScript method with any type Can also script Your HTML via the C # code:

  Browser. Invokescript ("scriptName", parameter);  

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -