window.open(
"print_printSaleOrder.action?sellCodesArray="
+ Ext.util.JSON.encode(_sellCodesArray)); //用这种直接拼接方式传参是不安全的,这里要怎么改成Post请求提交。。?
解决方案 »
- java通过poi读写excel写入oracle!!!请高手代码
- 页面显示数据库中的数据 action中能够输出相应数据但页面无法显示
- EJB3 Multiple Instance
- org.apache.poi.hssf.usermodel.HSSFSheet类读取Excel文件时候行号跟列号从0开始还是从1开始
- 我自己写了个类继承了ActionServlet.这样配置对吗?该如何配置web.xml文件?谢谢!
- fileupload上传时文件List的长度为0
- 求助JDBC连接问题
- 300分改写webservice
- mybatis if标签判断的问题
- 请问哪能下到J2ee的源代码
- Hibernate复合主键批量删除问题
- myEclispe保存ext很慢
openWindowWithPost("print_printSaleOrder.action",Ext.util.JSON.encode(_sellCodesArray));
function openPostWindow(url, data, name) {
var tempForm = document.createElement("form");
tempForm.id = "tempForm1";
tempForm.method = "post";
tempForm.action = url;
tempForm.target = name; var hideInput = document.createElement("input");
hideInput.type = "hidden";
hideInput.name = "content"
hideInput.value = data;
tempForm.appendChild(hideInput);
tempForm.attachEvent("onsubmit", function() {
openWindow(name);
}); //报错这里找不到方法
document.body.appendChild(tempForm); tempForm.fireEvent("onsubmit");
tempForm.submit();
document.body.removeChild(tempForm);
}function openWindow(name) {
window
.open(
'about:blank',
name,
'height=400, width=400, top=0, left=0, toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes,location=yes, status=yes');
}
如果考虑加密要怎么加密?
把open改成表单提交
就行了