How to retrieve the response from servlet Using the File Upload

22 views
Skip to first unread message

umasreey

unread,
Feb 27, 2015, 12:57:24 PM2/27/15
to jquery-f...@googlegroups.com
Here is some sample code of mine.

 done: function(e, data) {
                                    
                                        $('#' + event.target.id).fileupload('disable');
                                        $('#' + event.target.id).attr({
                                            'disabled': 'disabled'
                                        });
                                        var myFile = $(this);
                                        var newFileStatus = $("<span id=successMsg" + event.target.id + " >"
                                            + "File uploaded SuccessFully</span>");
                                        $(myFile, form).after(newFileStatus);
                                        var newFilehidden = $("<br><input type='hidden'   name=fileUpload"
                                            + event.target.id + " id=fileUpload" + event.target.id + " value='"
                                            + data.files[0].name + "'/>");
                                        $(myFile, form).after(newFilehidden);
                                        $('#FailureMsg' + event.target.id).remove();
                                    
                                },


Thanks In Advance!!!!!!!!!!!!!!!!!!!!!

Reply all
Reply to author
Forward
0 new messages