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 11-30-2006, 04:51 AM
Junior Member
 
Posts: 6
Post Help me on onclick function

Hi ,
I have zimlet XML also my javascript file are as follows , and i want when click (may be single click or double click) on zimlet panel item it should directly go to that url page.
But i couldn't get it .
<zimlet name="com_zimbra_jspsample" version="1.0" description="JSPSample">
<include>sample.js</include>
<contentObject>
<onClick>
<canvas type="window"/>
<actionUrl target="http://61.95.200.42/../chatapp"/>
</onClick>
</contentObject>


<zimletPanelItem label="Collabo chat">
<toolTipText>
Drag'n'Drop a contact here to send props to the discussion forum
</toolTipText>

<doubleClicked>
<canvas type="window"/>
<actionUrl method="get" target="http://61.95.200.42/../chatapp"/>
</doubleClicked>
</zimletPanelItem>

JavaScript code::

function Com_zimbra_jspsample() {
}

com_zimbra_jspsample.prototype = new ZmZimletBase();
Com_zimbra_jspsample.prototype.constructor = Com_zimbra_jspsample;

// Called by the Zimbra framework when the panel item was double clicked
Com_zimbra_jspsample.prototype.doubleClicked = function() {
this.singleClicked();
};

// Called by the Zimbra framework when the panel item was clicked
Com_zimbra_jspsample.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://61.95.200.42/../chatapp";
window.open(url,props);
}

Please suggest me where i have done mistakes and what should i do !!
I need help immediately please!

Cheers,
selvi.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

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.