xul

How to use loadOverlay to add several windows in a FireFox extension

I am trying to dinamically load a xul overlay, using several calls to document.loadOverlay(myXul.xul) with the same .xul file. the .xul has a browser contained in a box contained in a window, resembling a suggestion i saw on this forum: the loadOverlay() action is performed every time a f...

Firefox Addons: Unable to open new page in document.popup.

Hi, I have a firefox addon which opens a document.popup window. When I click a link within the popup, I want to call a javascript function which displays an alert within the popup itself. When I try onCLick(onY()); the alert comes only after I close the popup. '<div id="SearchLiteDef-yahoo" style="'+ 'font-family:arial; fon...

Is there a known trivia behind the wording used for XML declaration for XUL documents

Why does it say /keymaster/gatekeeper/there.is.only.xul? Who picked this strange wording and why? P.S. Some good tags for the question? ...

Opening a window in XUL

An exception is being thrown when trying to open a window using window.open in XUL. The exception details: Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMJSWindow.open]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: The line of code throwing the exception is: newWind = window.open(settings....

In XUL, how do I make my listbox fill the screen?

I have the following xul file: <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <window id="main" title="MY TEST" width="640" height="480" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"&gt; <listbox id="mainList"> <listitem label="Butter Pecan"/> <listitem labe...

Why my CSS is not working with the XUL app?

My xul app: <?xml version="1.0"?> <?xml-stylesheet href="main.css" type="text/css"?> <window id="main" title="MY TEST" width="640" height="480" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"&gt; <listbox id="mainList"> <listitem label="Butter Pecan"/> <listitem label="Chocolate Chip"/> <list...

XUL vs FLEX vs XAML

Is there a updated comparison according to the latest technologies offered as shown here ...

What's wrong with XUL reference?

Why the oncommand is not discribed in Xul button reference page? It's even used in an example, but it's not docummented with the other methods, am I looking the wrong place? ...

What is XUL and XUL runner ?

Hi, i've just installed songbird: it has a fantastic user interface. Then, i've read it's made with XUL, the core of mozilla firefox. Ok, but i don't understand: Songbird is a desktop interface behind a web interface ? And What is XUL ? A library ? What can i do with XUL ? Desktop application GUI/interface like Web application (html+js+...

Why when I add the CSS file my list gets rid of "YouTube" item?

main.xul <?xml version="1.0"?> <?xml-stylesheet href="main.css" type="text/css"?> <window id="main" class="MainClass" title="MY TEST" width="640" height="480" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"&gt; <listbox id="mainList" flex="1" class="MainListbox"> <listitem label="Twitter"/> <li...

Why this XBL example is not working?

This example is from this Mozilla's page. main.xul <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <?xml-stylesheet href="main.css" type="text/css"?> <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"&gt; <box id="num" class="labeledbutton" title="Number of Things:"...

firefox addon : adding icon to context menu

Hello, I'm trying to build a firefox addon & I want to add image/icon in the right click content menu , for example, firebug had an icon in the right click context menu, http://i.imgur.com/GjGAV.jpg I wanna do something similar, my addon also consists of menu items structure of my addon in context menu : [icon] [menu] ...

Xul tray icon code

merhaba aşağıdaki eklentiyi nasıl kendi uylamam için kullanabilirim örnek bir kod veya anlatacak biri var mı? http://github.com/nmaier/mintrayr/ https://addons.mozilla.org/en-US/firefox/addon/12581/ ...

xul : creating a right click context menu item for only hyperlinks

Hello, I got a question to ask on building firefox plugin, basically my aim is to do following things, 1) In my plugin I want to show right click context menu item for only links[anchor tags] and hide the menu item for rest of the page 2) How to add dynamic list to my menu, i.e., adding the number of menu list items dynamically dependi...

How to add a transparent xul element to a browser overlay

Hello All. I am working on an extension that adds a box element with a browser in it to each open tab. The idea is that my plugin may display different content according to the url displayed in the tab. My current solution is a single box element overlayed to main-window, with several browsers that i hide/display according to the selec...

XUL button doesn't appear

I'm one of the developers of TryAgain, a Firefox add-on, that displays a custom error page when a website fails to load. It essentially replaces Firefox's netError.xhtml with a customized version. However, I've run in to some fairly terminal compatibility problems between 3.0.*-3.6.* and Fx4b5. (An entry in netError.dtd has been renamed...

Why does a ChromeWorker throw "Components is not defined"

The documentation on ChromeWorkers says that they have "chrome privileges", and chrome privileges are supposed to mean they can do anything, but when I create a ChromeWorker and try to use Components I get an error that 'Components' is not defined.. So my question is 1) why is Components not available? 2) what is available to a ChromeWo...

How to use currentURI to get active tab url of firefox browser

Hi , I am looking for to fetch current tab (loaded or blank ) URL of Firefox browser. How to acheive this ? using currentURI property in javascript. Thanks a lot, -Pravin ...

How to make a Xul button bigger using css as it get focus?

I saw at this page that I can use CSS to change my button as it get focused. But trying with the following code in the CSS didn't work: button:focus { style.width='200px'; } Any idea why it isn't working? ...

How To Animate A Panel in XUL For Firefox Add-On

I have written a nice little Firefox Add-On for the company I work for as an IT Ticket System. What it does is notifies managers of new tickets or notifies users of changes to their tickets. I started out using the built in notifer for Firefox on Windows with: var alertsService = Components.classes["@mozilla.org/alerts-service;1"].getS...