xul

How to make a Xul browser with no background?

I want to render an animation in javascript in a html file. But I don't want my browser component to show the white background. Is there a way to make the background fully transparent? ...

How to control page loaded in browser?

I want to control a webpage loaded in web browser. Can XUL be useful for fulfilling this requirement? ...

How to get notified about IFRAME appended dynamically and loaded?

I need to add an ability to a Firefox extension to handle cases when IFRAME elements are being added dynamically. Is there a way to get notified when IFRAME document is loaded in such a case? For example: <html> <head> <title>iframe test</title> <script type="text/javascript"> function addIFrame() { var ifrm = document.creat...

How to load a file list in javascript?

How do I load a list of files from a specified folder in javascript? update Actually is from a Xul application, but I think anything for a local html file will work.. (it's a standalone app). And are resource files (images) I'm talking about.. ...

What's wrong with this url?

Why is Xul app saying XML Parsing Error: not well-formed for: <browser class="AppBar" type="content" src="test.html?img1=img1.jpg&img2=img2.jpg" flex="4"/> at the equals sign of &img2=img2.jpg"? Note that it works without the parameters. ...

How to get text from Address Bar in Firefox extension

Hi Experts I am building a Firefox Extension. I am using XUL and Javascript to do this. I need to get the text from my Firefox browser's address bar. Please don't get confused with URL where the browser has navigated, its just the text that user enters before the page redirects. Suppose user is at http://www.myexample.com or whatever p...

Firefox XUL: Auto loading toolbar button

I'm fairly new to JS and XUL so please bear with me if this is a noob query :-) I am developing an extension for firefox which performs a custom action when a toolbar button (created by me) is clicked. I have been able to create the button using mozilla examples but what I have seen is that even when the extension is installed success...

How do I resize the Xul button's image within the binder?

I have a Xul with the following binder: <binding id="appicon_bind"> <content> <xul:button xbl:inherits="image=img" /> </content> <handlers> <handler event="focus"> this.height='200px'; this.image.height='200px'; </handler> <handlers> </binding> Currently, it resizer just the button, but not it'...

How do I set a Xul window background image? Or, how to add a caption over a image?

I have a window in Xul, and I want to put a background image on it. I found nothing about the z-order, and the background-image and z-index in css is not working for the window.. any idea? In the following test, the image is showing, but not as background. The image starts after the last caption. My xul file: <?xml version="1.0"?> <?...

What's the type of this object? And where is it documented?

I'm not finding what's the type of this "xpcomInterface", and there's no documentation of any class with this name. Any idea? This snippet is from Mozilla's website: var next = elements.item(i+1); var xpcomInterface = scroll.boxObject.QueryInterface( Components.interfaces.nsIScrollBoxObject); xpcomInterface.ensureElementIsVisible(eleme...

Problem laying out box using grid in XUL box does not take full space

I'm trying to use xul to create a lay out like this: there is a box contains of a tree of data there is a box containing some buttons right below the previous box. I decided to use because otherwise the second box will be put right next to the first one (unless I use vbox). The problem is no matter what value I assign to flex, the bo...

Javacript: how to switch between tabs?

So I created some tab using XUL. How can I write javascript code so that if I click on a button in tab 1, tab 2 will be shown? Thanks ...

OnSelect handler with XUL and Javascript

So I have a tree of items created using XUL. When I select item from this tree and click a View button I want to display information about the selected item. I do it as below but the button does not work at all. Assign an id for the tree: <tree id="assetList" flex="1" multiple="false"> Then I attach a function to the button: <button...

How to extend a Xul button and make it focusable?

When I extends this button in my XBL: <binding id="myFancyButton" extends="chrome://global/content/bindings/button.xml#button"> how do I make it a focusable button? ...

How can I delete item from a nested XUL tree?

I created a nested tree using XUL (no database was used to store items). I want to delete items from this tree by selecting the item (only 1 at a time) then click delete. I wrote Javascript function to delete as following but it does not work. function delete(){ var tree = document.getElementById("treeId"); currentPos = tree.cur...

Would like to recup a string of a javascript function in a XUL code

Hi everyone, I'm trying to do a plugin for firefox in XUL language. So I got informations in json, I parsed them and I can use the title in javascript. But I would use it in XUL language. For exemple, in html you can write : <a href="javascript: function()"> link </a>; So I need to list each title in a menuitem label, but I don't want ...

Import/include another XUL file in XUL.

I am writting an Firefox add-on in XUL and I want to include another XUL file within my browser.xul. In PHP I would use something like this: include("anotherFIle.php"); but I don't know the equivalent in XUL. What is the best way to accomplish this? ...

Xul - javascript tabs and url

Hi, I'm training to get the address of all open tabs in firefox with no success. My problem is to open a tab if there's no already open, so I should search an address into tabs, and if there isn't, add one. Thanks ...

"text-overflow: ellipsis;" in XUL applications

I'm writing an extension to an existing XUL-application, conkeror. In that, In some part of the user-interface of I'm writing, I'm creating HTML elements with a fixed-width, <span>s in this case, to display various results. Within those spans there's text some text, which, on occasion, is too long to fit its fixed-with container. I'd li...

How to map response to request when using "http-on-modify-request" and "http-on-examine-response"??

How to map incoming responses to the outgoing requests when using HTTP observers: https://developer.mozilla.org/en/Setting_HTTP_request_headers#Observers ? ...