Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Zimlets

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-24-2008, 02:22 AM
Active Member
 
Posts: 44
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..
Reply With Quote
  #2 (permalink)  
Old 07-24-2008, 04:19 AM
Active Member
 
Posts: 44
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?
Reply With Quote
  #3 (permalink)  
Old 07-25-2008, 02:40 AM
Zimlet Guru & Moderator
 
Posts: 288
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
File Type: zip dk_cabo_mailaggregator.zip (971 Bytes, 24 views)
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.