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
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
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
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
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
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
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
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
8 matches
Mail list logo