Replies: 1 comment
-
You can create and inject JavaScript into a WebView on the Rust side, and invoke this code from the client side. However, I was unable to establish communication from the WebView back to the client. The solution I found for now is to run a local HTTP server (using actix_web) when the app is launched, and then have the JavaScript sent to the WebView create a form to submit data back to the server. It works, but it's not very convenient... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I don't see an example of accessing Webview contents. Via injecting script or directly, is it something Tauri supports?
Example. Let's say I've created a webview using JSX syntax:
It seems like I don't have much of a c control over
Webview
contents. How can I communicate with it? Inject script? Anything similar to Electron<webview>
tag / Webview class functionality: https://www.electronjs.org/docs/latest/api/webview-tagBeta Was this translation helpful? Give feedback.
All reactions