xul

XUL The Box Model layout manager and Javascript, HTML implementation?

There are many "Javascript layout manager": http://stackoverflow.com/questions/2131384/common-web-ui-styles I'm looking for lightweight, modular and HTML XUL like javascript layout manager. But, Dojo, YUI, Qooxdoo, MochaUI... not lightweight. I like "UI.Layout Plug-in" for jQuery, but it not modular. I need only lightweight layout mana...

Interaction between XUL windows

I'm a beginner with XUL. I have the following problem. In the browser overlay I declare a menu item which opens a new window - so far so good. menu_entry.addEventListener('command', function() { window.open('chrome://myextension/content/mywindow.xul', 'myextension-mywindow', 'chrome,centerscreen'); }, false); I'd like thi...

Detecting window load with XUL and running a Javascript function?

I am developing my first addon for Firefox, and I'm using the Extention Developer addon to help me. It has a real time XUL editor which I am using to design my form. At the moment this is what I have: <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <window id="yourwindow" xmlns="http://www.mozilla.org/keymaster/gatekeep...

Auto suggest chrome:// URLs in Firefox

How can I enable auto-suggestions for chrome:// URLS in Mozilla Firefox, just as is done for http:// or file:// URLs? ...

Using JSON in XUL <template>s

As far as I can tell, the template feature in XUL doesn't allow you to load JSON data into your listbox/tree/etc. element. -- it only supports XML and RDF. The closest thing I found to an indication that it might someday support JSON, is the comments on this blog post from 2007, saying that there was a bug filed. But the bug in question ...

drag and drop workflow kind of interface..how easy to develop?

Hi friends, How easy it's to come up with a drag and drop web-based interface that'll provide me features to wire objects together, setup configurations nicely in a modal window for each object? I'm looking for links that've any similar kind of interface, or articles on this. also, i'm looking for your technology/language suggestions. ...

How to load a script into a XUL app after initial loading

Greetings, my xul app needs to load scripts dynamically, for this I derived a function that works in regular html/js apps : function loadScript(url) { var e = document.createElement("script"); e.src = url; e.type="text/javascript"; document.getElementsByTagName("head")[0].appendChild(e); } to something that ought work in XU...

A bidirectional scale in Firefox extension

I am writing a firefox extension where I need a bidirectional scale element (https://developer.mozilla.org/en/XUL/scale) While the sample code of this xul element talks about a scale in one direction, how can I make a scale which can have a slider bar at the two directions so that I can take a range as the input? Thanks, Kapil ...

What is the proper way to get bounding box for HTML elements relative to the Window?

I'm writing a Firefox extension. I'm trying to limit it to just XUL+Javascript (no XPCOM). When I get a mouseover event for an HTML element, I need to get its bounding box in the windows coordinate system (that is the built-in XUL document browser.xul). The obvious place to start is to put something like this in the mouseover event ...

How do you delete an object from a tree in XUL with the delete key?

I'm building a Firefox extension and would like to allow the user to delete objects from the tree with the delete key. I currently call a function when the user presses a button, but would like to allow them to just press the delete key on their keyboard. ...

XUL tabbox tab label height

I have created a tabbox using the following code (with a screenshot attached). How do I set the size of the tab to be larger so there is padding around the label? <tabbox> <tabs> <tab label="A LABEL"></tab> </tabs> <tabpanels> <button> </tabpanels> </tabbox> I have tried the following CSS: tab, tabs...

changing the content of browser in XULRunner

I have an Xulrunner app that loads fullscreen without any controls and loads a html page by default. The only thing it has is browser element and a popup menu visible on right click. In the popup menu there is option to quit. Then there is a menu entry 'theme2'. I want the browser to load another html when theme2 is clicked. This is my...

serving a XUL application

Hi, I wonder if it would be possible to serve a XUL rich application (not an extension) (I would create some files and package the application on the fly on the server side according to the request) and then the user would be able to run the application on the desktop (something like javaws for java) how should I package the application...

Firefox Add-ons, How to execute javascript function onLoad?

I'm new to Firefox Add-ons. I want to create a simple Firefox add-ons that append HTML element to a page automatically on document Load. Honestly, I want to add additional BBCODE/smiley toolbar to the any existing textarea. I got an example of xul (xml) file: <popup id="contentAreaContextMenu"> <!-- some code here --> </popup> ...

How to change the selected item in a Firefox Extension's Menulist?

I'm writing a firefox extension and I have a menulist of links that should be automatically (upon load) set to the last link it was set before I closed it. It just keep being set to the first menu item. I've tried using setAttribute('selectedIndex', 1), but that doesn't work. What am I doing wrong? Some sample code: <menulist> <menu...

Is there a way to pass a variable to keypressed function?

I am trying to send the document and the control that the key was pressed in to the keypressed function. Here is my code: //Namespace MyExt.BrowserOverlay = { init: function() { var appcontent = document.getElementById("appcontent"); // browser if(appcontent) appcontent.addEventListener("DOMContentLoad...

XUL: Scroll to top and reload the page

Hey guys, recently I've installed the FireGestures plugin for Firefox, which I find very useful. You can also create your own scripts using JavaScript. I want to create a script that simply scrolls to the top and then reloads the page. Sound simple, but I couldnt figure it out. In FireGestures' help page it says "Of course, you can us...

Adding a scrollbar to a firefox extension's sidebar

I'm trying to add a scrollbar to a firefox extension so that it displays when the window is too small. I'm having issues with having the scrollbar span the entire range from top to bottom of the sidebar and only having it displayed when the window is too small. One extension that has the functionality I would like is the sage extension...

find firebug XUL window

I want to get handle of firebug XUL window, and do some operations such as toggle, reopen, close and issue these actions from main window, using javascript. I hope my question is clear enough to understand. Where firebug.xul definition starts like this: <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" ...

Is there a way to get feedback from a process in XUL?

I'm starting to develop an extension which must interact with an external application. I can run the external application as described here, but I do not see a way to get any feedback. The only information I get is the exit status, while I need to read the application output, as it would appear on a terminal (stdout). Is there a way to d...