xul

Query URL for Log In Status, javascript

This may seem like a no-brainer, but I can't find a way to do this that isn't considered a security issue (other than the obvious ways)... So, I want to build an add-on for Firefox to use with my team. Basically it will be a status bar icon letting us know if the authentication cookie for our tools site has expired, so we can tell witho...

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

Firefox Extension -- Load page in menu bar?

I am not sure if this is possible, partly because I have no clue what the terminology would be... I want to create an extension that, among other things, will have a feature where, when the user clicks on the status bar icon a small window will slide out and inside that window will be a website login page. They would then login as norma...

will an iframe in xul maintain ssl security?

Anyone reading my last batch of questions knows I'm working on a Firefox add-on for my office intranet. So, here's the latest; this time a concern instead of an obstacle: So, my first plan was to build a sign-in form right into the chrome, so that it blended and didn't require any dealings with iframes/browsers/etc. But after some think...

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

resize a window in Xul

Hi All, Can anyone tell me that how can i resize a window in XUL.I tried resizable but it is not working. ...

XUL, IFrames and Haptek Player

Hi guys, I'm trying to create a panel popping up from the sidebar which contains a Haptek player. I wasn't able to get it to work initially because of the document.write() command in it's javascript interface. So I ended up using an iframe object inside the panel which contained an HTML page loading the Haptek player. The problem howeve...

Is XML or XUL the future of Java GUI building?

After spending a lot of time and code on programming in Swing, I thought this can't be state-of-the-art Java GUI building. After not finding a user-friendly visual gui bilder for eclipse I stumbled upon declarative GUI building with XML UI toolkits... and I thought: This must be it! I think it's the right way to go, easy and also close t...

How to listen to 'SendMail' event in Thunderbird?

I need to intercept all mail sent by Thunderbird and block sending if there is a predefined string in the mail body. It should be a part of our already existing XPCOM dll addon. Do you have any ideas how to implement it? ...

Closing xul wizard from overlay.js

While developing a firefox extension, I create a wizard window from overlay.js using: this.wizard = window.openDialog("chrome://firenow/content/wizard.xul", "","chrome, dialog, modal, resizable=no", params); this.wizard.focus(); How can I close the wizard from overlay.js? I should call its cancel() function but I can't get it working!...

setting classpath for java classes(jar file) in XUL, to access via javascript.

I am implementing firefox extension using XUL. I have set of java classes that is zipped as jar which needs to be accessed through javascript. If I copy my jar into jre's lib/ext then javascript will be able to invoke my java classes. If I remove from ext and package this jar in xpi, Javascript is unable to find the classpath for my ...

Can I disable the button part of a XUL toolbarbutton, but not the menu?

I have a toolbarbutton and in certain cases it needs to be disabled. However, I want the menupopup child to still be enabled. Is this possible? If not, any suggestions on how to achieve similar functionality? I don't want to use two separate buttons for two reasons: I like the look of the entire button being outlined when I hover over...

appendChild in a XUL Firefox addon breaks

I am working on a Firefox addon and I currently need to dynamically add menuitems to a menupopup element. I have tried basically all of the approaches on the Mozilla Developer Center and none of them work. function populateDropdown() { var counter = 0; for (var key in services) { var newMenuItem = document.createElementNS("http:...

XUL event: new page loads / get content of a page

How can I catch the event when "a page starts to load in the Browser"? How can I access the HTML and manipulate it with XUL? ...

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

XUL - Access to image information

Hello All, I trying to figure out how to write a Firefox extension that would give image information when i right-click on the image. Basically, I want image path when user right-clicks on the image. Any help would be greatly appreciated. Thanks. ...

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

Opening a xul file in response to a toolbar extension button click

I'm currently building my first Firefox extension, and am having a little difficulty with one piece of functionality. I'd like to open a new browser tab in response to a button click on the toolbar. The new tab should contain the contents of a webpage, together with some extra buttons. At the moment I've created a separate xul file for ...

XMLHttpRequest problem

Hi, I am writing one Web Application using XUL. In that Iam using AJAX XMLHttpRequest Object for sending request to server. When I use GPRS connection to send the request to the server from my web application the request is not going, but readyState has changed to 4 and status=0. If the request is not going out how the readyState is Cha...

XUL - textbox problem

I am writing a Firefox extension. When a user highlights and right clicks a selected text on a webpage, the extension captures the text and displays it in a textbox (xul window). The textbox shows the correct formating (like the line breaks, spaces, * for li tags.). But the problem happens when i try to store the textbox value in a varia...