Take the 2-minute tour ×   var myObject =
content.get_response().get_object();  However it just throws a
"Microsoft JScript runtime error: Object doesn't support this
property or method" when trying to invoke the Ajax POST.  My
code:   public ActionResult Index(string message)   <!DOCTYPE
html>      <script
src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.js")"
type="text/javascript"></script>      <script
type="text/javascript">         function
JsonAdd_OnComplete(mycontext) {             var myObject =
mycontext.get_response().get_object();
@using(Ajax.BeginForm("Index", "Home", new AjaxOptions() {
HttpMethod = "POST", OnComplete = "JsonAdd_OnComplete" }))
Thanks in advance.  share|improve this question I don't know ASP
but are you sure that OnComplete = "JsonAdd_OnComplete"
shouldn't maybe be OnComplete = JsonAdd_OnComplete ?? In other
words, don't quote the function name ... –  Pointy Dec 27 '10 at
15:58 Yes, according to the documentation it should be
"FunctionName". - I've tried OnCompl