Im a little bit confuse about firing a call back function in javascript modal of bootstrap3. In normal jquery.post you can do it like,
jquery.post
$.post(\
For Bootstrap 3, the events are now namespaced, so the show event for the modal would be show.bs.modal...
show
show.bs.modal
$('#myModal').on('show.bs.modal', function (e) { alert('modal show'); });
Demo: http://bootply.com/90952