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);
};