November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
I found the answer. Maybe it could be handy to someone. Actually the ajax call needs to be on the Block not on the Controller.
Here is the updated code:
function clickSubmit() {
$.ajax({
type: "POST",
url: '@Url.Action("Convert", "JumbotronConversionBlock")',
contentType: "application/json; charset=utf-8",
data: { a: "testing" },
dataType: "json",
success: function() { alert('Success'); },
error: function () { alert('Failed'); }
});
}
Hello Folks
I'm trying to call a controller with ajax and it keeps on failing. Anybody can help? Here is the code
Controller Code
Html Code
ERROR