Replies: 2 comments 1 reply
-
|
I'm not sure I understand the question, or what it is you're trying to do. Toga's WebView is a mechanism for displaying web content; and the way you interact with web content is to invoke Javascript. Toga has the ability to invoke user-supplied JavaScript - does that not provide what you need? |
Beta Was this translation helpful? Give feedback.
-
|
Based on some specific "on_webview_load" responses from the web id need to send a "Http POST Request" with some parameters in PostData and some Headers, to filter the desired result. I understand the mechanism and I've used successfully a JavaScript to post parameters. But in many cases webs does not let injecting a JavaScript to post parameters, probably for security reasons. Probably there are ways to go around these security blocks but my JavaScript is very basic. I've been reading about Webview2 API and I've found the method "CoreWebView2Environment.CreateWebResourceRequest", that with "CoreWebView2.NavigateWithWebResourceRequest" would do the job without involving user-supplied JavaScript |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Any plan to support sending PostData to Webview2. Needed for sending login/password, etc
Beta Was this translation helpful? Give feedback.
All reactions