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 03-29-2010, 04:27 AM
Junior Member
 
Posts: 8
Default Ads Zimlet

Hi,

we have designed a zimlet which reloads the iframe "adsframe" when a user click in zimbra webclient. but with this code we don`t get the clicks when the user clicks between the mails, we only get the clicks on the tabs and buttons. Any Idea how we can get the clicks of the user between the mails?

Code:
function com_danubix_ads_HandlerObject()
{
}

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

com_danubix_ads_HandlerObject.prototype.init =
function()
{
	appCtxt.getShell().addGlobalSelectionListener(this.mailClick);
};

com_danubix_ads_HandlerObject.prototype.appActive =
function(appName, active) 
{

};

com_danubix_ads_HandlerObject.prototype.appLaunch =
function(appName) 
{

};

com_danubix_ads_HandlerObject.prototype.mailClick = function()
{
	var f = document.getElementById('adsframe');
	f.contentWindow.location.reload(true);
};
Reply With Quote
  #2 (permalink)  
Old 03-29-2010, 11:26 AM
Zimbra Employee
 
Posts: 105
Default

Checkout ZmZimletBase.onMailView(msg,oldMsg). That method will be called when a user clicks between messages in the mail view.

Zimlet JavaScript API Reference - ZmZimletBase
Reply With Quote
  #3 (permalink)  
Old 03-29-2010, 12:02 PM
Junior Member
 
Posts: 8
Default

thanks sposetti, i will try it tomorrow.
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.