0

$("#btnLogin").click(function () {

          if (order != "undefined")
              $.ajax(
                 {
                     type: "POST",
                     data: "{'NewOrder': '" + order + "'}",
                     url: "imgpost.aspx/Update",
                     dataType: "json",
                     contentType: "application/json",
                     processdata: true,
                     beforeSend: function (xhr, data) {
                         console.log(data);
                         alert(data);
                     },
                     success: function (msg) {
                     },
                     error: function (XMLHttpRequest, textStatus, errorThrown) {
                         alert("Error Occured!" + " | " + XMLHttpRequest + " | " + textStatus + " | " + errorThrown);

                     }
               });
      });

Here ajax call is failed and not redirecting to url : "imgpost.aspx/Update".

XMLHttpRequest and textStatus shows undefined and error respectively.

It occours only in latest update of mozilla 18.0.1

can anybody help me with this.

4

1 回答 1

0

删除对象周围的引号。

data: {NewOrder: order},
于 2013-02-06T12:47:13.347 回答