Results 1 to 3 of 3

Thread: Ads Zimlet

  1. #1
    tommyx is offline Junior Member
    Join Date
    Nov 2009
    Posts
    8
    Rep Power
    5

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

  2. #2
    sposetti is offline Former Zimbran
    Join Date
    Nov 2009
    Posts
    105
    Rep Power
    5

    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

  3. #3
    tommyx is offline Junior Member
    Join Date
    Nov 2009
    Posts
    8
    Rep Power
    5

    Default

    thanks sposetti, i will try it tomorrow.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 6
    Last Post: 03-05-2010, 01:13 AM
  2. Replies: 21
    Last Post: 02-04-2010, 10:06 AM
  3. Samba and POSIX undeploy problem
    By catnipper in forum Zimlets
    Replies: 0
    Last Post: 09-02-2009, 10:51 AM
  4. Replies: 5
    Last Post: 01-11-2008, 05:34 AM
  5. Post instsallation problems
    By Assaf in forum Installation
    Replies: 14
    Last Post: 01-29-2007, 11:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •