Hello,
i have a problem devloping a jsp based zimlet under Zimbra 6.
this is the code associated to the onMsgView event:
Code:
var requestParams =
{
op : 2,
msgID : _msgID,
accountID : _accountID
};
thisObj = this;
this._request("myzimlet.jsp", requestParams, function(responce)
{
...
}); and the function _request is like this:
Code:
com_zimbra_myzimlet.prototype._request = function(url, params, callback)
{
var requestUrl = this.getResource(url);
var requestHeader =
{
"Content-Type":"application/x-www-form-urlencoded"
};
var requestParams = this._urlEncode(params);
var tempCallback = function(response)
{
var jsonResponse = eval("(" + response.text + ")");
if(!jsonResponse.error)
{
callback(jsonResponse);
}
else
{
this._alert("Error", jsonResponse.error);
}
}
AjxRpc.invoke(requestParams, requestUrl, requestHeader, new AjxCallback(this, tempCallback));
} i see in firebug the error in the thread title:
HTML Code:
<title>Error 405 HTTP method POST is not supported by this URL</title>
</head>
<body><h2>HTTP ERROR 405</h2>
<p>Problem accessing /service/zimlet/com_zimbra_myzimlet/myzimlet.jsp. Reason:
<pre> HTTP method POST is not supported by this URL</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/>
Is this a Zimbra 6 bug?
Note that the same zimlet works perfect in zimbra desktop (based on Zimbra 5).
Is there some extra configuration involved?
Is the AjxRpc.invoke method obsolete in Zimbra 6?
Thanks for help.
