Hi Brian This method only works when user opens setting window first! In my case I want to run a function from setting.js when there isn't any open "setting window"
Do you have any idea about this case? -Joe On Thu, Feb 26, 2009 at 8:17 PM, Brian King <[email protected]> wrote: > joe ertaba wrote: > >> Hi >> >> Here is a sample structure >> >> -Firefox window >> -Ovarlay.xul >> -Overlay.js >> >> -setting window >> -setting.js >> --MyFunction() {...} >> >> >> I want to call MyFunction() from Overlay.js >> > > Get the settings window (xWin say) using nsIWindowWatcher, and then call > xWin.MyFunction() > > - Brian > _______________________________________________ > Project_owners mailing list > [email protected] > https://www.mozdev.org/mailman/listinfo/project_owners >
_______________________________________________ Project_owners mailing list [email protected] https://www.mozdev.org/mailman/listinfo/project_owners
