我有一个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>');
}
}
);
发布于 2012-08-03 21:21:50
问题不在于heroku中的ajax调用。这里的ajax调用处理php gd函数。由于某些php gd函数在heroku上不起作用,因此提出了这个问题。
https://stackoverflow.com/questions/11780517
复制相似问题