asp.net mvc - Getting 404 using ajax in nopCommerce plugin -
I'm using nopCommerce 3.40
I call Ajax calls in the nopcommerce plug-in Getting the error on
See page code looks like:
$ (function () {var submitButton = $ ("# buttonid"); // submit submit button Attach event handler button to. () {SubmitInfo ();});}); Function SubmitInfo () {$. AZ ({url: '@ Url.Action} ("ActionName", "ControllerName"), type:' post ', data type: "json", success: function (result) {}, error: function (jquxhr, textstats , Erratrown) {}}); }
looks like the admin code
public JsonResult ActionName () {// some code here}
Look like my current URL:
localhost: 15536 / admin / plugins / groupname / system name / configure
look like AJAX URL in firebug :
I have also tried with this URL but did not find the debug point in action:
localhost: 15536 / Admin / ControllerName / ActionName
Code> Localhost: 15536 / Admin / Plugins / GroupName / SystemName / ActionNem
Please give me some ideas.
Regards, Jatin
I got the solution,
When the current page is opened by the route, simply enter
url: '@ Url.Action ("ActionName", "ControllerName"),
url: "/ admin / action / name",
This is work for me.
Comments
Post a Comment