javascript - JavaScript 输入按钮未按预期工作
问题描述
我有一个如下所示的 JSP 页面:
当我单击编辑按钮时,单词Edit:advance configuration
显示在当前窗口下方。多按几次按钮只会触发 call editUrl.jsp
。
如下所示:
我真的很困惑为什么它的行为方式如此。
这是我单击编辑按钮时的函数调用:
function editURL(){
$('body').pWin("open", {
x: 260,
y: 47,
height: 450,
width: 881,
title: "Edit:Advance configuration",
skinMode:'dialog',
iframe:true,
url: "editUrl.jsp",
data: {
},
offResize:true,
offMove:true,
onTitle:false,
offBottom:true
});
}
还有我的editUrl.jsp:
<head>
<title>Edit:Advance Configuration</title>
<%
String relPath = "../../../";
%>
<script type="text/javascript" src="<%=relPath%>js/jquery/jquery-1.3.2.js"></script>
<script type="text/javascript" src="<%=relPath%>js/jquery/jquery-panton-win.js"></script>
<script type="text/javascript" src="<%=relPath%>js/jquery/jquery-panton-win-2.js"></script>
<style>
body {
font-family:"Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
overflow:hidden;
}
legend {
font-family: 'Trebuchet MS';
font-size:12pt;
padding:0px 5px 0px 5px;
}
fieldset {
-moz-border-radius:10px;
border:1px solid lightgrey;
}
label{
display:block;
font-weight:bold;
text-align:right;
width:140px;
float:left;
font-size:12px;
}
</style>
</head>
<body>
<%out.print("testststs\n");
out.print("testststs\n");
out.print("testststs\n");
out.print("testststs");
%>
</body>
是不是我做错了什么?我只想单击编辑按钮,然后它应该打开相同的窗口大小并“覆盖”当前窗口。
解决方案
推荐阅读
- python - Python中的Re.sub(删除最后一个_)
- linux - 我可以同时将文件传输到不同的 Windows 和 linux 服务器吗?
- docker - 使用远程代理转发时 docker buildkit mount ssh
- c - 如何将撇号更改为单个单位而不是 3 个字节?(\342 \200 \231) 使用 C
- jquery - 带有 Jquery 的 Css 悬停效果
- python-3.x - 在目录中查找特定文件夹名称并检查其中文本文件的大小,其中为 txt 文件修改的日期是当前日期
- c# - Automapper通过函数反向映射
- python - 需要帮助解决 Project Euler 问题 #35 python?
- python - 使用 python pandas 中的列位置/编号转换为日期时间
- android - fetch SyntaxError: Unexpected token U in JSON at position 0 in react native Android