Questions tagged [xul]

XUL is an XML-based user interface markup language developed by Mozilla. It allows creating native-looking applications and is the base of Mozilla products like Firefox and Thunderbird as well as applications based on the Mozilla XULRunner platform.

XUL (XML User Interface Language) is a markup language developed by Mozilla. It allows creating native-looking application user interfaces and integrates with web technologies like JavaScript and CSS. It is a cornerstone of Mozilla products like Firefox and Thunderbird as well as applications based on the Mozilla XULRunner platform.

The primary source of XUL documentation is the Mozilla Developer Network, with the XUL tutorial being particularly recommendable when learning XUL.


Useful links

1334 questions
0
votes
2 answers

How to hide command prompt window while running .bat file using nsIProcess?

My code: var fpath="C:\\TVT_"+cur_date+"_"+cur_time+".avi"; Components.utils.import("resource://gre/modules/FileUtils.jsm"); var env = Components.classes["@mozilla.org/process/environment;1"] …
Himanshu
  • 825
  • 2
  • 10
  • 24
0
votes
1 answer

How exactly do I get the following GUI in a Firefox extension?

I am new to Firefox development and am using the Add-on SDK. I would like to know how to get the following user interface in an extension: Is this interface a panel? If not, what is it and how do I go about getting this interface in a Firefox…
user1092042
  • 1,297
  • 5
  • 24
  • 44
0
votes
2 answers

Get menuitem from context menu in firefox

I've written a Firefox extension which appends a menuitem onto the context menu and now i want to hide the item unless context of the click is on text. For some reason the oncontextmenu event is never triggered ('context opened' is not shown on…
bobbyrne01
  • 6,295
  • 19
  • 80
  • 150
0
votes
1 answer

Using a regular expression in JavaScript

I'm trying to develop an application that selects words in the following pattern: ([az] * \. [az] *), made the following JavaScript function and executed it in XUL Explorer.
ericmoraess
  • 374
  • 1
  • 7
  • 16
0
votes
1 answer

How to hide treecols in treeview?

I try to hide treecols in treeview in XUL by setting style to display: none. The labels of treeview rows also disappear however. How can I hide treecols while keeping rows visible?
TN.
  • 18,874
  • 30
  • 99
  • 157
0
votes
1 answer

Integrate web with desktop application

I have to integrate a single page javascript web application which I wrote with a bunch of desktop applications which I don't control, but I'm expected to provide integration instructions. The initiator of communication is a desktop application. Let…
Aleš Kotnik
  • 2,654
  • 20
  • 17
0
votes
0 answers

can i take control of function inside xul javascript file?

i have this object in js file inside xul file: var show={ showIt:function(){ alert("simple function"); } }; this is the html file:
//in addition i have also script on the…
Roy
  • 251
  • 3
  • 10
0
votes
3 answers

Implementing splitter with no width inside a box

I have a horizontal box consisting of 4 other boxes separated by splitters. I want to use a splitter that looks like the tree-splitter (with no width), but whenever I try to use it, the splitters disappear and the columns cannot be resized. Any…
Artur
  • 3,284
  • 2
  • 29
  • 35
0
votes
1 answer

XUL JS printing error to console

I am really a XUL starter, i am desperately trying to write an application that will print "Hello world" to console when a button presses, i need to display debugging information also. Although i didn't find impressive documentation and tutorial for…
Bijoy
  • 399
  • 2
  • 7
  • 15
0
votes
1 answer

Processing heavy operation in background in Firefox extensions

I am working on a firefox extension that gets the html content from the current tab in the browser. Majority of the processing takes place in popup.js file which is embedded in the popup UI that is displayed on clicking the toolbar icon for the…
Vivek
  • 680
  • 1
  • 12
  • 24
0
votes
1 answer

Catching "Server not found" exception

In a standalone XUL app, I'd like to catch the server not found exception. I've tried by checking state in onStateChange event of the nsIWebProgressListener, but this doesn't seem to work. My onStateChange event implementation is as shown below.…
okello
  • 601
  • 10
  • 27
0
votes
1 answer

How do I select a tab and set content of the tabpanel in JavaScript

I'm stuck at this: I've created tabs and corresponding tabpanels. By default, I've hidden the tabs. To make a tab visible, I use this JavaScript line: document.getElementById("tab-id").setAttribute("selected", true); However, the content of the…
okello
  • 601
  • 10
  • 27
0
votes
1 answer

Standalone XULRunner Application ProgressListener

I'm developing a standalone XULRunner application, in which its important to give a user feedback on what is happening when a page is loading. My first implementation was guided by the MDN tutorial. However, this could only work with pages that I…
okello
  • 601
  • 10
  • 27
0
votes
1 answer

Trouble accessing a XUL element from JavaScript

I am having problem to access an element in my file.xul using DOM methods as given below if I do it inside the function someone.listen_request(). But it works fine if I do it inside the progress_bar() function. Can anyone help me in this case. My…
Himanshu
  • 825
  • 2
  • 10
  • 24
0
votes
1 answer

setTimeout is not working in XUL 7

I'm unable to make use of setTimeout() function in XUL 7.0, it is not working. while closing XUL window, i have created one event listener as like below. window.addEventListener("close",function(event) {     try   {   setTimeout(function() {…
Naresh
  • 53
  • 2