In a simple window with an HTMLViewer control, this simple line of code
HTMLViewer1.LoadURL(“https://google.com”)
runs OK
but this other not
HTMLViewer1.LoadURL(“https://test.recetaonline.ar”)
and in a browser this last page works fine, like as follows:
@Greg_O Thanks…
I noticed that there is property UserAgent and a string parameter it is supposed to be set… Sorry by my ignorance, but which string is supposed to be set ?
I do see an empty page, so I supposed that I need to enable JavaScript. But the question is how to enable JavaScript fir a HTMLViewer a Xojo Desktop App.
I include this in the open event of the HTMLViewer
Var agent As String agent = “Mozilla/5.0 (Macintosh; Intel Mac OS X 13_2_1) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Safari/605.1.15” Me.UserAgent = agent
and I am steel seeing an empty page
Two new data:
a) in a WebApp I can see the page OK
b) in the same desktop app in Windows I also see the page OK
Thanks @Anthony_G_Cyphers
I will download Xojo 2022R4.1 and test it.
I have not Ventura and I I hope that it is only a XOJO problem solve in newer versions after 2022R1
It could potentially be an issue with your version of macOS. For HTMLViewer on macOS, the built-in WebKit renderer is always used, and the older the version of macOS, the more unsupported features and unfixed bugs you may run in to.
@Anthony_G_Cyphers
I notice more than that… I am running macOS High Sierra and I downloaded XOJO version 2022R4.1 and I have the following error just when I try to compile a so easy and simple project of 2 lines of code !!!
It looks like High Sierra is no longer supported by Xojo. I would expect it to still work, but I haven’t used High Sierra outside of VMs in years, and haven’t even needed the VMs in a year or more.
I would try @TimStreater 's suggestion of setting the macOS Minimum Version in the macOS Built Settings in your Xojo project, but I suspect that may not fix this: