Advertisement
srrdvd

Untitled

Feb 27th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. var advisor = Titanium.UI.createWebView({
  2. url: 'advisor.html',
  3. });
  4.  
  5. Ti.App.addEventListener('fromWebView', function(e){
  6. var testVariable = e.data;
  7. });
  8.  
  9.  
  10.  
  11.  
  12. <!DOCTYPE html>
  13. <html>
  14. <body>
  15. <ins data-revive-zoneid="1" data-revive-id="a8fd1f1dd1d9f38931672573f40cf0b1"></ins>
  16. <script async src="//adv.cagliariairport.eu/www/delivery/asyncjs.php"></script>
  17. <script type="text/javascript">
  18. $(document).ready(function(){
  19. var testVariable = someMethod();
  20. //respond the fetch data to the main window via fireEvent
  21. Ti.App.fireEvent( 'fromWebView', { data : testVariable } );
  22. });
  23. </script>
  24. </body>
  25. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement