在TYPO3中没有得到ajax响应
我在在TYPO3中没有得到ajax响应,ajax,typo3,typo3-7.6.x,typo3-8.x,typo3-extensions,Ajax,Typo3,Typo3 7.6.x,Typo3 8.x,Typo3 Extensions,我在setup.txt中使用它来生成ajax调用 myAjaxPage = PAGE myAjaxPage { config { disableAllHeaderCode = 1 debug = 0 no_cache = 1 additionalHeaders { 10 { header = Content-Type: application/json replace = 1 } } } typeNum =
setup.txt中使用它来生成ajax调用
myAjaxPage = PAGE
myAjaxPage {
config {
disableAllHeaderCode = 1
debug = 0
no_cache = 1
additionalHeaders {
10 {
header = Content-Type: application/json
replace = 1
}
}
}
typeNum = 427590
10 < tt_content.list.20.documentcenter_list
}
myAjaxPage=PAGE
myAjaxPage{
配置{
disableAllHeaderCode=1
调试=0
无缓存=1
附加标题{
10 {
header=内容类型:application/json
替换=1
}
}
}
typeNum=427590
10
但我无法从我的控制器得到任何响应,而网络状态给了我200,如图和图所示
我做错了什么,或者如果有人能指导我,我会很有帮助 每次使用包含typeNum
参数的页面时,必须将其添加到URL
中
http://exmample.com/index.php?id=48&type=427590
这是URL的格式。您需要这样的设置:
tx_cardealer_ajax = PAGE
tx_cardealer_ajax {
features {
skipDefaultArguments = 1
}
typeNum = 4711
config {
disableAllHeaderCode = 1
xhtml_cleaning = 0
admPanel = 0
additionalHeaders = Content-type: text/plain
no_cache = 1
}
10 = USER
10 {
userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
extensionName = Cardealer
pluginName = Cardealer
vendorName = EXOTEC
controller = Cardealer
switchableControllerActions {
Cardealer {
1 = ajax
2 = list
3 = filter
4 = show
10 < tt_content.list.20.contentautocomplete_content
}
}
}
}
tx\u cardealer\u ajax=PAGE
tx_cardealer_ajax{
特征{
skipDefaultArguments=1
}
typeNum=4711
配置{
disableAllHeaderCode=1
xhtml_清理=0
admPanel=0
additionalHeaders=内容类型:文本/普通
无缓存=1
}
10=用户
10 {
userFunc=TYPO3\CMS\Extbase\Core\Bootstrap->run
extensionName=Cardealer
pluginName=Cardealer
vendorName=EXOTEC
控制器=卡迪勒
可切换控制器动作{
卡德勒{
1=ajax
2=列表
3=过滤器
4=显示
10
我如何知道调用哪个操作?我仍然得到一个空白响应type=427590
确定您的操作和ajax行为这将出现在您的打字稿中。它仍然不起作用。我收到一个空白的回复页面我能看看你的设置吗?