Re: Multiple AJAX sends within a views.py-function

2010-06-16 Thread Christoph Siedentop
Hi Ian, On Wed, Jun 16, 2010 at 4:11 PM, Ian McDowall wrote: > Cool. That is a clever way to subvert (I don't mean this negatively) > the response generation.  I do have a couple of comments: :-) Thanks > 1) It relies on the response being sent to the client as it is > generated and not buffered

Re: Multiple AJAX sends within a views.py-function

2010-06-15 Thread Christoph Siedentop
Hi Dmitry, hi Ian, thanks for the help. I got it to work. Here is what I am doing. Django gets a request for "/data.json". A view function is called. This is my function: def data(request): return HttpResponse(subsampling(), mimetype='application/javascript') subsampling() is an iterator