xul

open a new window displaying the google search results

Hi, when user selects a text, my extension automatically searches on google the selected text and the search results are displayed on a new popup window. var searchWindow = ww.openWindow(null, "http://www.google.com/search?q=" + encodeURI(annotateSelectText)+"", "searchWindow", "menubar=0,status=0,width=750,height=...

NS_ERROR_FILE_IS_LOCKED when several requests using SQLite on mozilla plateform

I'm trying to use Storage mechanism in mozilla platform (in thundebird 3.0). The following code is used after each test to erase the table present in the database: function tearDown() { let database = new Database(); let req1 = "SELECT name FROM sqlite_master WHERE type='table'"; let statement = database.connection.createStateme...

Dynamically Created LABEL Element not showing up in XUL application

Hi, I'm trying to dynamically create a set of labels in my XUL Runner application. I have an HBox like so: <hbox class="upload-attachments"></hbox> If I manually assign a label element to it like so: <hbox class="upload-attachments"><label value="test" /></hbox> It works fine. Also, when I query the object in Javascript I can ac...

Generating thumbnails of the webpages visited on a client side

Hi, I developing an extension - firefox so with this extension i keep track of the pages the user visits and now what i want to do is, i want to be able to popup a thumbnail of the webpage when the user hovers the mouse over the link. i have done that using third party websites for generating thumbnials such as http://images.websnapr.co...

Formatted XUL Tab caption

Is there an easy way to have formatted tab captions in XUL? I want to have a specific part of the tab caption in bold font. ...

How to put XML element's content into XUL template?

Hi, I've gotten trouble with passing XML data into XUL template. Look: For example, we have the datasource XML with the next structure: <people> <person name="Joe"/> <person name="Tom"/> <person name="Lisa"/> <person name="Bob"/> </people> In this case we may use the next template in XUL: <template> <query expr="person"/> <ac...

Open links in new tab in Firefox

I am developing an Firefox extension. How can all the links on a webpage to be opened in a new tab? ...

Developing Client in XUL

We have a client server application for restaurants, both developed on the Java platform. The Client and Server exchange proprietary messages (something similar to REST). Can I replace the Swing Client with XUL? ...

How are firefox notifications implemented?

Hi! I would like to implement a notification mechanism in a firefox extension equal to firefox's "save password" option or popup blocking warning with the yellow bar sliding in above the main window. Does anybody now how this can be achieved in XUL? Thanks for any help. ...

Javascript or XUL windows WITHOUT iframe

Hello everyone, I am trying to build a multi-window website for my bookmarks, but I have some problems. Here is the js version of what I am trying to build: http://www.students.itu.edu.tr/~ozyildiri2/zpwin/zapatec Unfortunately, there are problems with this approach. The sites in the windows are loaded through iframes, and iframes hav...

CSS pointer-events='none' and/or XUL mousethrough='always' in web pages for Firefox

Morning all. Very recently I asked this question on how to pass clicks through an element (e.g. full screen overlaying ). Received some good advice, but I still wondered which browsers supported this natively... For those skipping the previous link, the overlay is purely cosmetic, must be overlayed and should ignore clicks (all mouse e...

Duplicate event listeners when multiple windows are open (Firefox extension)

My firefox extension calls an observer function on load that intercepts http requests (http-on-modify-request) from certain domains and opens them in a new tab. The issue I'm having is that if multiple browser windows are open (not tabs, but new browser windows), then the JS for my extension is executed multiple times, and as a result, ...

Why does this XUL code works and the Javascript equivalent doesn't?

xul way: <toolbar id="PersonalToolbar"> <toolbarbutton id="Testing-Doit-Button2" class="bookmark-item pagerank" tooltiptext="Do it!" oncommand="testing_doit();" /> </toolbar> javascript way: function createBookmarkItem() { const XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; va...

I add 10 functions to a code, I don't even call any of them, but the code stops working!

Alone, this code works: CustomButton = { 1: function () { alert("Just testing") }, } I add the code below and the code above stops working: function getvisitingnow() { return document.location; } function getcontents(uri) { var req = new XMLHttpRequest(); req.open('GET', uri, true); req.onreadystatechange = function (aEvt)...

getElementById("bookmarksBarContent").appendChild(button) is interpreted as getElementById("PersonalToolbar").appendChild(button)

"At the moment you can't overlay an element without an ID, so you need to use DOM methods to tweak the element you need in a load handler." - Xul Overlays I'm trying! For record: Using the Javascript Shell means using Firefox -> Tools -> ExtensionDeveloper -> Javascript Shell -> enumerateWindows() -> chrome://browser/content/browser.xu...

Access tab loading image using jetpack

Is it possible to access and trigger the tab loading image within a Firefox tab using jetpack? I want to create a jetpack that will trigger the tab loading image when it is performing a query but i'm not sure if this is even possible. ...

How to reference external function in javascript callback?

This is for a dialog in a Firefox extension. How can I make the following code work, so that when the listener callback is called, it can reference external function onSave2(). I keep getting function onSave2() is not defined. Also, I noticed that when confirm is called I get this: Error: Component returned failure code: 0x80004005 (...

I try to add a new button to Firefox, but it's the old button that gets added!

Once, I tried adding a button with "bookmark-item pagerank" as class to PersonalToolbar. Now, the code... function createToolbarButton() { const XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; var anitem = document.createElementNS(XUL_NS, "toolbarbutton"); anitem.setAttribute("id", "Testing-Doit-But...

Accessing an iFrame's dom from a Firefox Extension

Hi all, I've spent a long time trying different things to get this to work but nothing does and documentation is not helping much. I'm trying to populate a form inside an iframe that I dynamically inject into a page. To inject that iframe I do: myObject.iframe = document.createElement("iframe"); myObject.iframe.setAttribute("src", dat...

XUL How to create autocomplete with behaviour similar to context popup.

I need autocomplete feature to be added into the editor which is iframe inside < browser >. The behavior should be similar to context menu (so popup should be shown near the text cursor) but because context menu attribute is already occupied (this menu works fine) by another functionality I can't use it. Is there any natural way to do th...