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. |