< script type ="text/javascript" src ="/jquery/jquery.form.js" ></ script >
var options = {
url: "/photo/insert.do",
type: "post",
beforeSubmit: validateForm,
success: resultResponse,
dataType: 'json',
resetForm: false,
cache: false,
error:function(request,status,error){
alert("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error);
}
};
jQuery('#registForm').ajaxSubmit(options);