我做从site.com/users/{username Ajax调用}jQuery的阿贾克斯URL
我想访问的URL site.com/account/deleteComment,但是当我在Firebug检查它是试图访问site.com/users/account/deleteComment
这里是我的代码
$.ajax({
url: "../account/deleteComment/" + deleteID,
success: function() {
$("#comment-" + deleteID).slideUp("fast");
}
});
肯定。但没有使用URLS的绝对方式? – 2010-11-18 10:11:08
哎。将尝试它 – 2010-11-18 10:11:26
看起来像它的作品。在本地主机上我有我的应用程序在localhost/project /所以它去localhost/account/deleteComment是有办法让它在任何地方工作。我确信它可以在服务器上运行:D – 2010-11-18 10:14:42