Home > front end > Chrome after upgrading, JQuery form subimt a bad way
Chrome after upgrading, JQuery form subimt a bad way
Time:09-16
My code is as follows:
Save: function () { $(" # save "). The linkbutton (" disable "); Var _url="/Request/ashx/ABC ashx? Type=update "; $(' # form1 '). The form (the 'submit' { Url: _url, OnSubmit: function (param) { Param. Operatestatus=BaseParam. ProOperateStatus; Var isSubmit=true; Try { Var validate=$(" # form1 "). The form (" validate "); if (! Validate) { Throw "please fill in all required fields!" ; } The else { BasicFunction. GetEditData (param, true); }
WebUI. Events. SaveBefore (param); } The catch (ex) { EasyUIBase. EasyuiAlert (ex); IsSubmit=false; $(" # save "). The linkbutton (" enable "); } Return isSubmit; }, Success: the function (data) {
}, Error: function (XMLHttpRequest, textStatus errorThrown) { EasyUIBase. EasyuiAlert (XMLHttpRequest. The responseText); $(" # save "). The linkbutton (" enable "); } }); }
This code has been running a few years there are no more questions, after chrome upgrade this code can not make, $(' # form1 '). The form (the 'submit' {}) according to the result of don't send the request to the server or the server returns is canceled, could you tell me how to handle all this to?
CodePudding user response:
See jq for the first time. The form, thought uncultured, and checked the, by the way, is not it, dare the original poster is this writing your own plugin?