[jQuery] Popup window after file upload in firefox and ie

2009-05-07 Thread csetzkorn

Hi,

I am using this code:

var options =
{
url: '../Account/Upload',
type: 'POST',
contentType: 'multipart/form-data',
dataType: text,
error: function(XMLHttpRequest, textStatus,
errorThrown) {
...
},
success: function(data) {
...
},
beforeSend: function() {
...
},
semantic: false
};

// bind form using 'ajaxForm'
$('#item_form').ajaxForm(options);

to upload files to the server, which works fine. I am using the forms
plugin and the multifile upload plugin. I believe that the former
plugin uses the 'iframe approach' to allow file upload. Unfortunately,
I get file download popups in my browsers (tried firefox and IE) after
the upload. For example, firefox's popup is You have chosen to
open  I believe this has to do with the iframe stuff. Is there a
way to avoid these pop ups?

Thanks.

Best wishes,

Christian


[jQuery] Popup window

2008-04-10 Thread Paul Collins

Hi all,

I have been searching for some code to create a popup using JQuery.
Surprisingly, I am having a hard time. I want to create one where you
can specify size and not have the standard search bar, etc.

Would appreciate any help.
Cheers
Paul