Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var advisor = Titanium.UI.createWebView({
- url: 'advisor.html',
- });
- Ti.App.addEventListener('fromWebView', function(e){
- var testVariable = e.data;
- });
- <!DOCTYPE html>
- <html>
- <body>
- <ins data-revive-zoneid="1" data-revive-id="a8fd1f1dd1d9f38931672573f40cf0b1"></ins>
- <script async src="//adv.cagliariairport.eu/www/delivery/asyncjs.php"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- var testVariable = someMethod();
- //respond the fetch data to the main window via fireEvent
- Ti.App.fireEvent( 'fromWebView', { data : testVariable } );
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement