Search completed in 2.01 seconds.
PopupNotifications.jsm
the popup
notifications.jsm javascript code module provides a popup notification box service.
... to use this, you first need to import the code module into your javascript scope: components.utils.import("resource://gre/modules/popup
notifications.jsm"); once you've imported the module, you can then use the popupnotifications object it exports; this object provides methods for creating and displaying popup notification panels.
Using popup notifications
creating a popup notification popup notifications can be created using the popup
notifications.jsm javascript code module.
...the popup
notifications.jsm code module adds a popupid attribute to the notification object's icon element.
... components.utils.import('resource://gre/modules/popup
notifications.jsm'); var notify = new popupnotifications(gbrowser, document.getelementbyid("notification-popup"), document.getelementbyid("notification-popup-box")); var notification = notify.show( // browser gbrowser.selectedbrowser, // popup id "pdes-popup", // message "hi, there!, i'm gonna show you something today!!", // anchor id null, // main action { label: "clic...