I am debugging this ajax for quite a time now. I have this on my jQUery file:
$(\"#typeForm\").ajaxForm({ success : function(html){ alert(html);
It looks like you need to escape your quotes server-side. Since they are in there, it seems to be creating an invalid JSON string.