asp.net - Ajax Form Submit, jQuery Error for Invalid Character -
i new comer on mvc! , need help.
on click of submit of button calling below ajax code due jquery error not calling controller.
@using (ajax.beginform("createzzz", "xxxxxx", new ajaxoptions { httpmethod = "post", updatetargetid = "sponsorzzz", insertionmode = insertionmode.replace, onsuccess = "close", })) {
on submit, system throws error "invalid character" @ below jquery code. tried following resolve lard luck..
- update/install "install-package microsoft.jquery.unobtrusive.ajax -version 3.2.3"
- verified controller , action name.
let me know if have possible suggestion. trying luck last 1 day failed success.
error coming on ie
unobtrusive validation support library jquery , jquery validate ** copyright (c) microsoft corporation. rights reserved.
at below line
e=a.parsejson(b.attr("data-valmsg-replace"))!==false;
error coming on crome
789:1 uncaught syntaxerror: unexpected token u in json @ position 0 @ function.parse [as parsejson] (<anonymous>) @ htmlformelement.l (<anonymous>:5:392) @ a.validator.r (bundledjs?v=wvogjns1m1zzkysvvxnr5qztgnq_uwnasm21lcwbums1:1) @ a.validator.showlabel (<anonymous>:4:13866) @ a.validator.defaultshowerrors (<anonymous>:4:12885) @ a.validator.showerrors (<anonymous>:4:7850) @ a.validator.form (<anonymous>:4:6770) @ i.fn.init.valid (<anonymous>:4:1268) @ object.validate (<anonymous>:5:1448) @ j (jquery.unobtrusive-ajax.min.js:19)
Comments
Post a Comment