Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Open Sidebar when Firefox Loads

83 views
Skip to first unread message

//esteban//

unread,
Sep 1, 2007, 6:25:30 PM9/1/07
to
I need to get the sidebar open automatically when firefox starts

I use:
" getElementById("sidebar-box").hidden " attribute to get the state of
the sidebar.

So if its hidden I need to display it. How do I open the sidebar from
javascript?


Code snippet that Im using for working with sidebars:
http://developer.mozilla.org/en/docs/Code_snippets:Sidebar

Arturo 'Buanzo' Busleiman

unread,
Sep 1, 2007, 7:03:36 PM9/1/07
to dev-extensions
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

//esteban// wrote:
> So if its hidden I need to display it. How do I open the sidebar from
> javascript?

Use the toggleSidebar() function.

- --
Arturo "Buanzo" Busleiman - Consultor Independiente en Seguridad Informatica
Servicios Ofrecidos: http://www.buanzo.com.ar/pro/
Unase a los Foros GNU/Buanzo - La palabra Comunidad en su maxima expresion.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG2e/IAlpOsGhXcE0RCtoPAJ4zpsUn0hHmnn5gCWwcOhTHP6eoCwCfU581
KKed7eOg+XE87KeW25mHdF0=
=Xp1b
-----END PGP SIGNATURE-----

Philip Chee

unread,
Sep 2, 2007, 12:39:52 AM9/2/07
to
On Sat, 01 Sep 2007 15:25:30 -0700, //esteban// wrote:
> I need to get the sidebar open automatically when firefox starts

> I use:
> " getElementById("sidebar-box").hidden " attribute to get the state of
> the sidebar.

> So if its hidden I need to display it. How do I open the sidebar from
> javascript?

You shouldn't. The Kodak image uploader extension - based on PhotoFox I
think opens it's sidebar on startup and this is the most frequent
complaint by users on various forums. And the most common request is how
to turn this &%@#$* feature off.

Aside from this if two or more extensions try to open their sidebars on
startup, the poor user will see a flurry of sidebars opening and closing
with which ever extension going last "winning".

Phil

--
-==-
Philip Chee <phi...@aleytys.pc.my>, <phili...@gmail.com>
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 test for an error you don't know how to handle!
* TagZilla 0.066.6

eric...@yahoo.com

unread,
Sep 3, 2007, 10:56:40 AM9/3/07
to dev-ext...@lists.mozilla.org
Added to http://developer.mozilla.org/en/docs/Code_snippets:Sidebar

Phil

_______________________________________________
dev-extensions mailing list
dev-ext...@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-extensions

0 new messages