Re: Close window after download

2010-05-12 Thread Sebastian Pawlus
I'm not sure about your case http://jquery.malsup.com/form/ and event "success", take a look on http://jquery.malsup.com/form/#ajaxSubmit. > Does anyone know how to track if a download completed? > > On May 6, 9:52 pm, CrabbyPete wrote: >> I have code that generates a file for download. I want t

Re: Close window after download

2010-05-11 Thread CrabbyPete
Does anyone know how to track if a download completed? On May 6, 9:52 pm, CrabbyPete wrote: > I have code that generates a file for download. I want to close the > window after the user selects the download or even redirect them. > > Here is my code: > > response = HttpResponse(cal.as_string(), m

Close window after download

2010-05-06 Thread CrabbyPete
I have code that generates a file for download. I want to close the window after the user selects the download or even redirect them. Here is my code: response = HttpResponse(cal.as_string(), mimetype='text/calendar') response['Content-Disposition'] = 'attachment; filename=schedule.ics' return re