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
That's probably because the server side script you are calling with AJAX returns 0 (the one you have specified in the url property).
url