0

我有一个在专用服务器上完美运行的 php 应用程序。一旦我迁移到 heroku,ajax 调用就开始返回错误,例如无法加载。

例如下面的代码返回错误。Album_handle.php 文件存在于服务器上。

var url = "album_handle.php?id=" + album_images.id;
$('#ajaxholder').load(url, "",
        function(responseText, textStatus, XMLHttpRequest) {
            $("#dvloader").hide();
            if(textStatus == 'error') {
                $('#ajaxholder').html('<p>There was an error making the AJAX request</p>');
            }
        }
    );
4

1 回答 1

0

问题不在于heroku 中的ajax 调用。此处的 ajax 调用处理 php gd 函数。由于某些 php gd 函数在 heroku 上不起作用,因此提出了问题。

于 2012-08-03T13:21:49.757 回答