Results 1 to 10 of 11

Thread: iframe zimlet

Hybrid View

  1. #1
    Join Date
    Jun 2013
    Posts
    2
    Rep Power
    2

    Default iframe zimlet

    hi,
    plz I developed iframe zimlet that call a web page iframe
    but when i clic in tabpannel a blank page displayed
    plz help

  2. #2
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    367
    Rep Power
    8

    Default

    We can't really help you with this few informations.
    The only problem I can suppose you have is that the target site is blocking iframes.

  3. #3
    Join Date
    Jul 2012
    Location
    florida
    Posts
    2
    Rep Power
    3

    Default

    Look at this first... ZCS 6.0:Zimlet Developers Guide:Examples:Tab iFrame - Zimbra :: Wiki
    Then, install and run it (If you have a Dev environment).
    Now, change all the references to the "com_zimbra_example_tabiframe" to yours in both files ie: "com_zimbra_voicemail_tabiframe" or similar..
    Now, really IMPORTANT !!! if the site you are putting in the iframe is NOT in your local Zimbra domail it HAS to be added to the
    Allowed PROXY Domains that zimlets can access from your server or it will NOT load. (at least this is how it's worked for me)
    In the Admin Console go to "Class of Service" --->Default-->Advanced-->Look in the "Proxy Allowed Domains" section & add the external domain.

  4. #4
    Join Date
    Oct 2013
    Location
    Denmark
    Posts
    30
    Rep Power
    1

    Default

    Hey all,

    I'm having the same issue on my Zimbra version 8 installation.

    Even when I just upload the default zimlet it just goes blank. default being Yahoo - i would assume that would work??

    I have also been to the zimlet site

    ZCS 6.0:Zimlet Developers Guide:Examples:Tab iFrame - Zimbra :: Wiki

    I don't know but when i read through the site i get the feeling the problem maybe that zimbra version 8 isn't supported with this zimlet? could that be?

    THANKS

    Casper

    Could the problem be that i'm running 8.0?

  5. #5
    Join Date
    Jun 2013
    Posts
    23
    Rep Power
    2

    Default

    I don't think the problem is the 8.0 version of Zimbra, because I've developed many Zimlets under Zimbra 8 in that manner...
    Can you upload the code?

  6. #6
    Join Date
    Oct 2013
    Location
    Denmark
    Posts
    30
    Rep Power
    1

    Default

    Hi g41n

    as i wrote in my former post the zimlet doesn't work even if use the standard code that is supplied with it.. IE yahoo.com should appear as a tap..

    In my former post i link to where you can download the zimlet.. from there you can see the code..

    THANKS for answering!

    Casper

  7. #7
    Join Date
    Jun 2013
    Posts
    23
    Rep Power
    2

    Default

    Quote Originally Posted by offerlam22 View Post
    Hi G41N

    Just to make sure i understood you right... it doesn't work because when i log into zimbra i use https and from there the new tap tries to be opend to a site with http... no SSL am i right?

    so following that logic all sites would work if i just point to the sites https site and not http?
    Yes, but only if:
    1. The site have a SSL version (quite obvious nowadays, but not always)
    2. The site have no restrictions (for example google and twitter have restrictions as mentioned above, wikipedia works instead)



    Inviato dal mio Galaxy Nexus utilizzando Tapatalk
    Last edited by g41n; 11-25-2013 at 07:30 AM.
    YetOpen S.r.l. ~ Your open source partner
    Lecco (LC) - ITALY
    http://www.yetopen.it

  8. #8
    Join Date
    Oct 2013
    Location
    Denmark
    Posts
    30
    Rep Power
    1

    Default

    Hi G41N

    Thanks.. i think SSL was the problem.. the internal site that i tried to add as a tap was using ssl.. but it was suppose to anyways after testing was done so i will just speed that process op...

    Thanks!!
    Casper

  9. #9
    Join Date
    Oct 2013
    Location
    Denmark
    Posts
    30
    Rep Power
    1

    Default

    Hi G41N

    any anyother for that matter

    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

Similar Threads

  1. Replies: 0
    Last Post: 08-20-2012, 12:02 PM
  2. Google Docs Tab iFrame
    By PaulyC in forum Zimlets
    Replies: 3
    Last Post: 05-30-2012, 09:27 AM
  3. Panel using an iFrame Example Zimlet
    By bku09 in forum Developers
    Replies: 1
    Last Post: 04-18-2010, 06:53 PM
  4. Iframe Zimbra?
    By jputz12 in forum Developers
    Replies: 6
    Last Post: 12-04-2009, 08:48 AM
  5. iFrame Zimlet
    By jisenburg in forum Zimlets
    Replies: 1
    Last Post: 04-08-2009, 01:29 PM

Posting Permissions

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