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
//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-----
> 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
Phil
_______________________________________________
dev-extensions mailing list
dev-ext...@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-extensions