Results 1 to 2 of 2

Thread: Is there a register of listeners?

  1. #1
    Join Date
    Feb 2009
    Rep Power

    Default Is there a register of listeners?

    Is there a register of listeners which have been added to elements in Zimbra? I've trawled the DOM in Firebug but can't see the wood for the trees to be honest.

    What I'm trying to do is to transfer or duplicate functionality from an existing button which is buried in a dropdown menu on a different part of the page to a new button which I have created on the toolbar. I just want to add the same listener and function to my new button. I don't want to reparent the existing button, just duplicate its function.

    I've seen similar questions asked before, but can't find the answer anywhere. As far as I can make out, there is no built in register in Javascript in any of the browsers, though it has been proposed. I presume that Zimbra keeps its own register, but where is it!?


  2. #2
    Join Date
    Feb 2009
    Rep Power


    I've had some luck with this after more digging around. It must be a terribly unorthodox method though:

    controller ="GetComposeController");
    This makes my button on the toolbar open the contacts picker which the To button on the compose form normally does. That's just an example of the sort of thing I'm trying to do though, and the same trick doesn't work for other buttons. Just thought I'd post it here for a laugh.

Similar Threads

  1. how to set listeners on zimbra objects
    By skenkin in forum Developers
    Replies: 1
    Last Post: 12-06-2008, 04:15 PM
  2. Replies: 3
    Last Post: 07-16-2008, 12:33 AM
  3. how to zimbra work with register and login
    By antelopeming in forum Developers
    Replies: 0
    Last Post: 05-18-2008, 07:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts