Project

General

Profile

Actions

Task #69228

closed

jQuery AJAX Backend calls result in empty params array

Added by Sam AG over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
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

Also available in: Atom PDF