Re: having problem with jquery ajax

2015-01-19 Thread James Schneider
Quick guess, you are visiting the site in your browser using http://localhost:8000. I'm betting if you instead visited it using http://127.0.0.1:8000, the AJAX query would work fine. You have http://127.0.0.1:8000 hard coded (or being generated) everywhere. Either change your JavaScript to use

having problem with jquery ajax

2015-01-19 Thread Aussie Niki
my view: def aget(request): if request.is_ajax() : json_data={} json_data['messege']= 'sorry' return HttpResponse(json.dumps(json_data), content_type='applicaton/json') my url: urlpatterns = patterns('', url(r'^$', 'post.views.home',