views:

53

answers:

0

Hi!

I'm developing an upload form. It works fine with Firefox, but not with IE. Here is the code:

if(hasError == false) {
    $(this).hide();
    $("#uploadForm").append('show an image');
    $.post("_upload_form_process.php",{ filename: filenameVal, datasetdesc: datasetdescVal, datasetname: datasetnameVal},
        function(data){
            $("#uploadForm").slideUp("normal", function() {  
                $("#uploadForm").before('Success, The dataset was uploaded correctly!');           
            });
        }
    );
}

So after validation (hasError == false), the form is posted. FF waits for the answer, but IE goes past it and executes the slideUp.

Can anybody help me?

Thx!