admin管理员组文章数量:1330386
So like this post's title says, I'm sending a POST request via jQuery's AJAX method. However, the PHP code it runs does indeed run. Everything in the PHP code works as it should. The only issue is that it's not returning a success in order to run the success
function.
Client-Side JS Code:
<script>
function mandUpdate(mand, action, element) {
$.ajax({
type: "POST",
url: "update/mands.php",
data: {id: window.location.href.split("?id=").slice(1).join("?id="), type: "NA", mand: mand, action: action, value: document.getElementById(mand + "Text").value},
success: function() {
document.getElementById(element).innerHTML = "
本文标签:
javascriptjQueryAJAX POST Request is giving a 500 Internal Server ErrorStack Overflow
版权声明:本文标题:javascript - jQuery - AJAX POST Request is giving a 500 Internal Server Error - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人,
转载请联系作者并注明出处:http://www.betaflare.com/web/1742223528a2435604.html,
本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论