I use ajax with jquery and when I tried to display the result in popup. Then alert always displays 0
0
success : function(results) { alert(result
May be you are trying without login. so you need to use this action.
add_action('wp_ajax_nopriv_my_action', 'my_action_callback');
you will get response. :)