I have read all on the theme but I can't understand what's wrong.
$(document).ready(function() { $.post("tweet.py", { lat : searchResult._point.__lat, lng : searchResult._point.__lng, text : searchResult.text }, function(data) { alert(data); }); }); The handler's code:
import django def iEventAjax(request): if request.is_ajax(): return HttpResponse("ok") The alert message is
"import django def iEventAjax(request): if request.is_ajax(): return HttpResponse("ok") " instead of "ok"
what's wrong?