加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

AJAX的异步提交与局部刷新

发布时间:2020-12-16 02:09:03 所属栏目:百科 来源:网络整理
导读: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" /tdjQuery("[id=confirm]").live("
<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);
 }
}

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读