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 <[email protected]> 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(), mimetype='text/calendar') >> response['Content-Disposition'] = 'attachment; filename=schedule.ics' >> return response >> >> I can't close the window before the download using >> >> <form method='post' onSubmit="close.window()"> >> .... >> </form> >> >> because I get an error that the window closed. >> >> So after the form download the window is hanging in limbo. If anyone >> knows >> how to close the window I'd appreciate it. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group >> athttp://groups.google.com/group/django-users?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

