This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
sample_code:using_app.execute [2015/10/30 20:46] pedrod created |
sample_code:using_app.execute [2015/10/31 04:56] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
Webviews are useful where you want to format a dynamic page, for example, you retrieve some data from sqlite and want to display it in a HTML table. | Webviews are useful where you want to format a dynamic page, for example, you retrieve some data from sqlite and want to display it in a HTML table. | ||
- | If you want to embed links or buttons in the HTML, you need a way to pass data back to DS, use app.Execute | + | If you want to embed links or buttons in the HTML, you need a way to pass data back to DS: use app.Execute. |
- | < | + | |
+ | Below is an example with two buttons, pressing a button raises a popup and displays the text passed back from the webview. | ||
+ | |||
+ | < | ||
function OnStart() | function OnStart() | ||
Line 9: | Line 12: | ||
// | // | ||
+ | |||
var myjs = '< | var myjs = '< | ||
' | ' |