[Project_owners] Persistence

HJ bugs4hj at netscape.net
Sun Dec 21 14:39:43 EST 2003


"Laeb \(hotmail\)" <laebcontact at hotmail.com> wrote:
>Hi,
>
>The code below toggles the bookmarks toolbar but the state of this toolbar
>is not made persistent (comes back to original value at startup). Does
>anyone knows how to make it persistent ?
>
>  tb=document.getElementById("PersonalToolbar");
>
>  if(tb.hasAttribute("collapsed")) {
>   tb.removeAttribute("collapsed");
>   }
>  else {
>   tb.setAttribute("collapsed",true);
>  }
>   document.persist(tb.id, 'collasped');
>
>Thank you.
>Laeb.

You should use -> goToggleToolbar('PersonalToolbar','cmd_viewpersonaltoolbar');

(see also: http://lxr.mozilla.org/seamonkey/source/xpfe/communicator/resources/content/utilityOverlay.js#158)

because it makes use of an 'observer'

(see also: http://lxr.mozilla.org/seamonkey/source/xpfe/browser/resources/content/navigatorOverlay.xul#189)

/HJ

__________________________________________________________________
New! Unlimited Access from the Netscape Internet Service.
Beta test the new Netscape Internet Service for only $1.00 per month until 3/1/04.
Sign up today at http://isp.netscape.com/register
Act now to get a personalized email address!

Netscape. Just the Net You Need.


More information about the Project_owners mailing list