Re: Django AJAX forms and views

2012-05-16 Thread Joel Khan
Thanks. Actually I m using a lib called prototype where its returning the csrfmiddlewaretoken. I have tested the alert in my function and its returning the csrf token correctly. I m sending the color to the html page. I tried using both chrome and firefox with firebug and chrome doesnt do anything

Re: Django AJAX forms and views

2012-05-15 Thread Kurtis Mullins
I'll try to help out a bit. The first problem I see is in your Javascript. I believe your JQuery selector is supposed to be the field's ID -- so, for example, $("#csrfmiddlewaretoken"). Next, in your view -- I don't see where you're actually returning any data. You should use Firebug or the Chrome