Reputation: 393
is there way to update tapestry zone by ZoneManager
with POST
field in request to server?
this works fine...
var zoneManager = Tapestry.findZoneManager($('textarea'));
var listenerURIWithValue = this.listenerURI;
listenerURIWithValue = this.addRequestParameter('param', $('textarea').value, listenerURIWithValue);
zoneManager.updateFromURL(listenerURIWithValue);
but what if I have too long string in textarea? I need to send the $('textarea').value
as a POST
, not GET
.
Has anybody an idea? Thank you for your responds.
Upvotes: 3
Views: 984
Reputation: 393
I listed in Tapestry-prototypejs source code and finally I found the solution. Function updateFromUrl has another parameter.
zoneManager.updateFromURL(listenerURIWithValue,
{
"method": "post",
"parameter": $('textarea').value
});
Upvotes: 2