Actions
Task #69228
closedjQuery AJAX Backend calls result in empty params array
Start date:
2015-08-21
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.6
Tags:
Complexity:
Sprint Focus:
Description
I followed the instructions here: https://docs.typo3.org/typo3cms/CoreApiReference/JavaScript/Ajax/Backend/Index.html. The request succeeds, but the params array is always empty. I'm using jQuery and can't figure out what could be wrong when sending data like this:
$.ajax({
type: 'POST',
url: TYPO3.settings.ajaxUrls['Class::Function'],
data: {foo: "bar"},
success: function (result) {
console.log(result);
},
error: function (error) {
}
});
With prototype it's working. Any special format required?
Actions