javascript - HTML Injection Windows RT WebView -
i'am trying insert values html document on windows universal app, html document located on webserver , i'am trying insert username , password saved on client device winphone or pc store app, know id , every thing elemts, cant figure out how insert string input value, can provied sample invokescript("smth", new string[] {smthelse});
or has better idea insert username , password html content of webview?
i'am stuck here , realy need feature.
thanks in advance
add code below xaml , give go. if know id, can set value doing script injection page.
private async void button_click(object sender, routedeventargs e) { string functionstring = string.format("document.getelementbyid('namediv').innertext = 'hello, {0}';", nametextbox.text); await webview1.invokescriptasync("eval", new string[] { functionstring }); }
don't naughty. healy in tampa.
Comments
Post a Comment