xul

How to create firefox3 sidebar?

試著忘記壹切 提交于 2019-11-30 19:05:23
问题 Hi I want to create sidebar in Firefox 3 but have no clue how to do this. I find tutorial on MDC (https://developer.mozilla.org/en/Creating_a_Firefox_sidebar) but after installation extension do not work with "not compatible with Firefox 3.0.3" error. Does anybody have any tip or link to some resource about how to make sidebar? 回答1: Well, a Firefox extension, be it a sidebar, toolbar or whatever other type of extension is basically a mix of XUL and Javascript, all packaged nice and tidy into

Embedding XULRunner application on Java

和自甴很熟 提交于 2019-11-30 10:19:38
My goal is to get Limewire(JAVA) and Songbird(XULRunner) to run together. I was thinking the best way is to run the XUL application(songbird) inside a JAVA swing panel. Is there another way? Would it be better or possible to have the GUI entirely in XUL, and then access my JAVA objects somehow? How would I go about doing this? Thanks Take a look at JRex , as it might let you peek into a couple of ideas. Other than that, I'd also research about Rhinohide as well. Take a look at DJ Native Swing , a native Swing implementation using SWT and Xulrunner. I am currently researching XUL for a new

How To Create a Quick Minimal Firefox Extension?

三世轮回 提交于 2019-11-30 10:19:24
问题 What the minimum basic setup required to begin developing a Firefox extension? 回答1: Step 1: Use the Add-on Builder to generate all the necessary files. Step 2: Extract the downloaded files into your development area. Step 3: Create a text file in your profile's extensions folder named according to the em:id in the downloaded install.rdf file, put the full path to your extracted files in it then restart Firefox (delete the text file to uninstall if necesary). 回答2: Precaution: In order to

Close Prompt alert box automatically with 10Seconds in XUL JavaScript

Deadly 提交于 2019-11-30 09:41:39
问题 This is my prompt alert box function in XUL: function promptBoxes() { var prompts = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] .getService(Components.interfaces.nsIPromptService); var check = {value: false}; // default the checkbox to false var flags = prompts.BUTTON_POS_0 * prompts.BUTTON_TITLE_Ok+ prompts.BUTTON_POS_1 * prompts.BUTTON_TITLE_IS_STRING; var button = prompts.confirmEx(null, "Title of this Dialog", "What do you want to do?", flags, "", "Cancel", "", null,

How to inspect my standalone Xul app using DOM Inspector (or similar)?

爷,独闯天下 提交于 2019-11-30 05:47:49
问题 I'm trying to inspect my standalone Xul app, but the DOM Inspector's page talks just about documents loaded on the browser. How can I inspect my standalone Xul app? 回答1: DOM Inspector can only inspect documents from its host application—the application it's extending (and then only the profile it's installed into). You need to install DOM Inspector on your XULRunner app if you want to be able to inspect it. There's some documentation about how to get DOM Inspector installed on XULRunner apps,

How To Create a Quick Minimal Firefox Extension?

耗尽温柔 提交于 2019-11-29 19:46:22
What the minimum basic setup required to begin developing a Firefox extension? Step 1: Use the Add-on Builder to generate all the necessary files. Step 2: Extract the downloaded files into your development area. Step 3: Create a text file in your profile's extensions folder named according to the em:id in the downloaded install.rdf file, put the full path to your extracted files in it then restart Firefox (delete the text file to uninstall if necesary). Balaji Sowmyanarayanan Precaution: In order to prevent messing with your default Firefox experience, try the tip below on a newly created

Is history.replaceState broken for XUL applications and plugins?

谁都会走 提交于 2019-11-29 16:54:29
I have a browser object in my XUL application like so: <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin" type="text/css"?> <window title="Students" xmlns:html="http://www.w3.org/1999/xhtml" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" width="800px" height="500px"> <groupbox flex="1"> <caption label="Students"/> <browser type="chrome" src="chrome://myapp/content/index.html" flex="1"/> </groupbox> </window> And the index.html is: <!DOCTYPE html> <html> <head> <title>Student page</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

Close Prompt alert box automatically with 10Seconds in XUL JavaScript

你。 提交于 2019-11-29 16:29:17
This is my prompt alert box function in XUL: function promptBoxes() { var prompts = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] .getService(Components.interfaces.nsIPromptService); var check = {value: false}; // default the checkbox to false var flags = prompts.BUTTON_POS_0 * prompts.BUTTON_TITLE_Ok+ prompts.BUTTON_POS_1 * prompts.BUTTON_TITLE_IS_STRING; var button = prompts.confirmEx(null, "Title of this Dialog", "What do you want to do?", flags, "", "Cancel", "", null, check); // 0, 1, or 2. } I have taken the above function from this website: https://developer.mozilla.org

Embedding XULRunner application on Java

有些话、适合烂在心里 提交于 2019-11-29 14:56:55
问题 My goal is to get Limewire(JAVA) and Songbird(XULRunner) to run together. I was thinking the best way is to run the XUL application(songbird) inside a JAVA swing panel. Is there another way? Would it be better or possible to have the GUI entirely in XUL, and then access my JAVA objects somehow? How would I go about doing this? Thanks 回答1: Take a look at JRex, as it might let you peek into a couple of ideas. Other than that, I'd also research about Rhinohide as well. 回答2: Take a look at DJ

Finding the currently logged in user from a Firefox extension

拥有回忆 提交于 2019-11-29 02:27:27
I'm writing a Firefox extension that needs to know what the username of the currently logged in user is in Windows, Mac, or Linux. So if I'm logged into my machine as "brh", it'll return "brh". Any idea how to do that from extension JavaScript? Firefox extensions play by different rules to normal JavaScript running in the page: finding the current user is absolutely possible. Open your Error Console (in Tools) and enter this: Components.classes["@mozilla.org/process/environment;1"].getService(Components.interfaces.nsIEnvironment).get('USER') The environment variables Firefox was started with