AJAX的异步提交与局部刷新

前端之家收集整理的这篇文章主要介绍了AJAX的异步提交与局部刷新前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
@H_404_0@<input type="button" style="width:80px" name="$appinfo.appName" placeholder="con_$appinfo.appName" id="confirm" #if($appinfo.disable==0) title="确认信息准确!?" value="确认准确" #end class="btn btn-default" ></td> jQuery("[id=confirm]").live("click",function(){ val={ appName:this.name,}; info = this.title; if(window.confirm(info)){ jQuery.ajax('appinfoConfirmResultSave.json',{ data:val,type:'POST',success: function(data){ if(jQuery("[name=status]").val()!="all"){ jQuery("[id = tr_" + data.appName + "]").attr("style","display:none"); },error:function(){ alert("发生未知错误,请重试"); } }); } }); /** * @author 璞尧 */ import public class AppinfoConfirmResultSave { public void execute( @Param("appName") String appName,turbineRunData rundata,Context context){ net.sf.json.JSONObject jsonObj = net.sf.json.JSONObject.fromObject(currentValue); JSONObject jsonObject = new JSONObject(); jsonObject.put("result","success"); jsonObject.put("appName",appName); } }

猜你在找的Ajax相关文章