My code which was working earlier with a Action returning Javascript has suddenly stopped working.
My view shows a jquery dialog and within that dialog when user clicks save button control goes to mvc post which returns
return JavaScript("OnCreateSuccess('some value')");
Earlier the javascript method use to execute.. now instead, the browser view is replaced with text
OnCreateSuccess('some value');
I know its not the good way of passing information but I inherited this code like it is.