Switch from jQuery $.post to more explicit $.ajax request