Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Zimlets

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-22-2008, 02:24 AM
Senior Member
 
Posts: 53
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 !
Reply With Quote
  #2 (permalink)  
Old 10-29-2008, 07:32 AM
Senior Member
 
Posts: 53
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.