Re: Sending data to the server

2012-03-28 Thread drk
It works if you apply the filer 'escapejs'. Thanks anyway. On 26 Mar, 16:29, drk wrote: > Just to rephrase it, I'm setting the data through a variable in a django > template, maybe that's not the best way to do it, I guess. > > Segunda-feira, 26 de Março de 2012

Re: Sending data to the server

2012-03-26 Thread drk
Just to rephrase it, I'm setting the data through a variable in a django template, maybe that's not the best way to do it, I guess. Segunda-feira, 26 de Março de 2012 16h23min15s UTC+1, drk escreveu: > > Yea, that was it. > Also changing the url to just '/logout'

Re: Sending data to the server

2012-03-26 Thread drk
t. Segunda-feira, 26 de Março de 2012 08h16min49s UTC+1, jim escreveu: > > Do you have CSRF protection enabled? > > https://docs.djangoproject.com/en/dev/ref/contrib/csrf/ > > It will 403 POST requests unless they have the right token. > > Jim > > On Sun, Mar 25, 2012 a

Sending data to the server

2012-03-25 Thread drk
Hi, so I have a application that works offline (with localStorage), and now I'm trying to get it to work in a server. I'm having a problem sending the data to server, I'm using jquery: $.ajax({ type: 'POST', url: 'http://mysite.aa/logout/', data: JSON.stringify( stuff ), contentT