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 (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 11-06-2006, 02:34 PM
Project Contributor
 
Posts: 77
Default doubleClicked

im trying to get this working, but is not

this its what i get:

Code:
<zimlet name="com_sambapass" version="1.0" description="Samba Pass">
   
   <zimletPanelItem label="SambaPass">
    <toolTipText>
        Para cambiar password
    </toolTipText>
    
    <contextMenu>
      
      <menuItem label="click" id="click">
        
        <canvas type="window" width="300" height="200" />
        <actionUrl target="http://www.it-linux.cl">
        </actionUrl>
        
      </menuItem>
      
    </contextMenu>
    
    <doubleClicked>
        
        <canvas type="window" width="300" height="200"/>
        <actionUrl target="http://www.google.cl"/>
        
    </doubleClicked>
    
   </zimletPanelItem> 
   
 </zimlet>
__________________
Patricio Bruna
http://www.it-linux.cl/pbruna
Reply With Quote
  #2 (permalink)  
Old 12-11-2006, 02:42 AM
Junior Member
 
Posts: 6
Thumbs up Hi u can solve this!!!

Hi friend ,
I also got the same problem , then i got the solution !!!
so u can try as follows. Defn u will get answer.

<zimlet name="com_samba" version="1.0" description="samba pass">
<include>samba.js</include>
// u need to include javascript file also!!
<handlerObject>Com_Samba</handlerObject>
// this is ur js file function name.
<contentObject>
<onClick>
<canvas type="window"/>
<actionUrl target="http://61.95.200.42/../chatapp"/>
</onClick>
</contentObject>


<zimletPanelItem label="samba pass">
<toolTipText>
Double click here to get ur website.
</toolTipText>

<doubleClicked>
<canvas type="window"/>
<actionUrl method="get" target="http://www.google.com">
</doubleClicked>
</zimletPanelItem>
</zimlet>

/// write your javascript code as follows. save it as samba.js , bcz this only u have included in ur xml file.

function Com_Samba() {
}

Com_Samba.prototype = new ZmZimletBase();
Com_Samba.prototype.constructor = Com_Samba;

Com_Samba.init=
function(){
};

Com_Samba.prototype.URL="http://www.google.com";

Com_Samba.prototype.doubleClicked = function() {
this.singleClicked();
}

// Called by the Zimbra framework when the panel item was clicked
Com_Samba.prototype.singleClicked = function() {
var props = [ "toolbar=yes,location=yes,status=yes,menubar=yes,s crollbars=yes,resizable=yes,width=800,height=600" ];
props = props.join(",");
var url = "http://www.google.com";
window.open(url,props);
};

/// deploy it into /opt/zimbra/zimlets and run the zimbra server , then u will get both single and doubleclick function.

Cheers,
selvi.
Reply With Quote

Why Join?

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

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0