The form submission in EasyUI 1.5.1 is problematic. On submitting the form I get redirected to the home page. There is no request received on the server-side. I am trying to upload a file (selected by using filebox) on submitting the form.
I define the form and filebox objects as follows:
<script type="text/javascript">
$(function(){
$('#fileToUpload').filebox({
prompt:'select file to upload',
buttonText: 'Select File',
buttonAlign: 'left',
width:'250',
accept:'text/*'
});
$('#filesUploadWinForm').form({
ajax: false,
success: function(serverResponse) {
handleUploadFileDoResponse(serverResponse);
}
});
});
function handleUploadFileDoResponse(resp) { ... }
</script>
<div>
<form method="POST" id="filesUploadWinForm" enctype="multipart/form-data" accept-charset="UTF-8">
<input id="fileToUpload" name="fileToUpload">
</form>
</div>
If I include the form plugin "jquery.form.js" of Version 1.4.5 it works normal.
Could you please check what the problem is? Thanks!