$(function(){ $("#istoCancel").click(function(){ $.getJSON("${ctx}/learning/webexSystem/webex/remove/${runclassid}", function(json){ if(json.result==false){ alert(json.message); return ; } window.location.reload(); }); }); }); @RequestMapping(value = {"webex/remove/cancelPage/{runclassid}"}) public String toCancelPopPage(Model model,@PathVariable String runclassid){ model.addAttribute("runclassid",runclassid); return "learning/webex/cancelPop"; } @RequestMapping(value = {"webex/remove/{runclassid}"}) @ResponseBody public String removeClassInfo(@PathVariable String runclassid){ Map<String,Object> backParam=new HashMap<String,Object>(); try{ this.teachRuntimeClassroomService.removeRunClass(runclassid); backParam.put(MessageConstents.tip_key_result, true); }catch(Exception ex){ backParam.put(MessageConstents.tip_key_result, false); backParam.put(MessageConstents.tip_key_message, MessageConstents.FAIL_OPERATOR_USER); } JSONObject json = JSONObject.fromObject(backParam); return json.toString(); } //删除 提示层 $('.overlay_delete').live("click",function(e) { e.preventDefault(); var runclsid=$(this).attr("clsid"); $.fn.nyroModalManual({ width:400, title:"取消操作", url: '${ctx }/learning/webexSystem/webex/remove/cancelPage/'+runclsid+".ajax" }); return false; });
详细解决方案
json应用
热度:136 发布时间:2012-08-17 02:08:34.0
相关解决方案
- json 解析有关问题
- struts2-json中诠注@JSON(deserialize=false)是什么用?不是阻止JSON反序列化成JAVA对象吗?求解
- 请教哪里可以上到 struts2-json-plugin-2.1.8的源文件
- java+jquery easy ui + json + struts分页例子
- ssh json jar 有关问题
- json 有关问题
- jquery.load(*json) 解析不已。求帮忙
- json 转成 string解决办法
- json 序列化有错误怎么办
- MVC(Json) 出现提示上载
- json 序列化有关问题?当列名为可变数值时,如果序列化
- HttpWebRequest post json 数据,接受应该怎么获取啊
- jqGrid json 不显示数据,该如何处理
- JQUERY AJAX JSON 有关问题 求大侠指点
- json[0].CodeID值为undefined解决方法
- 求 json 好手
- table2json html table 变换为 json
- php json 不能解析中文字符串?解决方法
- XML,JSON,HTML格式对照
- ajax json data应该如何写
- Struts2 + json+ jquery 兑现三级联动action和jsp代码竟然有小红叉,提示缺双引号,检查了转义符号也没缺啊求解
- 关于AJAX回来 json or html
- 把在线编辑器的代码赋给 JSON 出错的有关问题
- JSON web运用前后端通讯的轻量级结果处理
- json 处置hibernate级联
- C#序列化字符串,对象,xml,json,会合数组,字典
- JSON.FROMOBJECT 处置集合中的日期报错
- Json.fromObject使用务必要有get方法
- JSON 字符串 与 java 对象的变换
- ie6/七/8 window.JSON