Windows 10 will reach EOS (end of support) on October 14, 2025. For more information, see this article.

Pomoc přepytać

Hladajće so wobšudstwa pomocy. Njenamołwimy was ženje, telefonowe čisło zawołać, SMS pósłać abo wosobinske informacije přeradźić. Prošu zdźělće podhladnu aktiwitu z pomocu nastajenja „Znjewužiwanje zdźělić“.

Dalše informacije

Gecko to Gaia

  • 5 wotmołwy
  • 1 ma tutón problem
  • 10 napohladow
  • Poslednja wotmołwa wot Kevin

more options

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?

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?

Wšě wotmołwy (5)

more options

Hello,

You can read more about webAPIs here and here.

Some APIs are not supported yet on many platforms, and some APIs are only targeted at mobile platforms. Gaia is the Firefox OS User Interface, and is not included in Gecko.

Hope this helps :)

Wot Joshua Smith změnjeny

more options

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?

more options

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

more options

Hi,

I am getting doubt, are you telling answers for b2g Mobile platform. Because I am asking for b2g [FFOS Mobile platform].

more options

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