Giter Site home page Giter Site logo

set_html not working about fltk-webview HOT 7 CLOSED

fltk-rs avatar fltk-rs commented on June 8, 2024
set_html not working

from fltk-webview.

Comments (7)

MoAlyousef avatar MoAlyousef commented on June 8, 2024 1

I've pushed what I think is a fix to a bug introduced in the last version.
Can you try building against the git repo:

[dependencies]
fltk = "1.2.14"
fltk-webview = { git = "https://github.com/fltk-rs/fltk-webview" }

from fltk-webview.

MoAlyousef avatar MoAlyousef commented on June 8, 2024

Remove the first line of your string: data:text/html since it's already set using set_html().

from fltk-webview.

dongjian avatar dongjian commented on June 8, 2024

I deleted that line, but it was still blank

    let  html = r#"
<!doctype html>
<html>
<body>hello</body>
</html>
    "#;
    wv.set_html(&html);

from fltk-webview.

MoAlyousef avatar MoAlyousef commented on June 8, 2024

Does the original code sample work with wv.navigate() instead of set_html()?

from fltk-webview.

dongjian avatar dongjian commented on June 8, 2024

Does the original code sample work with wv.navigate() instead of set_html()?

I see that bind.rs uses wv.navigate(HTML); But my call to wv.navigate (HTML) crashes : (exit code: 0xc0000409, STATUS_STACK_BUFFER_OVERRUN)

from fltk-webview.

dongjian avatar dongjian commented on June 8, 2024

Thank you very much !!! yes it's works fine!!!

from fltk-webview.

MoAlyousef avatar MoAlyousef commented on June 8, 2024

Great. I’ll publish a new version with the fix this evening.

from fltk-webview.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.