Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebView does not work #139

Open
SULAPIS opened this issue Aug 20, 2022 · 6 comments
Open

WebView does not work #139

SULAPIS opened this issue Aug 20, 2022 · 6 comments
Assignees

Comments

@SULAPIS
Copy link

SULAPIS commented Aug 20, 2022

When I run the program, WebView does not display the web page. The examples of this repositories can run successfully in my computer and I also use the sciter-webview.dll file. Did I do anything wrong?These are my codes.

webview.html

<html>

<head>
    <title></title>
    <style>
        html,
        body {
            padding: 0;
            margin: 0;
        }

        webview {
            display: block;
            size: 1000;
            background: red;
            behavior: webview library(sciter-webview);
        }
    </style>

</head>

<body>

    <webview src="https://www.sciter.com"></webview>
</body>

</html>

main.rs

use sciter;

fn main() {
    let mut frame = sciter::Window::new();
    frame.load_file("webview.html");
    frame.run_app();
}
<- rust                                                             scapp.exe->

image

@c-smile
Copy link
Contributor

c-smile commented Aug 21, 2022

Do you have sciter-webview.dll in the same folder as sciter.dll ?

@SULAPIS
Copy link
Author

SULAPIS commented Aug 21, 2022

Do you have sciter-webview.dll in the same folder as sciter.dll ?

yes,they are in same folder

@pravic pravic self-assigned this Aug 23, 2022
@AnassKartit
Copy link

AnassKartit commented Oct 28, 2022

it is not working with tiscript and version 4.4.9, is it supported only with js sdk and version 5.0? @c-smile

@c-smile
Copy link
Contributor

c-smile commented Oct 28, 2022

library part here:

behavior: webview library(sciter-webview);

is supported by Sciter.JS only.

In principle you can use webview with Sciter.TIS but you will need to either compile that plugin statically with your app or create a local proxy behavior for that DLL.

@AnassKartit
Copy link

AnassKartit commented Oct 28, 2022

is it possible to use sciter js and tiscript at the same time, i am trying to add oauth to tiscript with a webview for authentication, in electron this is working with no issue https://learn.microsoft.com/en-us/azure/active-directory/develop/tutorial-v2-nodejs-desktop

@c-smile
Copy link
Contributor

c-smile commented Oct 30, 2022

is it possible to use sciter js and tiscript at the same time,

No. I'd suggest to port your TIS code to JS. Normally that's line-to-line porting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants