Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
How to work with Ajax to call surface controller's method in Umbraco 7.3.5 ? Previously in Umbraco 7.2 i used like this: $.ajax({ type: "POST", data: "{'searchString':'@searchString ','pageS':' @pageS ','pageSize':' @pageSize '}", url: "/umbraco/Surface/{controller Name}/{method Name}/", contentType: "application/json; charset=utf-8", dataType: "json", success: function (response) { } });
But now(7.3.5) its showing path not found error to the controller's method . Thanks in Advance...
I'm still using 7.2 so I can't test it but if it's a path problem maybe you can try using
@Url.Action("actionName", "ControllerName")
It will generate a fully qualified url to the action.
Thanks for your reply Rick... I did small mistake in dll reference thats why ajax call is not worked. my above code working properly in 7.3.5 too.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Ajax call to surface controller in umbraco7.3.5
How to work with Ajax to call surface controller's method in Umbraco 7.3.5 ? Previously in Umbraco 7.2 i used like this:
$.ajax({
type: "POST",
data: "{'searchString':'@searchString ','pageS':' @pageS ','pageSize':' @pageSize '}",
url: "/umbraco/Surface/{controller Name}/{method Name}/",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (response) {
}
});
But now(7.3.5) its showing path not found error to the controller's method . Thanks in Advance...
I'm still using 7.2 so I can't test it but if it's a path problem maybe you can try using
@Url.Action("actionName", "ControllerName")
It will generate a fully qualified url to the action.
Thanks for your reply Rick... I did small mistake in dll reference thats why ajax call is not worked. my above code working properly in 7.3.5 too.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.