I m running this from within VS2010 and an error comes up when the form is submitted which says "Microsoft JScript runtime error: Object doesn t support this property or method". Any suggestions?
<script type="text/javascript">
function BlockUI() {
$.blockUI({ message: "<h1>Remote call in progress...</h1>" });
}
</script>
@using (Ajax.BeginForm("Switch", new AjaxOptions() {
UpdateTargetId = "Switch" + Model.Id,
InsertionMode = InsertionMode.Replace,
OnSuccess = "",
OnBegin = "BlockUI()",
OnComplete = "",
OnFailure = "alert( Failed to update switch )",
Confirm = "",
HttpMethod = "POST",
LoadingElementId = "",
Url = ""
}))