Results 1 to 3 of 3

Thread: [SOLVED] Zimlet description file and singleClicked

  1. #1
    carr is offline Active Member
    Join Date
    Jul 2008
    Posts
    44
    Rep Power
    6

    Default [SOLVED] Zimlet description file and singleClicked

    I'm new to Zimbra and (unfortunately) I have to develop Zimlets.
    Documentation is...well lets not talk about that.

    I managed to create a Zimlet for the Tools Sidebar executing some JavaScript when clicking on it. This works fine, but is unnecessary if I want to make directly an Ajax Request.
    So there is the singleClicked Method (works fine) and the singleClicked Element (doesn't work at all).

    Here is my description file code:
    Code:
    <zimlet name="dk_cabo_mailaggregator" version="1.0" description="Mail Aggregator">
       <zimletPanelItem label="Mail Aggregator" icon="dk_cabo_mailaggregator-panelIcon">
         <toolTipText>Click to set up mail aggregation from Gmail, Yahoo! Mail, AOL, Hotmail</toolTipText>
    
        <singleClicked>
           <canvas type="window" width="300" height="300"/>
           <actionUrl method="get" target="http://maps.google.com" />
         </singleClicked>
    
       </zimletPanelItem>
     </zimlet>
    As you can see I took the mailaggregator example and put it in the _dev folder.
    Last edited by carr; 07-24-2008 at 04:15 AM.

  2. #2
    carr is offline Active Member
    Join Date
    Jul 2008
    Posts
    44
    Rep Power
    6

    Default

    ok I replaced "singleClicked" with "onClick" and now it works.

    Anyway now creating a "dialog"-box I can't change the action invoked by the "OK" and "Cancel" buttons, or can I?

  3. #3
    tdesorbaix is offline Zimlet Guru & Moderator
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    365
    Rep Power
    8

    Default

    Quote Originally Posted by carr View Post
    Anyway now creating a "dialog"-box I can't change the action invoked by the "OK" and "Cancel" buttons, or can I?
    You can't if you use the xml file to create the dialog box. But you can if you create the dialog box with a js file.

    Here is an example for your zimlet :
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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