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 03-30-2009, 09:38 AM
New Member
 
Posts: 4
Default <actionURL method=post Broken ???

Hello,

I'm working on a pretty basic zimlet. I need to call a php script with some properties from the Zimbra user & objectcontent. I'm trying to run this through /service/proxy which (according to the docs) will pass everything sent to it from a POST to the target.

When I put method="post" in the ActionURL the browser still performs a GET.

Any ideas? See below for me .xml
Code:
    <contextMenu>
      <menuItem label="${msg.startCall}" icon="Telephone" id="STARTCALL">
       <canvas type="dialog" width="800"/>
            <actionUrl method="post" target="/service/proxy">
            <param name="target">http://127.0.0.1/voip/Portal.php</param>
            <param name="action">dialPhone</param>
            <param name="voip_telephone">${prop.voip_telephone}</param>
            <param name="voip_password">${prop.voip_password}</param>
            <param name="sbcAddress">${prop.sbcAddress}</param>
            <param name="portalAddress">${prop.portalAddress}</param>
            <param name="numToCall">${src.objectContent}</param>
       </actionUrl>
      </menuItem>
    </contextMenu>
If I put
Code:
method=post
The Zimlet won't even load.

Current Version: 5.0.14_GA_2850.RHEL5 20090303142201 20090303-1423 FOSS

User Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.8) Gecko/2009032608 Firefox/3.0.8
Reply With Quote
  #2 (permalink)  
Old 04-02-2009, 03:59 AM
Zimlet Guru & Moderator
 
Posts: 265
Default It is a bug

Hello,

The method="post" just doesn't work.
For now you will have to use javascript to do a POST.

I thought there was a bug in bugzilla about it but I didn't saw any, so I created this one :
Bug 36797 &ndash; method="post" in the xml definition file doesn't work
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.