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 12-02-2009, 01:43 PM
Intermediate Member
 
Posts: 16
Default Calendar onMouseUp or doubleclick event

I'm new to Javascript and new to Zimlets and I have a question I'm hoping one of you Zimlet gurus can give me a little guidance on.

I have created a Zimlet that opens a new appointment and populates the attendees when I click on the Zimlet icon. What I would like to do, though, is to set the Start and End time/date when the user double-clicks or drag-selects a time on the calendar grid. Ultimately, I would want my Zimlet to react only when the user double-clicks or drag-selects in the "calendar_union_scroll" (that's the class-name of the area) on the Calendar's Schedule view. Currently that area does not react to click or drag events, so I would not be causing issues with normal meeting scheduling.

Does anyone have a couple lines of code that would add an event listener or two to that area and what data I would grab from the resulting event for the Start time/date?

I've scoured the code for many of the available Zimlets, but there are only a couple that deal with the calendar and they don't use these type of events for input.

Thanks in advance for your time. By the way, I'm on ZCS 5.0.19 NE.
Reply With Quote
  #2 (permalink)  
Old 12-09-2009, 02:54 PM
Project Contributor
 
Posts: 67
Default

Without modifying the Zimbra source, I don't believe you are going to be able to capture these events with a Zimlet. The only drag-and-drop event that I know you can access with Zimlets are when an object is dropped onto the Zimlet icon itself. I may be wrong though.
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.