[Project_owners] Preferences in Mozilla
Jaap A. Haitsma
jaap at haitsma.org
Mon Dec 29 23:12:28 EST 2003
> Jaap A. Haitsma wrote:
>> 1. Why are the values in the doOnOk callback not the ones I entered,
>> but the ones that were there when the panel got lauched.
> Are the values actually getting saved when you switch panels?
If I switch panels none of my code gets called. If I hit OK in another
panel my doOnOk gets called, and my preferences get saved somehow but in
the doOnOk I still don't see the current values when I dump them. If I
just switch panel and then go back I see the correct values I entered in
My doOnOk looks like this
var prefWindow = parent.hPrefWindow;
// OK could have been hit from another panel, so we need to
// get at dictionarysearchData the long but safer way
var dictionarysearchData = prefWindow.wsm.dataManager
var url = dictionarysearchData;
var label = dictionarysearchData;
var accesskey = dictionarysearchData;
>> 2. Why do the normal callbacks (ondialogaccept etc.) not work??
> Because you're a page, not a dialog...
More information about the Project_owners