Communication between Javascript and Lua for Android Application

Hello Friends ,
i am creating an Application ,in that i have to communicate with javascript to lua code .
is it possible ?
please replay as soon as possible.

Thanks [import]uid: 169178 topic_id: 29661 reply_id: 329661[/import]

You can use JSON to bridge the data gap, Corona SDK provides a JSON parser that will allow you to read JSON sent from a web source, you can then pass JSON packets between your LUA code and JavaScript code using web calls.

[import]uid: 51222 topic_id: 29661 reply_id: 119025[/import]

i m sending a http post request and receiving html response that response included javascript functions which i have to use n call lua function according to behavior . [import]uid: 169178 topic_id: 29661 reply_id: 119029[/import]

Lua and javascript can’t call each other directly, you can have your http response carry a JSON envelope, and then parse the JSON to gain state information then respond accordingly in Lua, and vice versa. You will need to duplicate the functionality from javascript as lua functions, which you can call in from device side, these can then generate response JSON to be sent back to the web for handling in JavaScript. But you can’t pass a JS function into corona as text and have it executed, that would be like sending a Spaniard Mandarin Chinese? [import]uid: 51222 topic_id: 29661 reply_id: 119031[/import]

You could show the result from the server in a WebView which would process the Javascript, but it’s not going to get you any thing you could use as Lua variables. [import]uid: 19626 topic_id: 29661 reply_id: 119056[/import]

is WebView Container Supported in Android ?
can i communicate from javascript to native (lua) corona code?
[import]uid: 169178 topic_id: 29661 reply_id: 119181[/import]

Hello Neilster,
Thank you for reply . Can you please send me any example of it? [import]uid: 169178 topic_id: 29661 reply_id: 119492[/import]

will webview control execute html with javascript?
if i want "on click of any link or button, javascript code should execute ". is it possible? [import]uid: 169178 topic_id: 29661 reply_id: 120858[/import]

will webview control execute html with javascript?
if i want "on click of any link or button, javascript code should execute ". is it possible? [import]uid: 169178 topic_id: 29661 reply_id: 120858[/import]