var action="<%=request.getParameter("formAction")%>" ;
var options = {
formType :'normal',
target: '#MyResult',
url: '<%=rootPath%>/'+action,
type :'post',
beforeSubmit : showRequest,
success: showResponse,
dataType: 'json',
timeout: 600000
var options = {
formType :'normal',
target: '#MyResult',
url: '<%=rootPath%>/'+action,
type :'post',
beforeSubmit : showRequest,
success: showResponse,
dataType: 'json',
timeout: 600000
};
// 把选项对象传递给ajaxForm函数
$(‘#myForm’).ajaxForm(options);
function uploadBonitaFile(id) {
$('#myForm').ajaxForm({
beforeSubmit: function(a,f,o) {
o.dataType = "html";
},
success: function(data) {
$(myForm).ajaxFormUnbind (); //解除绑定
}
}
}
});