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-14-2008, 08:19 PM
Trained Alumni
 
Posts: 48
Default Can a Zimlet autorun at login and run in the background?

Hi all,

I'm looking to develop a message/tip of the day / emergency message Zimlet for our university's deployment. In a nutshell, the Zimlet would:

- at login, check to see if the user hasn't opted out (REST call) and if not, retreive and display a tip/message in an overlay over the ZWC interface
- periodically, check the message database to see if there are any pending 'emergency' messages (e.g. campus closure due to weather notices, etc.) and if any are found, display the message in a similar fashion to above.

In order to accomplish this, it would seem that the Zimlet would need to be able to:

- auto-run at login
- run in the background, periodically checking for new emergency alerts (using a JS setInterval command or similar)

Can I do this? The only relevant information I've been able to find is a un-answered thread from August: How to auto run a zimlet

Cheers!

EDIT: It seems a Zimlet can run in the background, at least if the Yahoo! Finance Zimlet is any indication. Can anyone tell me anything about AjxTimedAction? Like most things Zimbra, there's no (apparent) documentation.

My question on auto-run at startup still stands, although it seems that the finance zimlet's polling settings presist across sessions (it polled in the background after logging out and back in), so that might be taken care of as well. Opinions & thoughts are still welcome, though.

--
Graham Ballantyne
Simon Fraser University
Vancouver, BC

Last edited by grahamb; 10-14-2008 at 08:56 PM..
Reply With Quote
  #2 (permalink)  
Old 10-15-2008, 01:56 AM
Zimlet Guru & Moderator
 
Posts: 288
Arrow cross linking

Look at this thread for the auto-run at logon :
[SOLVED] Message at logon
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


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.