Guest User

Untitled

a guest
Jan 13th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. var instrArr = buildInstructionArray();
  2.  
  3. var instructionHtml = (function() {
  4. var arr =[];
  5. for(var i=0,j=instrArr.length;i<j;i++) {
  6. arr.push('<p>'+instrArr[i]+'</p>');
  7. }
  8.  
  9. return arr.toString();
  10. })();
  11. alert(instructionHtml);
  12.  
  13. var htmlCode = '<html><head></head><body>'+instructionHtml+'</body></html>';
  14.  
  15. var webview= Ti.UI.createWebView({
  16. html:htmlCode
  17. });
  18.  
  19.  
  20. currWindow.add(webview);
Add Comment
Please, Sign In to add comment