-
Opening a XUL dialog from JavaScript is usually easy, you use Window.openDialog method that is almost the same as Window.open but also accepts some parameters that the dialog will be able to access via Window.arguments collection. But what if your JavaScript code runs inside an XPCOM component doesn’t have a window? Still not very hard, you use nsIWindowWatcher.openWindow method then. The tricky part here is passing parameters to the dialog however. I had to resort to hacks here in the past, and other people seem to have issues with that as well, so I thought I would share the solution. (Read Full Article)
Related Articles
- What is going on with Internet Explorer?
- also published in Adblock Plus
- Using XULRunner platform
- also written by Wladimir Palant
- And who comes to visit your web site?
- also written by Wladimir Palant
- Blocking malicious sites with Adblock Plus
- also written by Wladimir Palant
- TomTom HOME and add-ons
- also written by Wladimir Palant
- Great Java news
- also written by Wladimir Palant
- Filtering HTML code in Adblock Plus
- also written by Wladimir Palant
- Dojo 1.0 Released: The Granddaddy is Born
- also mentions Javascript






Recent Comments
joew » Partial Functions in JavaScript
This is a fascinating article, partial function application is a really useful technique John's ...
pawan » Google
Here are two other similar products which I bookmarked in the past: http://www.maani ...
See all recent comments