[Project_owners] Run JS function of another window
joe ertaba
belaviyo at gmail.com
Sat Feb 28 02:38:16 PST 2009
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 <brian at mozdev.org> 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
> Project_owners at mozdev.org
> https://www.mozdev.org/mailman/listinfo/project_owners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mozdev.org/pipermail/project_owners/attachments/20090228/ececb1ce/attachment.html>
More information about the Project_owners
mailing list