Hi.. I am working Rhomobile application and i dont know how to run javascript code with ruby language. How can i cofigure Rhomobile suite to default build javascript.
How can I configure Rhomobile suite for javascript not ruby and how to run javascript functions with ruby ? |
1 Replies
Within your ruby code you can call your javascript function like this
Rho::WebView.executeJavascript("your_js_function();")
and if your js function has paramas
Rho::WebView.executeJavascript("your_js_function('#{param1}', '#{param2}');")
note that param1, param2 are ruby variables