I have a canvas thats being used as a button with a MouseUp event : HTMLViewer1.LoadURL(“http://somerandomlink.com/view.php ”)
It no longer works.
I also have a HTMLViewer with an OPEN event that pre-loads: HTMLViewer1.LoadURL(“http://somerandomlink.com/view.php ”)
It no longer works either.
How do I get a url to load from an EVENT if OPEN doesn’t work anymore or the LoadURL?
Help please my app is broken…
macOS and Windows - desktop application
internal server… no https only http
Please use “https” and it works.
ok i have:
HTMLViewer1
with the event OPEN
and this HTMLViewer1.LoadURL(“http://rcp-app01.rcpmarketing.net/PW/_rcp_creative/view.php ”)
in the editor
neither: HTMLViewer1.LoadURL(“http: //rcp-app01.rcpmarketing.net/PW/_rcp_creative/view.php ”)
or HTMLViewer1.LoadURL(“https ://rcp-app01.rcpmarketing.net/PW/_rcp_creative/view.php”)
seem to work as OPEN as an EVENT seems to be depreciated?
macOS Mojave - displaying as webkit
DaveS
(DaveS)
November 19, 2019, 9:23pm
6
its not a valid URL… I just tried it, and Safari said… Sorry…
Mike_D
(Mike D)
November 19, 2019, 9:32pm
7
Your name server says this is a https://en.wikipedia.org/wiki/Private_network
Private network (all 10.x.x.x IP addressses are LAN only)
dig rcp-app01.rcpmarketing.net
; <<>> DiG 9.10.6 <<>> rcp-app01.rcpmarketing.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 3820
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 8192
;; QUESTION SECTION:
;rcp-app01.rcpmarketing.net. IN A
;; ANSWER SECTION:
rcp-app01.rcpmarketing.net. 7129 IN A 10.254.253.63
That’s only going to be accessiable from your LAN, not from a WAN
If you have setup your home router, you can open your own local URLs.
Example:
ShowURL(“http://fritz.box ”) => my own DSL router
ShowURL(“http://192.168.168.28 ”) => my own NAS
And also https
ShowURL(“https://fritz.box ”) => my own DSL router
ShowURL(“https://192.168.168.28 ”) => my own NAS
If you use the IP address, it works without special routing on your LAN.
I know - It’s an internal app. . purposely not accessible to the outside world…
I’ve used and built this app since 2016 … updates I added worked in the 2018 version…
my current version works just fine…
however in when I build this in XOJO 2019 release 2 version this will not work…
There is NO ssl on the domain… does the HTMLViewer now require an SSL to view content? If I type the URL into chrome it works, AND if I type
HTMLViewer1.LoadURL(“https://apple.com ”) this works?
It’s just a domain without and SSL. - I’ve tried the domain with both http AND https… nothing works.
If a regular browser can open that URL, and not htmlViewer, it may have to do with userAgent.
Try setting the user agent to the same as the browser.
See https://www.whoishostingthis.com/tools/user-agent/
Jason_King
(Jason King)
November 20, 2019, 5:34pm
12
[quote=463888:@Wally David]I know - It’s an internal app. . purposely not accessible to the outside world…
I’ve used and built this app since 2016 … updates I added worked in the 2018 version…
my current version works just fine…
however in when I build this in XOJO 2019 release 2 version this will not work…
There is NO ssl on the domain… does the HTMLViewer now require an SSL to view content? If I type the URL into chrome it works, AND if I type
HTMLViewer1.LoadURL(“https://apple.com ”) this works?
It’s just a domain without and SSL. - I’ve tried the domain with both http AND https… nothing works.
[/quote]
Are you using 2019r2.1? It was just released and might fix that deprecation message. Try that
if I open my project in 2019 r2 and compile it… HTMLViewer will not open a NON https URL…
If I open the project in 2018 r3 - which was the last time I built this… it works just fine.
Not sure… maybe a bug…
Trying old version will not help/
Use 19r2.1
(since you can do that).