Callback for form submission (with jQuery)?

Rewritten after rereading the question. Here's what I'd try.

Rewritten after rereading the question. Here's what I'd try: Serialize the form and make it the return value from the dialog, i.e. Pass the data back to the page.

Close the dialog Submit the serialized form.

The file is streamed, so I cant do a GET on the file. I know that you cant do this with ajax, which is why I was originally asking. I obviously understand the need to call close within the callback, it was more about whether there was a window or document event I can bind to when the file download begins.

Ive tested the form plugin, but the post-submit callback never gets triggered. The pre-submit executes fine, the form submits fine, the file downloads, but nothing happens when after the form submits (i.e. No post-submit callback).

– Dominic Feb 5 '10 at 2:14 Ah, reread the question and realized you were doing it as a synchronous POST. I guess I just skipped over the first sentence. And now I see why you wanted a timeout.

Edited response. – Isaac Cambron Feb 5 '10 at 3:19 Cant serialize file objects :( – Dominic Feb 5 '10 at 4:00 Hmm, right. I give up – Isaac Cambron Feb 5 '10 at 5:35.

I've used the Form plugin for uploads myself. Dden iframe targeting is standard practice for "ajax" uploading. – bluej100 Feb 5 '10 at 1:42 I debugged the form plugin, and I can get the callback working, however the modal is destroyed too fast, so the request never finishes and the file doesn't download – Dominic Feb 5 '10 at 5:07 @Dominic Can't you hide the modal instead of destroying it?

– bluej100 Feb 6 '10 at 23:23.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions