WebView and HTML file

Post Reply
Natter
Posts: 1291
Joined: Mon May 14, 2007 9:49 am

WebView and HTML file

Post by Natter »

Hi,

There is a file tb.html (https://cloud.mail.ru/public/56wz/UMMJiRWaR)
Try to open it in webview2

Code: Select all | Expand

#include "FiveWin.ch"

function Main()
local oWebView := TWebView():New()

   oWebView:SetHTML(memoread("tb.html"))
   oWebView:SetTitle( "Microsoft Edge WebView working from FWH" )
   oWebView:SetSize( 1200, 800 )
   oWebView:SetUserAgent( "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.53 Mobile Safari/537.36" )
   sleep( 300 )
   oWebView:Run()
   oWebView:Destroy()

return nil
However, I get an empty window. Why?
Natter
Posts: 1291
Joined: Mon May 14, 2007 9:49 am

Re: WebView and HTML file

Post by Natter »

The file is over 65K :(
User avatar
Antonio Linares
Site Admin
Posts: 42863
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 198 times
Been thanked: 124 times
Contact:

Re: WebView and HTML file

Post by Antonio Linares »

Please open OpenDevToolsWindow() and check the logs
regards, saludos

Antonio Linares
www.fivetechsoft.com
Natter
Posts: 1291
Joined: Mon May 14, 2007 9:49 am

Re: WebView and HTML file

Post by Natter »

Thanks !
Post Reply