Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7828611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T10:25:01+00:00 2026-06-02T10:25:01+00:00

In my XUL application, I open a dialog window, by this code: var win

  • 0

In my XUL application, I open a dialog window, by this code:

var win = myWindow.openDialog("chrome://mywindow/content/mydialog.xul",
                  "Dialog creation",
                  "chrome, dialog, modal, resizable=yes",
                           params).focus();

And I access the information passed by user, by this code:

if (params.out){     
    dialogVariablesValues = params.out['inputValues'];
    sameDialog = params.out['sameDialog'];  
    (...)
}

When the OK button in the dialog window is clicked, the window is closed, the if (params.out) becomes true and I can get the values. I don’t have any problem with this approach. The problem is that I need to change my dialog window to be dependent. So I have changed the code to:

var win = myWindow.openDialog("chrome://mywindow/content/mydialog.xul",
                  "Dialog creation",
                  "chrome, dialog, dependent, resizable=yes",
                           params).focus();

But params.out is always null…

Does anyone know how I can get the values when the dependent dialog is closed?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T10:25:02+00:00Added an answer on June 2, 2026 at 10:25 am

    With a dependent dialog the execution continues after the openDialog() call even though the dialog is still open. So you want your code to be “notified” when that dialog is closed. The easiest solution should be passing a callback in the params and changing the dialog to call your callback when it is closed. So the code opening the dialog would look like this:

    params.callback = function(inputValues, sameDialog)
    {
      // Do something with the dialog result here
    };
    myWindow.openDialog(..., params).focus();
    

    And the dialog would have code like this:

    var inputValues = ...;
    var sameDialog = ...;
    window.addEventListener("unload", function()
    {
      // Dialog is being closed, call the callback
      window.arguments.callback(inputValues, sameDialog);
    }, false)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my button.xul file I have this: <script type=application/x-javascript src=chrome://mf_unblocker/content/button.js/> <toolbarbutton id=custom-button-1 label=Custom tooltiptext=MAFIAAFire:
I have a XUL file with iframe: <window> <iframe src=chrome://plugin/content/options.html style=width: 290px; height: 320px;
I've included jQuery by doing this: <?xml version=1.0?> <!DOCTYPE window SYSTEM chrome://orkutmanager/locale/browser.dtd> <overlay id=omcore
I've developed a firefox extension which contains a small dialog defined by this XUL
I'm writing a XUL application using JavaScript for the coding. I would like to
I am trying to get a description in a XUL application to wrap, even
I try to create some li elements in my XUL Application. Theres only the
I'm trying to dynamically create a set of labels in my XUL Runner application.
In my XUL I have the following code fragments: <map name=KeypadMap> <area href=javascript:pad('A') coords=1,1,31,31
I want to Embed SVG into XUL. I tried to use the this tutorial

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.