Why does the "action" input parameter not recognized by the ajax call? My code looks like this:
<script type="text/javascript">
$(document).ready(function (string action) {
$.ajax({
type: "GET",
url: @Url.Action(action, "Default") ,
data: param = "",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: successFunc,
error: errorFunc
}).done(function () {
alert("Success");
}).error(function () {
alert("Faile");
});
}
</script>