2017년 1월 4일 수요일

Use HTML in AppInventor


Is it possible to use a html form with different input fields and get the posts in AppInventor?
Fo example a contact form. I'd like to use the data from an html contact form in AI2.

--
I think, this is possible
you could pass the form values in the webviewstring of the webviewer back to App Inventor
see some HTML/JavaScript examples here https://puravidaapps.com/tutorials.php#html

✻✻✻✻✻
HTML file
<!doctype html> 
<head> 
 <meta name="author" content="puravidaapps.com"> 
 <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> 
 <title>Test</title> 
</head> 

<body>
<script> document.write("The value from the app is<br />" + window.AppInventor.getWebViewString()); window.AppInventor.setWebViewString("hello from Javascript") </script>
</body> 
</html>

file:///mnt/sdcard/AppInventor/assets/webviewstring.html
file:///android_asset/webviewstring.html

✻✻✻

댓글 없음:

댓글 쓰기