<script  type="text/javascript">

$(document).ready(function() {

 validForm('artitleForm', function(){

$.post('postRequestUrl', $('#artitleForm').serialize(), function(data){

     // 强制成功请套入后删除,上面的php地址更换为提交后的页面

var resp = eval("("+data+")");

     if(resp.status == 'success'){

         fbox({type:'success', msg:resp.message, delayClose:1000, boxArgs:{ onClosed: function(){ parent.$.fancybox.close(); window.parent.location.reload();} }});

     }else if(resp.status == "error"){

 fbox({type:'error', msg:resp.message, delayClose:1000});

     }else if(resp.status == 'validate'){

eval(resp.message);

  }

});

 }); //表单验证

}); //编辑图像

</script>