How can I configure Rhomobile suite for javascript not ruby and how to run javascript functions with ruby ?

s shiv nayak 3 years 7 months ago
1 1 0

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.

Please Register or Login to post a reply

1 Replies

A Adel Sari

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

CONTACT
Can’t find what you’re looking for?