how to pass app.js variable to webview html property?
I'm test marquee effect in webview.
I pass a app.js variable to webview html code.
I use this manner, but It is show wrong code about '" .
Am I have to use evalJS reach purpose?
thank you very much.
var myTxtVariable =" test marquee......"; var marquee = Ti.UI.createWebView({ width : Regis.screenContentWidth, height : 40, left : 0, bottom : 0, html:"<marquee scrollamount=2 >'"myTxtVariable"'</marquee>", backgroundColor : "ccc" }); win.add(marquee);
1 Answer
Accepted Answer
please see Communication Between WebViews and Titanium
Your Answer
Think you can help? Login to answer this question!