showModalDialog 传值到action
showModalDialog 传值到action如何获取
show-odal-ialog
var articlelearn = new Object();
var cw=correctString.replace(/&/g,",").replace(/"|"|'|\.|\?|!/g,"");
var lw=lessString.replace(/&/g,",").replace(/"|"|'|.|\?|!/g,"");
articlelearn.correctWords=cw;
articlelearn.lessWords=lw;
var retValue = window
.showModalDialog('${ctx}/teacher/ReviewWordDialog.do?articlelearn.id='+$("#articlelearnId").val()+'&student.studentLevel=${student.studentLevel}',
articlelearn,
"dialogWidth=600px;dialogHeight=450px;scroll=no;"
+"center=yes;status=no;dialogLeft:"+bleft+"px;dialogTop:"+btop+"px;");
前台你码如上,由于传递的数据量较大,直接放在url后面传不过去,所以用object对像传递到java后台,但不知怎么获取,请大神们帮忙
show-odal-ialog
var articlelearn = new Object();
var cw=correctString.replace(/&/g,",").replace(/"|"|'|\.|\?|!/g,"");
var lw=lessString.replace(/&/g,",").replace(/"|"|'|.|\?|!/g,"");
articlelearn.correctWords=cw;
articlelearn.lessWords=lw;
var retValue = window
.showModalDialog('${ctx}/teacher/ReviewWordDialog.do?articlelearn.id='+$("#articlelearnId").val()+'&student.studentLevel=${student.studentLevel}',
articlelearn,
"dialogWidth=600px;dialogHeight=450px;scroll=no;"
+"center=yes;status=no;dialogLeft:"+bleft+"px;dialogTop:"+btop+"px;");
前台你码如上,由于传递的数据量较大,直接放在url后面传不过去,所以用object对像传递到java后台,但不知怎么获取,请大神们帮忙
...全文
相关推荐
JS传值出现中文参数乱码的解决方法
本文实例讲述了JS传值出现中文参数乱码的解决方法。分享给大家供大家参考,具体如下: function PopupFK(cNum,type){ var url = "contract!Paying.action"; url = url + "?contract.contractNum="+cNum+"&payingType="+type; // if(isEmpty($(_this).attr("payId"))){ // url = url + "&s_paymentId="+paymentId; // url = url + "&s_paymentDtlId="+paymentDt
window.showModalDialog打开跨域的页面并取到返回值
主页面用window.showModalDialog的时候,如果直接打开其它系统的页面,这时候别人的页面在window.returnValue=1;这样返回值的时候,主页面是取不到返回值的,原因就是因为跨域了.
js操作模态窗口及父子窗口间相互传值示例
主要介绍了js操作模态窗口及父子窗口间相互传值,需要的朋友可以参考下
关于struts2里用javascript刷新window.showModalDialog的父页面
关于struts2里用javascript刷新window.showModalDialog的父页面
jquery showModelDialog的使用方法示例详解
主要介绍了window.showModalDialog的使用方法,大家要以参考使用


