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 08-20-2008, 04:59 PM
Junior Member
 
Posts: 5
Default doDrag and it's canvas parameter....

I'm writing a zimlet and according to the docs, doDrag takes a canvas parameter....

The problem is, if you don't specify an <actionUrl> then the canvas (dialog in my instance) never gets created. If you do specify the actionUrl and pass it an empty url, the dialog is created but the doDrag function is never triggered.

Is there something obvious I'm missing here?

Otherwise, is there a good way to create a new dialog box?

Last question is, I can't seem to see where in the docs (if it does) it talks about how to capture the "ok" and "cancel" buttons on the canvas..... anyone able to give me a pointer in the right direction?

Thanks
Reply With Quote
  #2 (permalink)  
Old 08-21-2008, 04:07 AM
Zimlet Guru & Moderator
 
Posts: 288
Default

Welcome to the forum!

In your case you need to use a js file.

This example zimlet I just done should help you :
Attached Files
File Type: zip zimlet_drag_example.zip (1.0 KB, 23 views)
Reply With Quote
  #3 (permalink)  
Old 08-21-2008, 10:43 AM
Junior Member
 
Posts: 5
Default

Perfect, thanks

Last edited by Shad0w; 08-21-2008 at 11:30 AM..
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.