On Sun, 19 Feb 2006 21:49:01 +0000, Neil wrote:
> Philip Chee wrote:
> 
>>I know I can call addPanel() from content using
>>window.sidebar.addPanel(), but how do I call addPanel from chrome
>>javascript in order to add an item to the Seamonkey sidebar tabs?
>>I've tried document.contentWindow.sidebar.addPanel and various
>>combinations of document/content/window but rather than groping around
>> in a fog, I'd thought I'd ask here.

> addPanel only accepts certain URLs. I believe that the DOM Inspector 

Yes, to clarify. I know how the DOM Inspector and various other extensions
do it. What I want to do is to programatically add *http:* urls (not *chrome:*).

Context: xSidebar implements the firefox sidebar UI and API in Seamonkey.
The bit I am now trying to implement is support for Opera style
rel="sidebar" links in contentAreaClick(). I've ported over the bit of
Firefox code that does this. And it almost works. Unfortunately seamonkey
does not have addBookmark2.xul so I'm trying to replace it with addPanel.

I know how to read and process the panels.rdf datasource. But I thought that
I shouldn't have to reinvent the wheel in this instance.

Phil

-- 
Philip Chee <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
http://flashblock.mozdev.org/ http://xsidebar.mozdev.org
Guard us from the she-wolf and the wolf, and guard us from the thief,
oh Night, and so be good for us to pass.
[ ]Never park your hard disk in a tow-away zone.
* TagZilla 0.059
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners

Reply via email to