xul

Best Debugging Tools for JavaScript/xulrunner Development

In the past few months I began my first serious JavaScript development, as I began developing XUL applications. I use Notepad++ as my editor, but I was pretty appalled to find (as far as I can tell) that Venkman/Javascript Debugger is the tool for debugging. It seems like a poor replacement to Visual Studio for .Net languages. Am I mi...

Checking if userinput is a valid URI in XUL

Is there an built-in function/method that can check if a given string is a valid URI or not in the Mozilla XUL toolkit. (I have looked for one but found none, but since this is my first time using XUL and it's documentation it could be that I just overlooked it. So I'm just making sure before I start writing my own IsValidURI function) ...

How do you make a post request into a new browser tab using JavaScript / XUL?

I'm trying to open a new browser tab with the results of a POST request. I'm trying to do so using a function containing the following code: var windowManager = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interface s.nsIWindowMediator); var browserWindow = windowManager.getMostRecentWindow("...

Reading from a http-get presenting in Firefox bookmarks

I'm trying to get a Firefox plugin to read data from a HTTP get, parse the results and present them as links in a bookmark-like drop-down menu. My quesion then is: Does anyone have any sample code that will do this? ...

How do I copy image data to the clipboard in my XUL application?

I have a XULRunner application that needs to copy image data to the clipboard. I have figured out how to handle copying text to the clipboard, and I can paste PNG data from the clipboard. What I can't figure out is how to get data from a data URL into the clipboard so that it can be pasted into other applications. This is the code I use...

xul: open a local html file relative to "myapp.xul" in xul browser

in short: is there any way to find the current directory full path of a xul application? long explanation: I would like to open some html files in a xul browser application. The path to the html files should be set programmatically from the xul application. The html files reside outside the folder of my xul application, but at the same...

How do I access (listen for) the multimedia keys (play/pause) in Mac OS X?

I want to write a Songbird extension binds the multimedia keys available on all Apple Mac OS X platforms. Unfortunately this isn't an easy google search and I can't find any docs. Can anyone point me resources on accessing these keys or tell me how to do it? I have extensive programming experience, but this will be my first time codin...

What are the "must have" features for a XML based GUI language

Summary for the impatient: What I want to know is what you want to have in a new gui language. About the short answers mentioning $your_favorite_one; I assume you mean that, such a language should look like $your_favorite_one. These are not helpful. Resist the temptation. I'm thinking on the user friendliness of XML based languages suc...

Save drop-down history in a Firefox Toolbar.

I'm doing some testing on Firefox toolbars for the sake of learning and I can't find out any information on how to store the contents of a "search" drop-down inside the user's profile. Is there any tutorial on how to sort this out? ...

Can I get the current page sourcecode from a firefox extension?

Can this be done? How? I want to write my own extension. Can Get the current page sorcecode in my own extension? ...

How to update Firefox 2 compatible extensions using IFRAME to Firefox 3?

I am trying to update a custom firefox extension that I created for some tasks at work. Basically it is a sidebar that pulls up one of our webpages in an iframe for various purposes. When moving to Firefox 3 the iframe won't appear at all. Below is an example of the XUL files that contains extension specific code including iframe, curre...

What is the simplest way to set up a BIRT report viewer for a xulrunner application?

I recently began using BIRT and have developed a report to use with my xulrunner application. What I haven't yet figured out is how I should deploy the viewer. It seems like BIRT mostly targets Java applications, so there are instructions for deploying on J2EE, JBoss, and other technologies -- with which I am not familiar (but I'm not ...

XUL - sidebar buttons that load new pages in main browser window.

I'm learning how to make a firefox extension. I have created a xul and overlay file that makes a sidebar in my browser. I'm trying to put buttons in my sidebar that load different pages within the main browser window. I'm not sure how to access the main browser window and load a new url within it. I have here a simple button and script t...

In a Firefox extension, how can I copy rich text / links to the clipboard?

Specifically, I want to copy a link (with text and location) and then to be able to paste it, e.g., into Word as a link. ...

How can I get the window object that an HTML node belongs to using JavaScript?

Because of several iframes, XUL browser elements, and so forth, I have a number of window objects in my XULRunner application. I'm looking for the best way to find the window object that a specified node belongs to using JavaScript. So, to be more specific, given node x, I need to find the specific window object that contains x. ...

Using preferences in Firefox

How do I access user preferences in Firefox? I have the following code: var control = document.getElementById(control_id); if (control) { control.setAttribute('color', nsPreferences.copyUnicharPref(prefstr, default_val)); } But when I run this, I get the following: Error: nsPreferences is not defined Source file: chrome://backgro...

How does XUL (specifically firefox) statusbar positioning work?

When I go to create my status bar overlay, I note that I can include a position attribute. I want to be able to dynamically change this attribute. Near as I can tell, just using JavaScript to find the element and change the position attribute doesn't move the status bar panel around on the status bar. Any suggestions as to how to accomp...

Monitoring page load event in selected tab from firefox sidebar

I want to be able to run a function in my firefox sidebar js file when the selected tab in the main content window is reloaded or changed. So the sidebar can change depending on the site the user is looking at. Anyone able to point me in the right direction? ...

Ajax requests from xul not working in firefox 2

I'm working on a firefox extension and have been developing it in firefox 3, i went to test it on firefox 2 and for some reason none of my HTTP requests are firing. The format of the requests are below (using prototype): theResponse = function(response){ //some code } new Ajax.Request(url,{ method:'get', parameters : {url: currentURL},...

How to create firefox3 sidebar?

Hi I want to create sidebar in Firefox 3 but have no clue how to do this. I find tutorial on MDC (https://developer.mozilla.org/en/Creating_a_Firefox_sidebar) but after installation extension do not work with "not compatible with Firefox 3.0.3" error. Does anybody have any tip or link to some resource about how to make sidebar? ...