window.showModalDialog参数传递
来源:互联网 发布:自学unity3d要多久 编辑:程序博客网 时间:2024/06/05 22:46
弹出的页面
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<%@ include file="../meta.jsp" %>
<base target="_self">
<script type="text/javascript" src="${pageContext.request.contextPath}/js/request.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/batch_req.js"></script>
</head>
<body>
<div id="bh">
<h1> 订单信息</h1>
</div>
<div id="tips">
</div>
<div id="wrapper">
<!-- wrapper Begin -->
<table cellspacing="0" id="data-grid" class="grid">
<thead class="tb-tit-bg">
<tr>
<th width="5%" class="first-cell">
<input type="radio" class="checkAll" id="checkAll" onclick = "selectAll(this);" value=""/>
</th>
<th width="15%" align="center">订单编号</th>
<th width="10%" align="center">客户姓名</th>
<th width="10%" align="center">产品名称</th>
<th width="10%" align="center">产品数量</th>
</tr>
</thead>
<tfoot class="td-foot-bg">
<tr>
<td colspan="11">
<a class="btn-general highlight" href="javascript:confirm()"><span>确定</span></a>
</td>
</tr>
</tfoot>
<tbody>
<c:if test="${!empty porders}">
<c:forEach items="${porders}" var="porder">
<tr class="data">
<td class="first-cell">
<input class="ids" type="radio" value="${porder.orderNo },${porder.proName}"
name="checkId" id="${porder.id }" />
</td>
<td >${porder.orderNo }</td>
<td>${porder.consName }</td>
<td>${porder.proName }</td>
<td>${porder.proNum }</td>
</tr>
</c:forEach>
</c:if>
</tbody>
</table>
</div>
<!-- wrapper End -->
<%@ include file="../footer.jsp" %>
</body>
<script>
function confirm(){
var ind = $("input:checked");
if(ind.length<1){
alert("请选择产品!");
return;
}
var obj = new Object;
obj.id = ind[0].id;
var str = ind[0].value;
if(str.indexOf(",")>-1){
var c = str.split(",");
obj.orderNo = c[0];
obj.proName =c[1];
}
window.returnValue = obj;
window.close();
}
</script>
</html>
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
获取内容数据的页面
function showPro(){
var obj = new Object();
var reValue = window.showModalDialog("${pageContext.request.contextPath}/porder/indexsel.do",
obj,"dialogWidth=900px;dialogHeight=500px;center:yes;status:yes;scroll:off;resizable:yes");
if(reValue!=null){
$("#orderProductId").val(reValue.id);
$("#proName").val(reValue.proName);
$("#orderNo").val(reValue.orderNo);
}
}
- window.showModalDialog参数传递
- window.showModalDialog()如何传递参数
- window.showModalDialog 与window.open传递参数
- window.showModalDialog 与window.open传递参数的不同?
- window.showModalDialog 与window.open传递参数的不同?
- window.showModalDialog 与window.open传递参数的不同?
- Window showModalDialog 参数传递,子父window处理
- window.showModalDialog 与window.open传递参数的不同?
- 用window.showModalDialog传递任意长度的参数
- window.showModalDialog 参数传递中含有特殊字符的处理
- showModalDialog 传递参数
- js showModalDialog参数传递
- js showModalDialog参数传递
- Window.ShowModalDialog的参数问题
- Window.ShowModalDialog的参数问题
- Window.ShowModalDialog的参数问题
- showModalDialog传递多个参数
- JS中showModalDialog参数传递
- emacs下使用google-cpplint
- BZOJ 1055 HAOI2008 玩具取名 动态规划
- flashback之flashback database
- HDU——4472 Count
- 信息系统开发与管理
- window.showModalDialog参数传递
- POJ Hard Life (最大密度子图)
- AFNetWorking详解
- VS2013中如何解决error C4996: 'fopen'问题
- 同源策略与jsonp跨域
- MapReduce 编程 系列十二 用Hadoop Streaming技术集成newLISP脚本
- 浅层深度学习的自然语言研究(3)
- 奇模和偶模概念
- 我与C++设计模式(十一)——代理模式