Skip to content

Instantly share code, notes, and snippets.

@rakhimoni
Created February 2, 2016 12:03
Show Gist options
  • Save rakhimoni/00e8c89c6c3a9feb1b39 to your computer and use it in GitHub Desktop.
Save rakhimoni/00e8c89c6c3a9feb1b39 to your computer and use it in GitHub Desktop.
Webview and html content
var str = "Hello world!";
$.webviewLoad.evalJS("var message='" + str + "';");
$.container.open();
<Alloy>
<Window id="container">
<WebView id="webviewLoad" url="test.html" />
</Window>
</Alloy>
<html>
<head>
<script type="text/javascript">
alert(message);
</script>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment