We're looking for a person or people to help audit MDN to find places we could speed up. Is this you or someone you know? Check out the RFP: https://mzl.la/2IHcMiE

Adding preferences to an extension

Why is infoReceived() skipped when refreshInformation() is triggered by changing the "symbol" preference in the options window?

VisualFuture 16:40, 17 March 2008 (PDT)

All references to the preferences should be


rather than


as explained in the article's on this site called "Extension Ettiquette".

-- <popupset id="mainPopupSet"> <menupopup id="stockmenu" oncommand="var val=event.target.value; if(val) StockWatcher.watchStock(val)"> <menuitem label="Refresh Now" default="true" oncommand="StockWatcher.refreshInformation()"/> <menuseparator/> <menuitem label="Apple (AAPL)" value="AAPL"/> <menuitem label="Google (GOOG)" value="GOOG"/> <menuitem label="Microsoft (MSFT)" value="MSFT"/> <menuitem label="Yahoo! (YHOO)" value="YHOO"/> </menupopup> </popupset>

--Nickolay 13:36, 26 April 2006 (PDT)

Oh, and I would use an anonymous wrapper function here, in order to be able to use this in refreshInformation:

window.setInterval(this.refreshInformation, 10*60*1000);

--Nickolay 05:02, 27 April 2006 (PDT)

Document Tags and Contributors

 Contributors to this page: fscholz, VisualFuture, rtpHarry, Nickolay
 Last updated by: fscholz,