Is there a way _ANY_ to connect to mysql server from a XULRunner / Firefox add-ons?

How to connect to MySQL-server from the Firefox Add-ons? Is there a way to directly connect to the mysql server?

I tried:

  • package "MySQLXPCOM" is no longer in active development / outdated
  • package "mozdb" does not work
  • perform jar file (from inside the superstructure) via mysql connector incorrectly performed

I do not want to create PHP script, which executes the commands.

Any ideas?

+4
source share
1 answer

You can try using the built-in js-ctypes support in newer versions of Firefox:

https://developer.mozilla.org/en/js-ctypes

js-ctypes, like Python types allow to communicate with native libraries C. You can try to create a small set of bindings to own MySQL library.

+1
source

All Articles