Results 1 to 2 of 2

Thread: Access to GAL from a Zimlet

  1. #1
    Zoltan67's Avatar
    Zoltan67 is offline Senior Member
    Join Date
    Jul 2008
    Location
    Strasbourg, France
    Posts
    54
    Rep Power
    6

    Default Access to GAL from a Zimlet

    Hello everyone,

    I'm currently trying to develop a Zimlet that will help users to have access to public shared calendars. Most of our users complain about the fact that they can't see other users calendar, so we would like a Zimlet that opens a pop up asking for the username, and when the username is entered, it opens the page http://serveraddress/home/user/Calendar.html

    It works perfectly, but it is required to type the username, and it is quite annoying since our the usernames we use are the initials of the user (sometimes a little bit more complicated when two ore more users have the same initials), so it would be helpful if the input box could offer a GAL search.

    This is where we are currently blocked, I don't find the way to get this working.

    Here is the code for the singleClicked action:

    Code:
    Com_Zimbra_CalViewer.prototype.singleClicked =
    function() {
    	var view = new DwtComposite(this.getShell());
    	var el = view.getHtmlElement();
    	
    	var div = document.createElement("div");
    
    	div.innerHTML="Personne/Ressource :<form name=\"frm\"><input type=\"text\" name=\"name\" value=\"\" /></form>"; //CONTENT OF THE DIALOG BOX
    	el.appendChild(div);
    
    	//TITLE OF THE DIALOG BOX
    	var dialog_args = {
    		title : "Visualisation d'un agenda",
    		view  : view
    	};
    
    	var dlg = this._createDialog(dialog_args);
    	
    	//TEXT DISPLAYED ON THE OK BUTTON
    	dlg.getButton(DwtDialog.OK_BUTTON).setText("Visualiser l'agenda");
    
    	dlg.setButtonListener(DwtDialog.OK_BUTTON,
    		new AjxListener(this, function() {
    			window.open("http://mail2.test.fr/home/" + document.forms["frm"].elements["name"].value + "/Calendar.html?view=workWeek");
    			dlg.popdown();
    			dlg.dispose();
    		}));
    
    	dlg.popup();
    };
    Could someone please help me to get this working ?

    Thanks in advance !

  2. #2
    Zoltan67's Avatar
    Zoltan67 is offline Senior Member
    Join Date
    Jul 2008
    Location
    Strasbourg, France
    Posts
    54
    Rep Power
    6

    Default

    If nobody can help me, is there somewhere I can find some complete documentation about Zimlet ? Because the wiki isn't really a complete documentation source, and I don't really know where I could find something.

    Thanks for your help

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 21
    Last Post: 02-04-2010, 10:06 AM
  2. Outlook 2007 Beta error
    By bersrker in forum Zimbra Connector for Outlook
    Replies: 13
    Last Post: 07-17-2008, 07:38 AM
  3. Replies: 5
    Last Post: 01-11-2008, 05:34 AM
  4. Domain Admin Error: Permission Denied
    By shanson in forum Administrators
    Replies: 3
    Last Post: 05-29-2007, 05:48 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
  •