$ .AJAX.error升c.fireWith牛逼R错误?这是什么? [英] $.AJAX.error l c.fireWith T r error? what is this?

查看:235
本文介绍了$ .AJAX.error升c.fireWith牛逼R错误?这是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这<一href="http://stackoverflow.com/questions/14447526/cant-figure-out-why-php-script-failing-on-ajax-call">answer说,当它发出两次发生。

This answer says it occurs when it sends twice.

煤矿激活当用户更改在选择框中的值,所以这不是我的问题。

Mine activates when a user changes the value in a selection box, so this isn't my problem.

<一个href="http://stackoverflow.com/questions/18828888/ajax-post-in-using-slim-framework-outputs-500-internal-server-error">Here是我的previous问题,这说明我的code和错误的一些截图。

Here is my previous question which shows my code and a few screenshots of the errors.

我不能得到500(内部服务器错误)的工作,希望解决AJAX的问题第一个将帮助把它清除出来。

I couldn't get the 500 (Internal server error) working, hopefully solving the ajax problem first will help sort it out.

从控制台完整的错误:

error                                                  admin-add-module:128
    $.ajax.error                                       admin-add-module:128
    l                                                  jquery-1.8.3.min.js:2
    c.fireWith                                         jquery-1.8.3.min.js:2
    T                                                  jquery-1.8.3.min.js:2
    r                                                  jquery-1.8.3.min.js:2

改变jQuery来完整版本,它输出此错误后:

After changing JQuery to the full version it output this error:

推荐答案

我摆脱了500互联网服务器错误。我没有解析通过链接。

I got rid of the 500 internet server error. I wasn't parsing through the link.

$app->post('/admin-get-add-module', function () use($app,$link){ <<<<<<<<LINK HERE
    $req = $app->request();
    $stackid = $_POST['stackid'];
    $myStacks = filterStacks($app);
    $app->view()->appendData(array("username" => getUsername($app)));
    $sql = $link->prepare("select * from evironments where StackID=?");
    error_log(var_export($sql,true));
    $sql->bind_param("i", $stackid);
})->name('admin-get-add-module');

它仍然无法正常工作,虽然<一href="http://stackoverflow.com/questions/18845350/sql-query-returns-non-object-using-ajax-jquery-and-slim-framework">here是链接到SQL / AJAX的问题

It still doesn't work though here is a link to the sql / ajax problem

这篇关于$ .AJAX.error升c.fireWith牛逼R错误?这是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆