Search completed in 2.01 seconds.
4 results for "Notifications.jsm":
PopupNotifications.jsm
MozillaJavaScript code modulesPopupNotifications.jsm
the popupnotifications.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/popupnotifications.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
MozillaUsing popup notifications
creating a popup notification popup notifications can be created using the popupnotifications.jsm javascript code module.
...the popupnotifications.jsm code module adds a popupid attribute to the notification object's icon element.
... components.utils.import('resource://gre/modules/popupnotifications.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...
Index of archived content - Archive of obsolete content
ArchiveIndex of archived content
banner panels homeprovider.jsm homestorage nativewindow contextmenus doorhanger menu toast notifications.jsm pageactions.jsm prompt.jsm runtimepermissions.jsm snackbars.jsm sound.jsm tab addons developer guide code snippets creating a user interface firefox hub walkthrough initialization and cleanup prerequisites ...
JavaScript code modules
MozillaJavaScript code modules
popupnotifications.jsm gives an easy way to present non-modal notifications to users.