English 中文(简体)
J Query 请求在google appengine中重叠
原标题:JQuery Requests overlaps in google appengine

然而,我有活力的附加功能,如将客户列入客户名单,出现在活动期间。 它增加了新的清单项目,一旦用户点击案文箱,一旦用户输入有效内容,就会在清单中增加新输入的项目,以图示新添加的内容。 在用户点击已定的项目时,删除该清单。

当我们在当地实施这一功能时,我们就能够把客户列入从一个审判中的许多清单。 但是,如果将申请上载并审判,则会节省一个新的客户群体,但当试图从一枪中增加更多人员时,只添加最后一点。 以前增加的客户主要正在申请。 如果客户拥有已经具备的关键,则删除已经添加的客户。 这种做法更像我们的朋友名单,你可以在朋友的网页上找到。

有一种办法可以同步进行“jquery ajax”要求。 谁能提供帮助?

$( .newcustomerlist ).live("keypress",function (event) {
    var element_id = $( .custitem ).attr( id );
    var customer_key = null;
    var url_key = null;
    if (element_id != null) {
        customer_key  = element_id.split( # )[0]
        url_key = element_id.split( # )[1]
    } else {
        url_key = $(this).attr("id");
    }

    if(event.which ==  13 ) {
        var cust_list_name = $(this).val().trim();
        var val = (/^[a-zA-Z ]*[-a-zA-Z0-9_ ]+$/).test(cust_list_name);
        if(val){
            $.ajax({
                type : "GET",
                url : "/addcustomerfromhere/",
                data : "cust_list_name=" + cust_list_name,
                success : function (msg) {
                    new_customer_key  = msg.customer_key ;
                    $.ajax({
                        type : "GET",
                        url : "/addcustomertolist/",
                        data : "url_key=" + url_key + "&customer_key =" + new_customer_key ,
                        success : function (data) {
                            $("ul.custlist").prepend("<li id="+ new_customer_key  + "#"+ url_key + " class= custitem addedtocust ><span>" + msg.cust_list_name + "</span></li>");
                            $(".title").show();
                        },
                        error : function (XMLHttpRequest, textStatus, errorThrown) {
                            $.notify({message:  Apologies. Our servers are busy at this moment. Please try again later. , type:  error });
                        }
                    });
                },
                error : function (XMLHttpRequest, textStatus, errorThrown) {
                    $.notify({message:  Apologies. Our servers are busy at this moment. Please try again later. , type:  error });
                }
            });
        $(".addnew").show()
        $(".newtext").hide()
        } else {

        }
    }
});
最佳回答

各位可以把这一点加在亚克斯选择中:

async:false
问题回答

暂无回答




相关问题
How to make logging.debug work on Appengine?

I m having a tough time getting the logging on Appengine working. the statement import logging is flagged as an unrecognized import in my PyDev Appengine project. I suspected that this was just an ...

gqlQuery returns object, want list of keys

Is there a way to convert the GqlQuery object to an array of keys, or is there a way to force the query to return an array of keys? For example: items = db.GqlQuery("SELECT __key__ FROM Items") ...

Integrating Google AppEngine with a Thick Client

I want to make a multi-user client-server solution with Java Swing thick client as a front-end and Google AppEngine (Java one) as a back-end. The problem is that GAE provides only web-based forms for ...

sorl.thumbnail : thumbnail is not a valid tag library?

I am trying to install sorl.thumbnail but am getting the following error message: thumbnail is not a valid tag library: Could not load template library from django.templatetags.thumbnail, No module ...

热门标签