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 07-29-2008, 01:06 AM
Intermediate Member
 
Posts: 21
Post [SOLVED] get message attachments

i don't know how can i get message attachment inside javascript code, can any one help me, plz
Reply With Quote
  #2 (permalink)  
Old 07-29-2008, 01:56 AM
Active Member
 
Posts: 40
Default

To access the attachments you can override the function onMsgView - called when a new message is being viewed.
Something like this:
MyZimlet.prototype.onMsgView = function(msg, oldMsg) {
for(var i = 0; i < msg._attachments.length; i++){
var attach = msg._attachments[i];
// do something with the attachment

}

Maybe that will help you.
Reply With Quote
  #3 (permalink)  
Old 07-29-2008, 03:12 AM
Intermediate Member
 
Posts: 21
Default to agnes

can i override this function inside class inherits from ZmZimletBase , sorry about my english
Reply With Quote
  #4 (permalink)  
Old 07-29-2008, 03:52 AM
Intermediate Member
 
Posts: 21
Thumbs up to agnes

thank you Agnes, it work well
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.