It doesn't seem to be working. I am using zimbra network edition version 7
Here is what I have:
/**
* Defines the Zimlet handler class.
*
*/
function com_zimbra_projects_HandlerObject() {
}
/**
* Makes the Zimlet class a subclass of ZmZimletBase.
*
*/
com_zimbra_projects_HandlerObject.prototype = new ZmZimletBase();
com_zimbra_projects_HandlerObject.prototype.constr uctor = com_zimbra_projects_HandlerObject;
/**
* This method gets called by the Zimlet framework when the zimlet loads.
*
*/
appCtxt.getAppViewMgr().fitAll();
com_zimbra_projects_HandlerObject.prototype.init =
function() {
this._simpleAppName = this.createApp("Projects", "zimbraIcon", "Do More");
};
/**
* This method gets called by the Zimlet framework each time the application is opened or closed.
*
* @param {String} appName the application name
* @param {Boolean} active if true, the application status is open; otherwise, false
*/
com_zimbra_projects_HandlerObject.prototype.appAct ive =
function(appName, active) {
switch (appName) {
case this._simpleAppName: {
var app = appCtxt.getApp(appName); // get access to ZmZimletApp
break;
}
}
// do something
};
/**
* This method gets called by the Zimlet framework when the application is opened for the first time.
*
* @param {String} appName the application name
*/
com_zimbra_projects_HandlerObject.prototype.appLau nch =
function(appName) {
switch (appName) {
case this._simpleAppName: {
// do something
var app = appCtxt.getApp(appName); // get access to ZmZimletApp
app.setContent("<iframe id=\"tabiframe-app\" name=\"tabiframe-app\" src=\"http://projects.essdack.org\" width=\"100%\" height=\"100%\" /></iframe>"); // write HTML to app
break;
}
}
}; |