HISE Logo Forum
    • Categories
    • Register
    • Login

    Remote Website Doesn't Render with WebView in Executable

    Scheduled Pinned Locked Moved Solved Scripting
    3 Posts 2 Posters 249 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • clevername27C
      clevername27
      last edited by clevername27

      Does anyone know why a remote website wouldn't render in a compiled app? (It renders in the HISE development environment.)

      This shouldn't be. 😓

      c287a64f-5c0c-4b84-bbb9-4f2e1ba06c1f-Screenshot 2024-02-28 at 18.05.03.png

      I'm loading the website via:

      cb339dbd-24d5-459d-9f31-0f61310a9f43-image.png

      Is it possible that (in the executable), the Webview component isn't finding the internal index page (containing the above code?) Also wondering if it's a permissions issue.

      1 Reply Last reply Reply Quote 0
      • Adam_GA
        Adam_G
        last edited by

        bump bump

        clevername27C 1 Reply Last reply Reply Quote 0
        • clevername27C
          clevername27 @Adam_G
          last edited by

          @Adam_G Solved! I don't recall if there is a HISE setting that you also need, but here's the code:

          // This file has the redirect to the internet.
          var startingPage = FileSystem.getFolder(FileSystem.AudioFiles).getParentDirectory().getChildFile("Images/html/index.html");
          
          web_DOCS_CoreHTML_GUI.set("enableCache", true);
          web_DOCS_CoreHTML_GUI.reset();
          web_DOCS_CoreHTML_GUI.setIndexFile(startingPage);
          
          

          In your Images folder, create a folder called "htm" (though you can call it anything), and place your "index.html" (which likewise, can be any file name ending in the html extension). In this file, use this meta-tag.

          <!doctype html>
          <html>
          <head>
          <meta charset="UTF-8">
          <title></title>
          <meta http-equiv="refresh" content="0; URL=https://www.ferretsfightingllamas.com" />
          </head>
          <body>
          </body>
          </html>
          
          1 Reply Last reply Reply Quote 1
          • clevername27C clevername27 has marked this topic as solved on
          • First post
            Last post

          31

          Online

          1.7k

          Users

          11.8k

          Topics

          102.3k

          Posts