小编Sha*_*han的帖子

Typo3 9 Ajax请求,页面类型返回404

我的网站有一个使用 AJAX 嵌入的搜索过滤器表单。当我使用简单类型参数访问页面时,它会返回内容,但是当我尝试使用 GET 传递其他参数时,它会显示 404。 示例: http://www.website.com/?type =871 (它显示默认内容) http://www.website.com/?type=871&controller=abc(返回404)

Jquery Ajax 代码

 $.ajax({
                    type: 'GET',
                    url: $(this).attr('action') + '?type=871',
                    data: $(this).serialize(),
                    success: function (data) {
                        $('#searchresults').html(data);

                    }
                });
Run Code Online (Sandbox Code Playgroud)

打字稿代码

  mlAjax = PAGE
mlAjax {
    typeNum = 871
}

    [globalVar = GP:type = 871]
        config {
            disableAllHeaderCode = 1
            xhtml_cleaning = 0
            admPanel = 0
            debug = 0
            no_cache = 1
        }

        tt_content.list.10 >

        // Insert content that can handle the request
        mlAjax {
            10 = …
Run Code Online (Sandbox Code Playgroud)

ajax typo3 http-status-code-404

1
推荐指数
1
解决办法
3903
查看次数

标签 统计

ajax ×1

http-status-code-404 ×1

typo3 ×1