Hi there,
I´m using django to generate a pdf and return the response as an attachment in the view.
response = HttpResponse(mimetype='application/pdf')
response['Content-Disposition'] = 'attachment; filename=somefilename.pdf'
Similar to the way described in the doc (http://docs.djangoproject.com/en/dev/howto/outputting-pdf/#write-your-view)
What is the best way to reload the page?
This didn´t work out (the form triggers the pdf generation):
$('#the_form').submit(function(){
location.reload();
});
Thanks a lot, Danny