- 注册时间
- 2012-9-10
- 最后登录
- 2014-1-3
- 阅读权限
- 10
- 积分
- 800
- 精华
- 0
- 帖子
- 228
|
niko 发表于 2012-10-22 17:04
你能否做一个简单的Html示例,能重现此问题的。
否则我们本地无法重现此问题,而且其他客户也没有报告过此 ...
辛苦管理员了。代码如下:
- <head>
- <base href="<%=basePath%>">
- <title>My JSP 'test2.jsp' starting page</title>
- <meta http-equiv="pragma" content="no-cache">
- <meta http-equiv="cache-control" content="no-cache">
- <meta http-equiv="expires" content="0">
- <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
- <meta http-equiv="description" content="This is my page">
- <title>员工面板</title>
- <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
- <style type="text/css">
- html,body {
- font-size: 12px;
- padding: 0;
- margin: 0;
- border: 0;
- height: 100%;
- overflow: visible;
- }
- </style>
- <script type="text/javascript">
- var form;
- $(document).ready(function(){
- mini.parse();
- form = new mini.Form("form1");
- });
- function SaveData() {
- var o = form.getData();
-
- form.validate();
- if (form.isValid() == false) return;
-
- var json = mini.encode([o]);
- $.ajax({
- url: "",
- data: { data: json },
- cache: false,
- success: function (text) {
- CloseWindow("save");
- },
- error: function (jqXHR, textStatus, errorThrown) {
- alert(jqXHR.responseText);
- CloseWindow();
- }
- });
- }
- function SetData(data) {
- if (data.action == "edit") {
- data = mini.clone(data);
- $.ajax({
- url: "DocumentManagement/showById.do?id=" + data.id,
- type:"post",
- cache: false,
- success: function (text) {
- mini.decode(text);
- }
- });
- }
- }
- function GetData() {
- var o = form.getData();
- return o;
- }
- function CloseWindow(action) {
- if (action == "close" && form.isChanged()) {
- if (confirm("数据被修改了,是否先保存?")) {
- return false;
- }
- }
- if (window.CloseOwnerWindow) return window.CloseOwnerWindow(action);
- else window.close();
- }
- function onOk(e) {
- SaveData();
- }
- function onCancel(e) {
- CloseWindow("cancel");
- }
- </script>
- </head>
- <body>
- <form id="form1" method="post">
- <input name="id" class="mini-hidden" />
- <div style="padding-left: 11px; padding-bottom: 5px;">
- <table style="table-layout: fixed;">
- <tr>
- <td style="width: 80px;">
- 报告标题:
- </td>
- <td>
- <input name="Subject" class="mini-textbox" required="true"
- style="width: 300px" />
- </td>
- </tr>
- <tr>
- <td style="width: 80px;">
- 报告摘要:
- </td>
- <td>
- <input name="Message" class="mini-textarea" style="width: 300px;" />
- </td>
- </tr>
- <tr>
- <td style="width: 80px;">
- 发布日期:
- </td>
- <td>
- <input name="pubdate" class="mini-datepicker" required="true"
- style="width: 150px;" />
- </td>
- </tr>
- <tr>
- <td style="width: 80px;">
- 报告类型:
- </td>
- <td>
- <input id="combo1" class="mini-combobox" textField="text"
- name="AnnouncementType" valueField="id" style="width: 150px;"
- url="DocumentManagement/loadType.do" value="1" required="true"
- allowInput="true" nullItemText="请选择报告类型..." />
- </td>
- </tr>
- <tr>
- <td style="width: 60px;">
- 作者:
- </td>
- <td>
- <input name="Author" class="mini-textbox" required="true"
- value="济安金信基金评价中心" style="width: 150px;" />
- </td>
- </tr>
- </table>
- </div>
- <div style="text-align: center; padding: 10px;">
- <a class="mini-button" onclick="onOk"
- style="width: 60px; margin-right: 20px;">确定</a>
- <a class="mini-button" onclick="onCancel" style="width: 60px;">取消</a>
- </div>
- </form>
- </body>
复制代码
|
|