Raymond wrote:

> Hi, all. I am working on a project to allow users to login my database via
> mozilla and load their bookmarks from database into the mozilla menu bar.
> My current problem is that those online bookmarks only existed in the
> window which the user used to login, if the user clicks on a link which
> opens up a new window, the newly opened window would not contain the
> online bookmarks. Can anyone give me some suggestions what I can do to
> solve this problem, please?

If you are in control of the windows being created (i.e. you call
window.open()) then you save the opened window id and set it's opener
attribute to the current window and then use that attribute in your own
code i.e.
tWindow = window.open(url)
tWindow.opener = window

and in your other window code use :
callingWindow = window.opener

hope it helps
CPH
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to