xul

XUL: Printing value from SQL query without using value attribute

I want to print the results of an SQL query in XUL with word-wrapping using the description tag. I have the following code: <grid> <columns> <column flex="2" /> <column flex="1" /> </columns> <rows datasources="chrome://glossary/content/db/development.sqlite3" ref="?" querytype="storage" > <templ...

Preventing a Firefox Extension's load event from triggering across tabs

Hi, I've been working on a Firefox extension that uses an iFrame to do some background scrapping. I have gone through a number of hoops to get it to trigger only once in the window/tab where it should but now when I open a different tab that tab triggers the load event. I found this: https://developer.mozilla.org/en/Code_snippets/Progr...

Can I access a firefox plugin element from an in-page javascript ?

Hi, I created a canvas object in my firefox plugin and now, I want to access the same from a webpage (The feature on the webpage will only work if the plugin is installed and the browser is FF). Now, usually we access DOM elements inside a page through the browser plugin. How can I access it the other way round - i.e access the canvas ...

Is it easy to develop a simple Firefox plugin (JS injection)

Hello everyone! So I was just wondering if it was easy to develop a very simple Firefox plugin where you could click a button, and it would execute some Javascript code! Please note that I have never developed any kind of plugin for firefox, I just want to know if that is an easy task to do (like less than an hour) I would also like to...

FF extension: displaying an array of string elements in a sidebar

I am developing a ff extension which displays a list of elements from an array (dynamic) in the sidebar. The array is dynamic and needs to be constructed in a function everytime the sidebar is opened (or any other event handler). Later, i will need to implement link functionality on parts of the string. What is the best way to go about t...

firefox sidebar menu or list of elements. resources/help

I am struggling to find any resources on firefox extensions which construct a sidebar and put elements into them. plus tyhe other functionalities within a sidebar. I have made a emptysidebar. Now i need to display a dynamic array(which is formed using a JS function). I have absolutely no idea how to go about it. Can someone please help!...

Javascript:history.back is not workin in XUL application

I have created a XUL application, it has got a link for navigating to previous page. This is my link <a href="javascript:history.back();">Back</a>, unfortunately it is not working!!! In firefox is working as expected, when I run it in XUL it is not working. Any idea, why it is not working. Thanks, Rajeesh ...

How do I get -moz-binding to work for ellipsis with data:text/xml?

We have a lot of elements on the project I am working on that use ellipsis styles, which, of course, work fine with pure CSS in all major browsers but FireFox. We implemented the -moz-binding fix for that which references the xml file with the binding information for cropping an element defined with XUL/XBL as defined here and it worked...

XUL: create menu items dynamically and set "selected" attr

I have a firefox extension Options pref panel, where I should dynamically create menu items and select particular item to be current. here is the XUL file part <menulist id="rss_service_combo"> <menupopup id="rss_service_menu"/> </menulist> Then in load event of the pref panel, using js I append menuitem elements into menupop. Th...

How do you submit an authenticated HTML form using XUL (Firefox extension) Javascript?

I am working on a Firefox extension, and in that extension I am trying to use AJAX to submit a form on a webpage. I am using: var request = Components.classes["@mozilla.org/xmlextras/xmlhttprequest;1"].createInstance(Components.interfaces.nsIXMLHttpRequest); request.onload = loadHandler; request.open("POST", url, true); request.send(va...

splitter is not resizing back in xul

while making the toolbar when i make my toolbar its working fine but when i dragged it back to orignal positon then its not comming back.Name3 is expanding but Name1 and name3 remain shrinked. why? ...

xpcom array can transfer in different xul files ?

Now I am developing a firefox extension, can I define a global array in a js with the main xul . and I found when I use it in another js with another xul , it could not worked , so I searched the document of Firefox development. I found a common array can not be transfered between two js files with different xul files. and then I difined...

onclick event from XML Nodes

My Documents are a mixture of XML and HTML Tags. where HTML tags are pulled from xhtml namespace and mine are from various namspaces. I wanna take user interaction events from XML Nodes of my Document. I First tried <do:landingTime xhtml:onclick="fnc">20:48:29.45</do:landingTime> with no Luck. But <xhtml:span onclick="fnc"> works. So is ...

Adding custom controls to Thunderbird (Extension)

I need to add a button next to From tag in the messege header. Anyone knows how to do this? ...

Changing the address bar after a redirect using Javascript.

I'm writing an extension for Firefox that involves using a link to a site that redirects to another. After it redirects I want to alter the url in the address bar. Any ideas on how to do this? ...

Should I learn XUL?

I'm familiar with web programming, both client and server side, and I'd like to expand a bit my knowledge in order to be able to write some desktop programs. My problem is that I'm not really familiar with the desktop way of managing widgets. As far as I understand, in a typical desktop programs, widgets have their own life, sending sig...

How to fix focus/clickability of XUL textboxes?

On a normal webpage <input type='text'/>, in Firefox, you can click anywhere on the element and the browser will "focus" on that element. On a XUL (Firefox extension) <textbox> element however, only clicking on the leftmost part edges of the textbox will focus it; clicking anywhere else on it does nothing. I find this really annoying, ...

Ideal UI markup language

A friend of mine and I are looking to start a project looking into accessible user interface (for blind users) design. There are a number of projects making existing GUI's accessible by tagging them with audio information but we're looking to work from the ground up and actually take input from a ML and create an accessible application....

How to replace a javascript file request with contents from another file in a FF addon?

I'm looking for some guidance on how to replace requests for a specific javascript file with another file that I'll package with the Firefox addon. ...

Targeting all RSS feed menus in XUL

I'm starting to learn XUL. I'd need to add an entry to each RSS feed menu in Firefox. How do I do such an overlay in XUL? The problem is that there may be multiple RSS feed menus, and they could be anywhere in the Bookmarks menu tree. For a start it would be nice to target at least those RSS feed menus which are direct descendants of the...