how to display text in a web viewer using webviewer.string block please help I'm beginner
Taifun
Simple example
showTextInWebViewer.aia (2.1 KB)
HTML
<!DOCTYPE html>
<html>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<head>
<title>Display WVS</title>
</head>
<body>
<div id = "show"></div>
<script>
if (window.AppInventor) {
var wvs = window.AppInventor.getWebViewString();
document.getElementById("show").innerHTML = wvs;
} else { document.getElementById("show").innerHTML = "you are not using AppInventor ;)"
}
</script>
</body>
</html>
1 Like
what about blocks to be programmed in mit app inventor , Please guide me that also
Look at the AIA project example
ohh ok sorry actually i was busy that's why i didn't download the file
i will tell you if i have any further doubt ,