Re: Submitting Django forms with AJAX

2011-02-04 Thread Antônio Ribeiro
You're right! Sorry, my mistake. On 4 February 2011 11:06, Tom Evans wrote: > 2011/2/4 Antônio Ribeiro : > > Well, I've never seen this method before "request.is_ajax()", so i went > to > > documentation. > > And here what i've found: > > "Returns True if the request was made via an XMLHttpRequ

Re: Submitting Django forms with AJAX

2011-02-04 Thread Tom Evans
2011/2/4 Antônio Ribeiro : > Well, I've never seen this method before "request.is_ajax()", so i went to > documentation. > And here what i've found: > "Returns True if the request was made via an XMLHttpRequest, by checking > the HTTP_X_REQUESTED_WITH header for the string 'XMLHttpRequest'." > So I

Re: Submitting Django forms with AJAX

2011-02-04 Thread Antônio Ribeiro
Well, I've never seen this method before "request.is_ajax()", so i went to documentation. And here what i've found: *"Returns True if the request was made via an XMLHttpRequest, by checking the HTTP_X_REQUESTED_WITH header for the string 'XMLHttpRequest'."* * * So I though the jQuery already sends

Re: Submitting Django forms with AJAX

2011-02-04 Thread David De La Harpe Golden
On 04/02/11 01:41, mf wrote: > I'm very confused about > how to approach ajax forms submission with django. I would suggest the ajaxForm plugin. http://jquery.malsup.com/form/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gr

Re: Submitting Django forms with AJAX

2011-02-04 Thread mf
Thanks Daniel, I made the change but I see no different results. On Feb 4, 6:29 am, Daniel Roseman wrote: > On Friday, February 4, 2011 1:41:36 AM UTC, mf wrote: > > > I want to have a little feedback form in one of my views but I can't > > get it to work. I put a pdb.set_trace() to debug the vie

Re: Submitting Django forms with AJAX

2011-02-04 Thread Daniel Roseman
On Friday, February 4, 2011 1:41:36 AM UTC, mf wrote: > > I want to have a little feedback form in one of my views but I can't > get it to work. I put a pdb.set_trace() to debug the views but when I > click submit the view reloads and never gets into the if > request.method == 'POST' and... code

Re: Submitting Django forms with AJAX

2011-02-03 Thread Shawn Milochik
What's the dev server output when the AJAX call is attempted? Which Django version? I don't see a CSRF token in the form. Shawn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com

Submitting Django forms with AJAX

2011-02-03 Thread mf
I want to have a little feedback form in one of my views but I can't get it to work. I put a pdb.set_trace() to debug the views but when I click submit the view reloads and never gets into the if request.method == 'POST' and... code section. I'm very confused about how to approach ajax forms submis