I finally figured out how to do this ....
$("#upload_target").load(function (data) { if (data != null){ var obj = jQuery.parseJSON(data);
Whether it is right or not, it works.
edit - in fact, I was a little ahead of myself. here is the correct code ....
$("#upload_target").load(function (){ var retval = $(frames['upload_target'].document).text(); if (retval != null) { try{ var obj = jQuery.parseJSON(retval);
One thing I had to change was to make sure that in my MVC controller there was a JSONResult.ContentType = "text / plain" setting. Otherwise, I got a download dialog box.
source share