Quantcast
Channel: Zimbra :: Forums - Zimlets
Viewing all articles
Browse latest Browse all 171

problem with ifame zimlet

$
0
0
Hi all,

so long ago i too poste a problem i had with the iframe zimlet

https://www.zimbra.com/forums/zimlet...me-zimlet.html

in the last of this post i posted a new problem i got after g41n helped me...

no one has answered there so i figured it was more proper to make a new post.. the thread was not mine to begin with ..

so here is my problem

Ok so i finally got a setup running where i could give this another go WITH https as you suggested.. and the results are better but i still have problems.

In this setup i have a zimbra server and a owncloud server. I want the owncloud web interface to be avalible in zimbra as a tap..

currently I have made sure that zimbra can ping owncloud server which it can.

Also i added this line to the zimbra hosts file

192.168.253.4 5owncloud01.dingit.dk 5owncloud01

so that my zimbra server can ping 5owncloud01.dingit.dk and get a local ip response which is working.

I have my dingit.dk wildcard cert on the owncloud server and i have varified that its the one that is presented when you visit the https site

as for the zimlet

here is the data of the jar file:

Code:

/*
 * ***** BEGIN LICENSE BLOCK *****
 * Zimbra Collaboration Suite Zimlets
 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Zimbra, Inc.
 *
 * The contents of this file are subject to the Zimbra Public License
 * Version 1.3 ("License"); you may not use this file except in
 * compliance with the License.  You may obtain a copy of the License at
 * http://www.zimbra.com/license.
 *
 * Software distributed under the License is distributed on an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
 * ***** END LICENSE BLOCK *****
 */

/**
 * Defines the Zimlet handler class.
 * 
 */
function com_zimbra_example_tabiframe_HandlerObject() {
}

/**
 * Makes the Zimlet class a subclass of ZmZimletBase.
 *
 */
com_zimbra_example_tabiframe_HandlerObject.prototype = new ZmZimletBase();
com_zimbra_example_tabiframe_HandlerObject.prototype.constructor = com_zimbra_example_tabiframe_HandlerObject;

/**
 * This method gets called by the Zimlet framework when the zimlet loads.
 * 
 */
com_zimbra_example_tabiframe_HandlerObject.prototype.init =
function() {

        this._simpleAppName = this.createApp("Tab iFrame App", "zimbraIcon", "An app in a new tab");

};

/**
 * 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_example_tabiframe_HandlerObject.prototype.appActive =
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_example_tabiframe_HandlerObject.prototype.appLaunch =
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=\"https://5owncloud01.dingit.dk/owncloud\" width=\"100%\" height=\"100%\" /></iframe>"); // write HTML to app

                        break;
                }
        }

};

as you can see the only thing i have changed is the url which is https://5owncloud01.dingit.dk/owncloud\

I upload the zimlet and it start just find. But when i go to the tap I just get a sad smily and its not working - please see attached file

Udklip.PNG

Any suggestions to solve it or further troubleshoot would gladly appreciated..

Also is there a way to remove the calendar and the zimlet list from the tap view so that its only the webpage linked that is showed?

THANKS

Casper
Attached Images

Viewing all articles
Browse latest Browse all 171

Trending Articles