|
| Inicio → WINDEV 2024 → WD22 - java script errors when showing a punbli web page in HTML control |
| WD22 - java script errors when showing a punbli web page in HTML control |
| Iniciado por guest, 29,may. 2018 17:29 - 3 respuestas |
| |
| | | |
|
| |
| Publicado el 29,mayo 2018 - 17:29 |
HI,
I want to use the HTML control to show a few public website inside a html control. These sites (like https://www.buienradar.nl) are shown one after the other for about 10 seconds or so
In regular browsers the pages al work fine, but the html control throws numereous "java script error" message and one have to clikc yes or no to continue.
I already checked the option "allow the execution of scripts" with no luck.
How to avoid these errors ? |
| |
| |
| | | |
|
| | |
| |
| Publicado el 29,mayo 2018 - 17:35 |
Hi Arie,
the html field relies on IE to render the pages... and by DEFAULT, windows make it work in compatibility IE7, and that is generally enough to get tons of errors. You'll need to set keys in the registry to make IE working IE10 or IE11 mode. From the top of my head, there is a FAQ on the pcsoft site about it.
Best regards |
| |
| |
| | | |
|
| | |
| |
| Publicado el 30,mayo 2018 - 09:05 |
Thanks Fabrice, that did the trick.
I found that on Google as well, but someone there mentioned this registry key sitting under HKLocalMachine instead of HKLocalUser. And then it doesn't work. My bad, I had to look further, in fact I had to look on pcssoft resources first of course... |
| |
| |
| | | |
|
| | |
| |
| Publicado el 01,junio 2018 - 12:57 |
Well after a few more tests I found the browser control not useable - After a while javascript errors still popup. Looks like those annoying advertising popups are causing the problems. - I tried numereous other settings in IE to avoid that with no luck. - Every start of the tool seems to create another iexplore instance in some way. I then need to re-confirm "this site is using cookies" message for every site. - Within 15 minutes everything crashes and the whole app is gone ??
So I made a switch to .NET. After some searching on the internet I found this nice example of using the Chrome libraries in an application. And it's running smooth and fast for hours now. No popups, crashes, errors what so ever. Confirm the cookie message just once. Had it up and running in just an hour.
This time .NET beats Windev for sure…. https://cefsharp.github.io/ |
| |
| |
| | | |
|
| | | | |
| | |
|