.png?part=0.2&view=1)
.png?part=0.3&view=1)
Component for viewing Web pages. The Home URL can be specified in the Designer or in the Blocks Editor. The view can be set to follow links when they are tapped, and users can fill in Web forms. Warning: This is not a full browser. For example, pressing the phone"s hardware Back key will exit the app, rather than move back in the browser history.
You can use the WebViewer.WebViewString property to communicate between your app and Javascript code running in the Webviewer page. In the app, you get and set WebViewString. In the WebViewer, you include Javascript that references the window.AppInventor object, using the methods and setWebViewString(text).
For example, if the WebViewer opens to a page that contains the Javascript command
document.write("The answer is" + window.AppInventor.getWebViewString());
and if you set WebView.WebVewString to "hello", then the web page will show
The answer is hello.
And if the Web page contains Javascript that executes the command
window.AppInventor.setWebViewString("hello from Javascript"),
then the value of the WebViewString property will be
hello from Javascript.
Trying to push the limits of App Inventor!
Snippets,
Tutorials and
Extensions from
Pura Vida Apps by
Taifun.
I hope there is a simple html - javascript code for chat app appropriate to app inventor web viewer
I try another phone, phone doesn't accept the aix and alert "end application". All android releases don't run aix extensions.

(the \n characters are included to format the "Do It output")
and the code:
data:text/html,<html><head><style>p {color:green; font-size: 40;}</style></head><body><div id="mytext"><p>Hello World</p></div>
<button type="button"onclick="makeRed();">Click Me!</button></body><script>function makeRed() {document.getElementById("mytext").style.backgroundColor="red";}</script></html>
It is just a simple test but it demonstrates what is possible. Short video of the app attached
2. I tested your example in my PC browser and that would not work with data:text/html,..., but it did work when loading the html file.
3. Extensive testing in the webviewer with the html file and the data stream showed me that there are limits with the css that can be displayed, and I don't believe jquery will work in a data stream ( Itried calling the jquery cdn from the web and locally as an asset)
4. you may be able to find plain javascript alternatives to the jquery you want to use, and to simplify your css to get what you want
My phone android version is Android 5.1.1. I can use on my phone as companion but not apk. For example Chat View Extension by cttricks extension.