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 6567973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:24:00+00:00 2026-05-25T14:24:00+00:00

This code working for me to display the door-hanger popup. But, when I want

  • 0

This code working for me to display the door-hanger popup. But, when I want to use the time-out under the options it wont show up the pop-up notification.

Syntax:

Notification show(browser,id,message,anchorID,mainAction,secondaryActions,options);

My code:

PopupNotifications.show(gBrowser.selectedBrowser, "PDE-popup",
"Hi, there!, You can Build a PaDE by clicking on the PDE button!!",
null, /* anchor ID */
{
  label: "Build PDE",
  accessKey: "D",

  callback: function() {
                if(nodeSRC!=null) pde.emptyNodeSRC(nodeSRC);

     window.openDialog("chrome://PDE/content/PDEBuilder.xul", "hello", "chrome,width=400,height=360",userContent, nodeSRC);

  }
},null, { timeout: Date.now() + 10000,
                            persistWhileVisible: false });

1.What’s wrong with this code?
2. How can I place this door hanger popup to be displayed on my tool bar button?
This is the tool bar button

    <toolbarbutton id="pde-toolbar-button" label="Detect"/>

I want to disappear the pop-up notification in 10Seconds! Thank u guys.

I have no secondary options so, I made it null but the time-out is not functioning.

http://scenari-platform.org/svn/dev-core/trunk/Lib_XulRunner/Darwin/modules/PopupNotifications.jsm

https://developer.mozilla.org/en/JavaScript_code_modules/PopupNotifications.jsm#Notification_events

enter image description here

  • 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-05-25T14:24:01+00:00Added an answer on May 25, 2026 at 2:24 pm
    Components.utils.import('resource://app/modules/PopupNotifications.jsm');
    var notify  = new PopupNotifications(gBrowser,
                                           document.getElementById("notification-popup"),
                                           document.getElementById("notification-popup-box"));
    
    var notification =  notify.show(
    gBrowser.selectedBrowser,  /*browser*/
    "PDES-popup", /*id*/
    "Hi, there!, You can Build a PDE by clicking on the PDE button!!",/*message*/
    null, /* anchor ID */
    /* mainAction */
    {
              label: "Build PDE",
              accessKey: "D",
    
              callback: function() {
                          if(nodeSRC!=null) pde.emptyNodeSRC(nodeSRC);
    
                  window.openDialog("chrome://PDE/content/PDESBuilder.xul", "hello", "chrome,width=400,height=360",userContent, nodeSRC);
    
              }
            },
    null, /* secondaryActions*/
    
    { blablal:'options'}
    
    );
    
    setTimeout(function(){
    notification.remove();
    }, 900);
    

    The above code works fine, finally got a clear explanation from other forum for my problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to display data from database in DataGridView...This is my code...Its not working...Can
this seems to be weird but it really happened. I have this code working
This code is working on other test environment but not on mine. Do you
This code was working earlier today, then randomly stopped, something must of changed, but
I have this code. The code below is working in Firefox, but it is
This code is working on browsers other than IE: table.tbl.tr.td:first-child { display: none; }
I had this code working before, but have somehow deleted it as I was
This code is working but there must be a better way to do this
I have this code working, but it seems clunky to me, is there a
For some reason this code is working when i click on the #display div,

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.