how can I call the function of Javascript in Symbian C++? Should I develop a new UI event responded by the function, and trigger the event in C++?
Thanks in advance.
Printable View
how can I call the function of Javascript in Symbian C++? Should I develop a new UI event responded by the function, and trigger the event in C++?
Thanks in advance.
Are you talking about doing it from a widset (Java code) or a widget (HTML & Javascript packaged)?
If the former, search for "midpjni" for examples.
If the latter, then you can launch C++ based applications already installed on the device, but I suspect calling C++ subroutines/DLL and interprocess communications between a widget and C++ app running on the device is probably not possible.
Hi, Petrib
Thank you for your reply.
I want to realize the asynchronous callback mechanism between c++ and javascript. In detail, I developed a Widget Engine, which can parse and excute the extension object of javascript in Widget. For example, when Engine(written by c++) meet a extension object (such as SendMail) defined in javascipt, it will run for a long time, I don't want javascipt to waiting for it. Therefore, I need the Engine call a function defined in javascript to show the result on UI when the result of SendMail was returned.
BR
Zhu Xinhua
Hi,
I think that the key is to let JavaScript respond to the event send by Symbian C++. Is it right? But I don't know how to do it.