Hi I have a extbase typo3 extension.It contain a model window with a form.On submit an ajax call updates the underlying table via updateAction.My problem is that how to get the form argument via getArgument() method in controller.My code is given below
My form is
<form id="updatewindow" method="POST" name="iframe">
<p><label for="fields">' + $(title).html() + ':</label>
<input type="text" value="' + cell_data + '" name="tx_suserform_userform[newUser][name]"></p>
</form>
Ajax Call
url_update = '<f:uri.action action="updateFileds" absolute="1" noCacheHash="1"/>';
jQuery.ajax({
url: url_update,
type: "POST",
data: params,
success: function (data) {
if (data == 'true') {
location.reload();
} else {
}
}
});
In my controller I wrote
$post_val = $this->request->getArgument('name');
but it returns error and
$this->request->getArguments()
only return controller name and action