WebViewer WebViewString

Hi, I have web page that returns a short text .. my app call the url by clicking a button1 and it shows the returned value from my web page on the WebViewer, I would like to set Label1.text with the text received on the WebViewer when I click on button3…

if somebody can help me figure this out I will greatly appreciate it… as follows I have a sample of what I did..

thank you

This sounds more like a job for the web component.

Get the URL, and copy the response content when it arrives.

To send back a response to the webviewer, in your html script, you have to call the window.AppInventor.setWebViewString()

web01.aia (2.5 KB)

Alternately, you can capture all the document content by running a javascript on the loaded page, and return this to the webviewstring.

for the entire web page
window.AppInventor.setWebViewString(document.documentElement.innerHTML)

for just the body
window.AppInventor.setWebViewString(document.body.innerHTML)

web page must be loaded and rendered (webviewer doesn't have to be visible though)

Using the web component may, however, still be the way to go.