[Jslib] sidebar
Martin T. Kutschker
Martin.T.Kutschker@blackbox.net
Tue, 12 Jun 2001 11:02:13 +0200
Hi!
What are the current "modes of operation" for the sidebar? I know that you
may add a URL (every URL?) to the siedbar with window.sidebar.addPanel(),
but no more. Is that all? Do you think we'll need more. I'm thinking of an
enhancement for mozCalc and seek now you opinion.
*) add to sidebar from XPI (out of scope for jslib)
*) add to sidebar from XUL (is the above method working from XUL and
allowing XUL URLs?)
*) remove from sidebar (necessary?)
*) test for existence of specific URL
I am interested in the last as I want to provide a menu item with a "add to
sidebar" option. The option should be grayed out when mozCalc is already in
the sidebar.
I have found some code that works with the file (locator) services and the
rdf service to access the sidebar (from the links panel).
I would write the code to be jslib compatible if it makes any sense.
Alternatively it code to "code snippets", although the project is IMHO in a
bad shape.
Masi