xulrunner

How can I change (from JavaScript) the title of a XUL window?

In a xulrunner app, I seem to be unable to set the title from JavaScript. I have tried setting in these two ways: <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <window id="mywindow" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" onload="go();"> <!-- your code here --> ...

How to achieve flow layout in XUL?

I'm creating a UI using XUL. I have N buttons I would like to add, and all I care about is that they all show on the form, regardless of the form's size. If I add a new button later or remove an existing button, I'd like to just delete the one <button> element rather than having to move things around inside grid or hbox/vbox elements. ...

XUL runner as GUI framework for my application,what am i missing here?

Hello all recently i was introduce to the mozilla XUL runner as framework for front line GUI this seems to be idial framework to me ( none GUI person ) based on xul and js for events and gives me the possibility to use c++ as back end ( xpcom ) . its seams to good to be perfect . my question is for the guys that have expireance in th...

can i use java with XULRunner GUI framework ?

Hello i know i can write c++ back end and use xul(runner) as the front end but can i use java as back end and still use xul as front end ( executing java code ) ? ...

How to run code during the "firstrun" of a Xulrunner Application

I am writing a custom xulrunner-based app and I wish to have some files deployed in the user profile the first time the application is run. I placed the files in my application's defaults/profile directory but they did not get copied to user's profile during the first run of the application. Should I write some additional code or this ...

javascript server under XULRunner fails.

I'm trying to debug a DOM scraping packaged called crowbar. Anyhow, when I run I get: Error: [Exception... "Component returned failure code: 0xc1f30001 (NS_ERROR_NOT_INITIALIZED) [nsIServerSocket.asyncListen]" nsresult: "0xc1f30001 (NS_ERROR_NOT_INITIALIZED)" location: "JS frame :: chrome://crowbar/content/crowbar.js :: onLoad :: l...

Problem with Aptana Studio & XULRunner 8.1

Hey guys, I recently installed Ubuntu Jaunty and I'm encountering a problem when I try to run Aptana Studio under it. Any interaction with the internal browser crashes the system. I checked the log and after some Googling came to the conclusion that it was crashing due to the incompatibilty with XULRunner 9.0 which is installed on my sy...

How to set a xulrunner main window's minimum size?

Hi, I want to set a minimum size for my xulrunner applications' main window.I have tried minwidth and minheight but didnt work.wat am i missing out? ...

Writing a non-GUI bot using Mozilla Framework

Hi, I'm looking for a way to write a non-GUI bot using Mozilla Framework. The bot should be able to work like normal browser (automatically download relevant JS files, make XMLHTTPRequests, run JS operations, modify DOM), except no GUI will be needed. I wonder if it is possbile to build XULRunner without X, GTK/KDE (without any GUI dep...

XULRunner: Prevent links to arbitrary domains

Hi, suppose, we have a Mozilla Prism like XULRunner app. There is a XUL window with a <browser/> element, where the browser shows a web page on a given domain (say, example.com). Now there are several links on example.com. If a user follows a local link (i.e., stays on example.com) she should be allowed to follow. If on the other hand ...

Embedded firefox/xulrunner causing AccessViolationException

Hello, I have for the most part successfully embedded firefox/xulrunner into our c# application, but it is not without troubles. Once in a great while a AccessViolationException will be thrown which I believe is caused by the GC moving a managed object in memory and the unmanaged xpcom attempts to use it after it has been moved. For exam...

XULRunner Busy/Loading indicator

Hi all, I have an XULRunner based application in which I need to (a) ask for user input using a custom dialog, and when the user clicks "OK", (b) perform the requested operation. This operation is an asynchronous operation on a server, and can take some time, so I would like to show a "loading" dialog or some form of busy indicator. I h...

Flexible canvas in XUL

Hi all, I have a XULRunner application that I want to have display 2d graphics in a HTML element. I would like to be able to repaint those graphics when the window resizes. The layout looks something like this: <box flex="1" id="canvas-box"> <html:canvas id="canvas" flex="1"> </html:canvas> </box> First of all the "width" and "heigh...

XULRunner , Python and Django : How to ?!

Hello , How to add Python and Django with XULRunner !? Found this tutorial useful , but somehow i was not able to add django ! Any idea ?! ...

3d widget in XULRunner application

Hi all, Does anyone have any experiences trying to include a 3d widget in a XULRunner application? One direction I've been trying is embedding a Java3d applet, but there seem to be a host of problems controlling that applet from the JS of the main application. Another possibility would be if there was some sort of javascript library usi...

How to catch xulrunners close event and cancel it?

Hi, I want to catch the close event of my xulrunner app when user clicks the close button of the main window and ask them for confirmation.If they dont confirm ,i want to cancel this close event and continue the application. I tried OnClose Event ,but i was not able to cancel it. How do i implement this? ...

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...

How do I link to a DLL from javascript in XULRunner?

I have a dll (that I didn't write) and I would like to use it in an XULRunner application. I know nearly nothing about this, so bear with me. Apparently I can use XPCOM to load the dll and then call functions in it. How would I do that? ...

Running xulrunner multiple times concurrently

We have an xulrunner application that is running as a background html to pdf converter. This is essentially a commandline application and shows no user interface. However, xulrunner defaults to trying to share profiles and instances of the application. How can we run multiple instances of the application concurrently without hitting prof...

How to distribute a folder as a reference?

I am making a C# app and I am using GeckoFX to embed Firefox into my app. For anyone interested, I got it here: http://geckofx.org/. The problem is, I want to deploy GeckoFX with my app and I don't know how to do it. The line of code I use to initialize GeckoFX is this: Skybound.Gecko.Xpcom.Initialize("C:\\xulrunner"); This assumes t...