Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Adding an Application Button

  1. #1
    czaveri's Avatar
    czaveri is offline Former Zimbran
    Join Date
    Feb 2006
    Location
    Pune, India
    Posts
    294
    Rep Power
    9

    Default Adding an Application Button

    I would like to add an Application Button, like the 4 that I already have. That is, like: Mail, Address Book, Calendar and Wiki.

    There are two things, I would like to do:
    1. Have an Application Button E.g. Business Website. On clicking the button, a hardcoded website appears where, either Mail or Address Book or Calendar or Wiki appear, now. That is, inside the Zimbra's UI.

    2. Have another Application Button, on clicking which, I get a popup and the person enters a URL to any website. In this case, the website entered by the person appears in the same place as above.

    The second one is like the Wikipedia zimlet, differences are:
    a) the Wikipedia has an icon in overview panel, but here, it is an Application Button.
    b) the Wikipedia requires name of item which is appended to the wikipedia URL. But here the full URL is the contents of the input field.

    (How) can I do this?
    Regards,

    Chintan Zaveri
    (Yet another ZIMBRAN!)

    "Dhundhne par Bhagwan bhi ..."

  2. #2
    czaveri's Avatar
    czaveri is offline Former Zimbran
    Join Date
    Feb 2006
    Location
    Pune, India
    Posts
    294
    Rep Power
    9

    Default

    Ok, perhaps, it would be better to have this seperated into two parts:

    1) Adding an Application Button, and
    2) Using the area occupied by Email or Address Book or ... for displaying results of action.

    (I did have a look at possible canvas types, but those are not what I want).

    Most humans are lazy and they want to do things easily. My idea is to use Zimbra as a browser/container for websites... if it is quick.

    I would like to check out how desired or addictive this can be.
    Last edited by czaveri; 10-13-2006 at 06:30 AM. Reason: I did have a look at possible canvas types, but those are not what I want
    Regards,

    Chintan Zaveri
    (Yet another ZIMBRAN!)

    "Dhundhne par Bhagwan bhi ..."

  3. #3
    czaveri's Avatar
    czaveri is offline Former Zimbran
    Join Date
    Feb 2006
    Location
    Pune, India
    Posts
    294
    Rep Power
    9

    Default

    Any idea why this won't work? Nothing happens when I click on "Wiki" in Zimlet Panel.

    Code:
    <zimlet name="com_mywebsite_wikkawakkawiki" version="0.1" description="Wiki"
    	xmlns:html="http://www.w3.org/1999/xhtml">
    		<resource>favicon.ico</resource>
    		<includeCSS>com_mywebsite_wikkawakkawiki.css</includeCSS>
    		<contentObject type="wiki">
    		<onClick>
    			<canvas type="window" width="800" height="600" />
    			<actionUrl target="http://mywebsite.com/wiki/" method="get">
    								<param name="wakka">HomePage</param>
    						</actionUrl>
    		</onClick>
    	</contentObject>
    
    	<zimletPanelItem label="Wiki" icon="WAKKA-panelIcon">
    		<toolTipText>Click to open Wikka Wakka Wiki</toolTipText>
    	</zimletPanelItem>
    </zimlet>
    Regards,

    Chintan Zaveri
    (Yet another ZIMBRAN!)

    "Dhundhne par Bhagwan bhi ..."

  4. #4
    czaveri's Avatar
    czaveri is offline Former Zimbran
    Join Date
    Feb 2006
    Location
    Pune, India
    Posts
    294
    Rep Power
    9

    Default

    Ok, found the answer to the 3rd question but am still seeking answers to 1st and 2nd questions.

    I had not created a JS file.

    Code:
    function Com_Mywebsite_WikkaWakkaWiki() {
    }
    
    Com_Mywebsite_WikkaWakkaWiki.prototype = new ZmZimletBase();
    Com_Mywebsite_WikkaWakkaWiki.prototype.constructor = Com_Mywebsite_WikkaWakkaWiki;
    
    // Called by the Zimbra framework when the panel item was double clicked
    Com_Mywebsite_WikkaWakkaWiki.prototype.doubleClicked = function() {
    		this.singleClicked();
    };
    
    // Called by the Zimbra framework when the panel item was clicked
    Com_Mywebsite_WikkaWakkaWiki.prototype.singleClicked = function() {
    		var props = [ "toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=800,height=600" ];
    		props = props.join(",");
    		var url = "http://mywebsite.com/wiki/";
    		window.open(url,props);
    }
    Regards,

    Chintan Zaveri
    (Yet another ZIMBRAN!)

    "Dhundhne par Bhagwan bhi ..."

  5. #5
    czaveri's Avatar
    czaveri is offline Former Zimbran
    Join Date
    Feb 2006
    Location
    Pune, India
    Posts
    294
    Rep Power
    9

    Default

    It looks like I need to create a "new ZmApp" and "container" is the container.
    Am I right?

    Can I do this without creating a new App?

    Is there any documentation for this? Like the Zimlets Whitepaper? ... To answer the questions:

    Which files are compulsory?
    What else is required?
    How do you deploy an App?
    ... etc.


    Can Zimlets access the "container"?
    Regards,

    Chintan Zaveri
    (Yet another ZIMBRAN!)

    "Dhundhne par Bhagwan bhi ..."

  6. #6
    brianpwolfe is offline Intermediate Member
    Join Date
    Oct 2006
    Posts
    18
    Rep Power
    8

    Default I am interested in doing the same thing

    Keep me informed of your progress. I want to integrate a custom application into the code as well. If I cannot accomplish everything with a Zimlet. I will let you know how things are the further I get along, or if I find some good refernce material. At this point your Forum Thread is the most information I have seen on this though. I will follow up soon.

  7. #7
    Dirk's Avatar
    Dirk is offline Moderator
    Join Date
    May 2006
    Location
    England.
    Posts
    927
    Rep Power
    10

    Default

    Somebody help this guy out! Chintan is doing great work for the community as a whole and if I could help I would, I dont know the answer to his question, but I will indeed try to find out (I fear by the time I do, someone will beat me to it, but I will learn much along the way).

    Zimbra is a commercial AND an open source project. If you want the NE version, that's fine, but remember that lots of amazing ideas and features appear due to the dilligence of open source hackers trying to make things happen. You want an extra button here there or everywhere, then lets find out how to do it!

    Ok, that;s my rally cry over with. I'll pick up my glass of wine in one hand and my javascript bible in the other and get back to work

  8. #8
    czaveri's Avatar
    czaveri is offline Former Zimbran
    Join Date
    Feb 2006
    Location
    Pune, India
    Posts
    294
    Rep Power
    9

    Default

    Dirk,

    Thank-you so much for your kind words. I don't know what to say.

    To be very honest, I am only trying to learn...

    Really ... don't know what to say.

    Thank-you,
    Regards,

    Chintan Zaveri
    (Yet another ZIMBRAN!)

    "Dhundhne par Bhagwan bhi ..."

  9. #9
    brianpwolfe is offline Intermediate Member
    Join Date
    Oct 2006
    Posts
    18
    Rep Power
    8

    Default The Underpinnings of ZCS

    As I was working on this today, it seemed to me that we may not be able to do exactly what we want with the current architecture of ZCS.

    Currently there is the zimlet feature, but what we are looking for is a application plug-in feature.

    If this is going to take a major overhaul, then I will be the first to say. 'Let's do it.'

    I will be happy to set up a project site and let's start hacking this thing out. We may have to redesign the current source code, and make a plug-in architecture. It would be somewhat of a redesign, but well worth it.

    I have not spent enough time with ZCS to know the answers yet, but I have a lot of experience in J2EE application design & architecture and would love the challenge.

  10. #10
    czaveri's Avatar
    czaveri is offline Former Zimbran
    Join Date
    Feb 2006
    Location
    Pune, India
    Posts
    294
    Rep Power
    9

    Default

    I don't think this is as complex as that.

    Have you looked at: /zimbra/trunk/ZimbraWebClient/WebRoot/js/zimbraMail

    on SVN?

    It contains the Applications that come along with Zimbra. Every directory is one app.

    A thorough study of this will bring an understanding of how to create an application.

    It's actually pure JavaScript.

    So, like we created Zimlets, we might as well create Applications.
    Regards,

    Chintan Zaveri
    (Yet another ZIMBRAN!)

    "Dhundhne par Bhagwan bhi ..."

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 13
    Last Post: 07-20-2007, 03:21 AM
  2. Is it started or not
    By kwelipatton in forum Installation
    Replies: 10
    Last Post: 03-28-2006, 11:11 PM
  3. Replies: 13
    Last Post: 10-31-2005, 04:22 PM
  4. Replies: 18
    Last Post: 10-30-2005, 09:12 PM
  5. Certify Error on (re)install
    By rodrigoccurvo in forum Installation
    Replies: 4
    Last Post: 09-23-2005, 09:04 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
  •