AI2 code sends 18.5:14.7:7.3 to htm file with JS, and JS code split numbers (":"), calculate and return result to block WebViewStringChange.
http://kio4.com/appinventor/167_javascript_vector_3d.htm (It is in Spanish)
More tutorials about JavaScript and App Inventor (Spanish): http://kio4.com/appinventor/index.htm#javascript
- Regards.
- Juan A. Villalpando
- http://kio4.com/appinventor/167B_javascript_vector_2d.htm (It is in Spanish)
Yes, you also can upload html files as assets into App Inventor! There is only one special thing to consider: During development, you have to use the development path to the embedded html document:
file:///mnt/sdcard/AppInventor/assets/<NAME OF YOUR HTML FILE>.html
Before packaging the app, use the production path.
file:///android_asset/<NAME OF YOUR HTML FILE>.html
The tools extension offers the method PathToAssets which always returns the correct path to the assets.