Easy way to develop Mozilla Firefox extension from Google Chrome extension
I 've developed a simple application for Google Chrome extension, first the interface created using HTML and CSS, and then the action c开发者_运维技巧reated using JavaScript and PHP.
Then I want to develop the application for the Mozilla Firefox, which of the references that I read using XUL and CSS development for interface, and actions using JavaScript.
The question is, could I develop Mozilla Firefox extension using a language that I use when I develop Google Chrome extensions (interface with HTML and CSS, and action using JavaScript and PHP)?
If not, is there any application that can use to facilitate the development of Mozilla Firefox extensions? Considering I've been using XUL Exploreler, and it still was not helpful.
notes: Description of the application that I developed, there are forms which user must fill, and time the user presses the button the JavaScript will work and contact PHP to access MySQL database.
If you want to create a multi-browser extension, I strongly advise you to stay away from XUL as much as possible. For example, if you need to get data from the user, use the same HTML for that you are using in Chrome. If necessary you can embed a element in a XUL panel in order to display your HTML, but in most cases you can probably just display it in a browser window/tab (which is presumably what you are doing in Chrome).
精彩评论