How to remove this "ERR_INTERNET_DISCONNECTED" message from webview?

How to remove this “ERR_INTERNET_DISCONNECTED” message from webview when the user runs out of internet?

These are the blocks.
If ExtendedWebViewer.ErrorOccurred
If Error code=[“ERR_INTERNET_DISCONNECTED”]
Then load a HTML file who only have this code:

<HTML></HTML>

This will give you a blank page.
If you want a Color to the page, use this code (now it’s aqua colored, you can replace it with any html Color code, two typesfor example: red, or #FFFFFFF

<HTML>
    <BODY Bgcolor=AQUA>
    </BODY>
    </HTML>

Sorry for no blocks again, I will at home on, so I can build the blocks for you. (Now I write from mobile)

2 Likes

I got lost in this part of “then” what do I add from that part onwards? and I do not know if the blocks I used are right

1 Like
  1. your blocks are right, good work!
  2. Call Web_Viewer1.LoadUrl blank.html

In blank.html add the code "<html></html>"
And this will give you a blank page.You can upload any html page.

You can make it more effective like
if get code= ERR_INTERNET_DISCONNECTED
then set webviewer1 visible to false
set nointernet image visible to true
and you can upload one no internet image thatwant to show that would be awesome in looks like I used in my app i told you earlier

1 Like

Yeah. I don’t know, why, but this forum removes html codes. You can download no internet images or htmls, and you can easyly set it up

1 Like

bild

<!DOCTYPE html>
<html>
<body>

<p>Click the button to display an alert box:</p>

<button onclick="myFunction()">Try it</button>

<script>
function myFunction() {
    alert("I am an alert box!");
}
</script>

</body>
</html>

/Boban

3 Likes

Ok, thanks

so I did it, but after the internet is activated, the image I put does not leave the screen, how do you get the image out after the internet comes back?

Use else if condition where if netconnected1 online is true then set image visible to false

1 Like

This error basically means that your browser is unable to establish internet connection to the host. The primary reason for getting this error is because your computer itself is not connected to the internet. This particular error message err_internet_disconnected belongs to Google Chrome and there are various reasons leading to this error, includes computer issue, or web server issue or Network setting , Internet connections, etc. It doesn’t matter, you can take the appropriate solution to fix it. The following article can gives you some specific advice to solve this issue.

  • Try a different web browser
  • Check your cables
  • Check your WiFi connection
  • Check Your LAN Settings
  • Delete WLAN Profiles
  • Disable Antivirus and Firewall
  • Restart Your Router
1 Like