各位还要来看看这个问题
投稿人:zengdddd
- <%@ page language="java" contentType="text/html;charset=GBK"%>
- <%@page import="com.gmtoa.util.Token"%>
- <html>
- <head>
- <title>职位授权</title>
- <meta http-equiv="pragma" content="no-cache">
- <meta http-equiv="cache-control" content="no-cache">
- <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/theme/9/style.css">
- </head>
- <body>
- <form action="" name="form1" method="post">
- <input type="button" value="ddddd" onclick="addPositionPermit();return false;"/>
- </form>
- <form action="" name="form2" method="post">
- <input type="hidden" name="<%=Token.TOKEN_STRING_NAME %>" value="<%=Token.getTokenString(session)%>" />
- <table width="100%" class="TableBlock">
- <tr>
- <td width="60" height="30" class="TableData" align="center">权限代码</td>
- <td height="20" width="300" align="left" class="TableData">
- <input type="text" name="permit_code" id="permit_code" class="BigInput" value=""/>
- <input type="hidden" name="action" id="action" value="" class="BigInput"/>
- <a href="javascript:void(0)" onclick="selectedPri();return false;">选择</a>
- </td>
- </tr>
- <tr>
- <td width="60" height="30" class="TableData" align="center">职位代码</td>
- <td height="20" width="300" align="left" class="TableData">
- <input type="text" name="position_code_name" id="position_code_name" class="BigInput" value=""/>
- <input type="hidden" name="position_code" id="position_code" class="BigInput" value=""/>
- <a href="javascript:void(0)" onclick="selectedPosition();return false;">选择</a>
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <input type="button" value="提交" class="SmallButtonA" onclick="addPositionPermit();return false;"/>
-
- <input type="button" value="返回" class="SmallButtonA" onclick="javascript:history.go(-1);return false;"/>
- </td>
- </tr>
- </table>
- </form>
- <table class="MessageBox" align="center" width="400" style="display:none" id="tableId">
- <tr>
- <td >
- <h4 ><br>所选权限</h4>
- <div style="font-size:12pt;color:blue;" id="sxqx">
-
- </div>
- </td>
- </tr>
- </table>
- </body>
- <script type="text/javascript">
- <!--
- //职位授权.
- function addPositionPermit(){
- /*var permit_code = document.getElementById("permit_code");
- var position_code_name = document.getElementById("position_code_name");
- if(permit_code.value == ""){
- alert("权限代码不能为空.");
- return false;
- }
- if(position_code_name.value == ""){
- alert("职位代码不能为空.");
- return false;
- }*/
- //alert(document.form2.action);
- //document.form2.action = "<%=request.getContextPath()%>/newPri.do?status=addPositionPermit";
- //就在这里报错...提示对象不支持此属性或方法...
- document.form2.action = "<%=request.getContextPath()%>/newPri.do?status=addPositionPermit";
- document.form2.submit();
- }
-
- -->
- </script>
- </html>