xul

XUL key tag uage

I need to bind key shortcut to $ sign for < key > in XUL I tried keycode="36", modifiers="shift" key="4", key="$" but nothings seems working. Is there any way to do such thing? ...

Javascript rich text editor textbox for an XUL App

The functionality i am trying to implements will allow user add notes and format it with bold/italics, etc. using XUL app. Any suggestions would be greatly appreciated. Thanks PS: i have done searches on this site and have found multiple editors TinyMCE, webkit, FCKeditor. What i wanted to know is if anyone used any of these editors ...

Firefox Extension, get a reference to the loaded document using browser.contentDocument

I want to write a simple firefox extension. How can I get a reference to the loaded document object in a browser window? For example, how can I access the document in this html page loaded here on stackoverflow? According to the vague mozilla development center I can use browser.contentDocument, but it is not working for me. <?xml ...

tinyMCE and XUL

Has anyone used/integrated tinyMCE editor in a XUL App? I am getting the error - document.body is undefined. TIA ...

How to use Rich Text editor for an XUL application

I am trying to implement Rich text editor like http://tinymce.moxiecode.com/ for my XUL application. It looks like i can't user tinymce as some of its scripts is using the element "document.body" and firefox is not supporting it. Did any implement a rich text editor in XUL. Please let me know. ...

jQuery for XUL?

I have read on the internet and found out that jQuery works OK on XUL. My questions are: Are there any jQuery plugins that are specially made to work with XUL? Is there any other jQuery-like library that was specially made for XUL? I have not yet tested jQuery on XUL, I'm just asking these questions for curiosity. ...

Getting HTML out of selection / range from a web page in Mozilla Firefox

Hello, I currently using the following the get the selected text from a webpage into a custom firefox extension: getSelectedText: function(){ var textWindow = document.commandDispatcher.focusedWindow; var text = textWindow.getSelection(); if (text == null) {text =' ';} text = text.toString(); text = text.repla...

Change icon images for XUL textbox of type search

There's a search and close button images by default for a search textbox. How do I customize it? I would specifically like to change the X button (close) to the red X as you get on the tabs. ...

Finding the tab that fired an http-on-examine-response event

I'm using the nsIObserverService to monitor the responses, but it fires events for all tabs (browser in Mozilla terminology). I'd like to know which browser is getting the response in my observe method. ...

Firefox XUL textbox: How to scroll to the bottom?

I'm working on a Firefox extension, and I have created a multiline text box. When the user presses a button, I add text to the textbox by using (Javascript) TextBoxElement.value += "More Text"; The problem with this code, is that whenever more text is added, the textbox scrolls all the way to the top. With much testing, I haven't figure...

How do I retreive an XUL element’s actual width and height?

I wanna get the actual width of a element for presentation. How can I get it? I see HTML element has offsetWidth attribute but I can't find this attribute in XUL element ...

Create GStreamer XUL element?

I would like to create a custom XUL element named 'video' for a video editing application based on XULRunner. In the XPCOM documentation it is explained how to access your component from Javascript, but I can't seem to find any documentation on how to declare a new XUL element. Where can I find this? Can anyone point me in the right dire...

How do I display an array using XUL elements like a table in HTML

I have an array data = [{'name':'Bob','email':'[email protected]'}] How can I render this array using XUL elements (like a table in HTML)? I'm using pure javascript (do not using any JS framework) ...

Sending POST data in XUL?

I'm trying to send POST data to the current tab, based on this (https://developer.mozilla.org/en/Code_snippets/Post_data_to_window). But it doesn't seem to be working, nothing happens... I'd be very grateful to whoever shines light on the problem! Thanks in advance! :D var dataString = "name1=data1&name2=data2"; var stringStream =...

Having one "brain" in a Firefox Addon?

I have an addon that every 5 minuets or so checks an rss feed for a new post, and if there is one, it displays an alert(). Problem is, I'm afraid that if the user opens multiple windows, that when there's a new post a millions of alerts will popup saying the same thing. Is there anyway to have just one "brain" running at a time? Thanks ...

How can I open an URL in a hidden tab in Firefox

I'm developing a Firefox add-on and want to get the document content (DOM Elements) of an URL for parsing some data but don't want user to see this action. Is there any way to open an URL in a hidden tab and get the document content of this tab? Or any other solution? ...

Firefox extension that overlays persistent iFrame?

Is it possible to build a Firefox extension that displays a floating, persistent iFrame over the page content? I know it's possible to add iFrames using XUL. For instance, you can add an iFrame to a persistent sidebar. However, I want the iFrame to float over the page content, not cause the content to shrink. So far, my only option i...

onClick event does not work with xbl:inherits

I'm developing a Firefox add-on and having a problem: onClick event does not work with xbl:inherits. Other attributes like value and src work well Here is my code Binding: <binding id="CF-review"> <content> <xul:vbox> <xul:label class="CF-review-url" xbl:inherits="onclick">[more]</xul:label> </xul:vbox>...

Cannot click on textNode element

Here is my XBL code: <binding id="CF-cart"> <content> <xul:hbox onclick="return productClick(event)"> <xul:label value="Text line 1"/> <xul:description> <children includes="#text"/> </xul:description> </xul:hbox> </content> </binding> And JS: var elem = docum...

How to remove drop down menu indicator on a button in a XUL Firefox extension?

I'm working on a Firefox extension that creates a toolbar in the browser. I'm using a with type="menu" to create a menu that pops up when the button is clicked. By default, setting type="menu" creates a little menu indicator triangle, like in this image: Is there any way, either in XUL or in the CSS, to get rid of this indicator tr...