Webview dont active when negative to new screen

@hoang_ph_m Have you checked? It works?

it work, but web viewer show my web url
your mean is the same with my block, when device disconnect, and set webviewer visible to true ( it them same to set image ..)

1 Like

Please wait I am giving aia. So you can understand.

1 Like

im waiting ..

1 Like

Oh Sorry I forgot.

1 Like

Where I can find have network connection block?

it an extension "netconected"Capture

1 Like

Can you give me that extension please?

https://www.aix-extensions.fr/downloads/category/free/

1 Like

Here is the aia.
Test_for_hoang_ph_m.aia (20.6 KB)
Add connectivity block by your own.

Hey,
@hoang_ph_m have you checked? It is working?

it dont work, just show title screen1 and dont show anything ..aa

1 Like

Are you using https://xem.vn Url?

1 Like

yes, i use xem.vn

Use the webviewer error occurred block

image

2 Likes

But what if the page redirects to a dynamic url?

  1. The original page cannot redirect if it is not there
  2. Use a variable
1 Like

For example you want to load http://sunnythedeveloper.epizy.com/ then you simply put the url in GoToUrl block.
There is internet so you were able to access it but since it redirects to http://sunnythedeveloper.epizy.com/i=1 and suddenly internet disconnects then your above block will fail.
Although, you still have an option to compare original url with failing url.

Otherwise, you can always use the OnDiconnect event of the following extension:

You have something really strange here. You can have blocks for Screen1 on one page and blocks for screen2 on another page, but not both on the same page. So your when Screen2.Initialize will never be called. Put it on the page for your Screen2 blocks, and the Webviewer too.

Hello hoàng phạm

I think it could be more simple - you are asking the WebViewer to display a web page before the Screen and the Viewer have completed initialisation. Give it a little bit of time.

Screen2WebView.aia (3.9 KB)

blocksScreen1