xul

How to embed an XUL Application in SWT Browser?

I want to host my XUL application inside another Java application that uses SWT. I know that it is possible to embed the browser windows using SWT.MIZILLA as a flag. But how do I host my XUL application inside that browser window? ...

Including XPCOM inFirefox extension

I have a very limited experience with Firefox extensions development (read XUL School, written a couple of very simple extensions). I now need some functionality that is not available through Firefox XPCOM objects, namely running an external process and reading its stdout. It seems that this can be done using Protozilla. So my problems ...

Problems with XUL Grid Layout

I'm working on creating an XUL app right now and I'm stuck with a few problems at this point. My current file is here: http://projects.thecloudonline.net/gemxul/regrid.xul. I want that second column to essentially "float: right" (like how CSS works on webpages). The red background shows me that part moved, but my content is stuck orien...

Displaying rich text from database beyond capabilities RichText or htmlText.

I have thousands of quiz questions in a database which are in RTF format. The questions only change maybe once a month. At runtime, I need to choose a random subset of questions and display those questions in Flash/Flex. The formatting of the questions go beyond the capabilities of the RichText control or the HTML capabilities of a La...

XUL: How do you create a nested menupopup inside a statusbarpanel (with statusbarpanel-menu-iconic)

In XUL you can use create a status bar panel icon, similar to the ones used by Firebug and Greasemonkey, with the <statusbarpanel> tag. If you set the right class, you can throw a <menupop> inside, and then have a pop-up menu when the user clicks on the icon, like so ... <statusbarpanel class="statusbarpanel-menu-iconic" src="c...

XUL / XML Parsing Error: undefined entity <listitem

Does anybody know why this error is poping up ? <?xml version="1.0"?> <?xml-stylesheet href="chrome://onsip/content/options/options.css"?> <!DOCTYPE dialog SYSTEM "chrome://onsip/locale/options.dtd"> <dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" id="onsip-options-dialog" title="OnSIP Opt...

Firefox: STATE_TRANSFERRING did not fire

I have just modify a snippet from this page: https://developer.mozilla.org/en/Code_snippets/Progress_Listeners But with this code only STATE_START and STATE_STOP were fired. The rest did not fire at all var target = this; const STATE_START = Components.interfaces.nsIWebProgressListener.STATE_START; const STATE_R...

XML for User Interface Definition

I'm looking for information to choose a XML for User Interface Definition to build UI in new project. The project's objective is running in both web and desktop environments and support cross-platform. Therefore I focus on XUL and XForms but I'm not familiar with the XForms. Please give me some advices, what are cons and pros and the fut...

Extending Firebug (Firebug/FBL is undefined)

Firefox 3.6.8 Firebug 1.5.4 I'm trying to write a Firefox extension that uses Firebug. I've gotten up and running with the Firefox extension part but I just can't seem to access Firebug. I've followed various tutorials and dug into the code of other Firebug extensions (such as FirePHP). From what I can tell, this should work (at it...

Find the path of a resource:// or chrome:// in XUL

In my XUL application I have to make a system call which is more complicated than running a single process, so I wrote a very simple bash file with a couple of commands and I run a process initialized with this bash file. The problem is how to find the path of the file itself. Normally I use chrome:// or resource:// paths for all I need...

How to dynamically set "src" for browser or iframe element (Firefox extension)

I am trying to create a Firefox extension that uses a flex application. I have tried to wrap it in XUL types ( and ) and I have no preference as to which one I use... whichever works. The problem is that whenever I use a relative path (access through chrome:// or mySWF.html) the flash fails to load. I have a method to search for the a...

Limited number of processes in XUL? (was: Walking directory tree in XUL)

I need to walk a directory tree where photos are stored to read the photos metadata and write it to database. Since photos metadata are not supported natively in XUL, for a first version I'm just trying to use a command line application to write these data to files, and then read the files to populate the database. A preliminary version...

Limitations of XUL

I'm trying to understand if it is worth the pain to learn XUL more thoroughly. If you have experience with a moderately complex project (like an independent application rather than a Firefox extension), can you tell me what your experience has been like? I am particularly worried for feature which are not supported by the XUL framework...

Using preferences in XUL

Hi, I'm trying to figure out how to use a preference (the ones you can access by going to about:config) in an XUL file. I'll have a few developers working on this and we all have different "local" hosts configured. So I'd like to make things easier for everyone by making the "example.local" part belos come from a preference setting (stri...

Do XUL applications work only on Firefox

I've seen an XUL-based application recently that supposedly works on the desktop. Isn't XUL the Firefox language? I thought it wouldn't work on anything other that Firefox and certainly wouldn't work as a desktop application. Can someone who knows more about XUL confirm its compatibility with other browsers (IE, Chrome, etc.) and if it ...

Embed XUL backend in C

I need to write a standalone (not under XULRunner) c/c++ application (Windows OS) that uses XUL as its backend GUI library. If it is possible, can you give me a link to an example application ? I saw something about libXul, is it needed ? where can i find it ? TNX, Vertilka ...

How can I scroll a XUL tree element by less than a whole row?

I've got a XUL tree element, and would like to scroll the rows up and down on a per-pixel basis, instead of by whole rows, if possible. Browsing through the source to mozilla-central, and Thunderbird's copy at comm-central, it looks like I can only scroll by rows, but I guess I'm hoping that I missed something. (The other option I saw ...

XulRunner javascript

Hi all! I have a some trouble with XUL. <window id="main_window" title="app" accelerated="true" width="300" minwidth="500" height="500" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"&gt; <script src="chrome://app/content/js/run.js"></script> <browser id="main_browser_window" type="content" src="chrome://app/con...

How do I overlay the preference menuitem in FF4/MacOSX ?

Hello, I'm having problems to define the overlay of preferences menuitem for FF4 beta in MacOSX. It works for previous version of FF and in FF4 for other platforms. Basically want to open my .xul window when the user click in Preferences, but now is opening the FF preferences (The overlay is not working). Any help will be great :) Die...

Trying to run Mozilla XUL demos

I've downloaded the xul demos from this page, a single file called "top.xul", but when I open it on Firefox it says the file for each demo is missing.. Is it just here? Do someone succeed to run the demos? ...