Gecko to Gaia
Dear All,
How I can invoke Gaia API from gecko.
I have some API in Gaia in my webapp. How I can invoke it from Gecko?
所有回覆 (5)
Hi,
Thanks for your reply, but here my question is How I can communicate Gecko to Gaia?
For example:
in Gaia my APP contains one API.
EX: Hello.js ----> function GetName() {
var name = "Laxman"; // Implementation of logic here
}
I want to call this API from Gecko Javascript/XPCOM C++. How I can invoke this API from Gecko?
You have to add a reference to the window, and then you can invoke it by using the same method that you would use to call it from a webpage.
Example Code: http://mxr.mozilla.org/mozilla-central/source/dom/browser-element/BrowserElementChildPreload.js#476
Hi,
I am getting doubt, are you telling answers for b2g Mobile platform. Because I am asking for b2g [FFOS Mobile platform].
This is an end user support forum you will get better answers at https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Apps#Community