Re: response to ajax (jquery) with variables

2014-08-31 Thread Antonio Russoniello
a 500) } }); Regards, Andréas 2014-08-30 4:57 GMT+02:00 Antonio Russoniello mailto:aruss...@musicparticles.com>>: Now I can read data from ajax to my def but I have not idea to how send, for examle, an array to jquery and manage this from javascript... I tried:

Re: response to ajax (jquery) with variables

2014-08-29 Thread Antonio Russoniello
as Kuhne escribió: Hi Antonio, import simplejson as json return HttpResponse( json.dumps({ 'array': example }), content_type="application/json" ) That would do the trick. This is returned as JSON. Remember to set the content_type, otherwise the clien

Re: response to ajax (jquery) with variables

2014-08-29 Thread Antonio Russoniello
is returned as JSON. Remember to set the content_type, otherwise the client can get confused. Regards, Andréas 2014-08-28 2:56 GMT+02:00 Antonio Russoniello mailto:aruss...@musicparticles.com>>: Hello, i hope you can help me with this, I'm trying to send to an ajax (

response to ajax (jquery) with variables

2014-08-27 Thread Antonio Russoniello
Hello, i hope you can help me with this, I'm trying to send to an ajax (jquery from my html template) a response but i would like to send also a new variable. in my html template I have: $("#init_date").click(function(){ var some_date = {'init_date': init_date, 'end_date': end_da