
正文
jquery弹出jsp页面 jquery弹出窗口
提示:扫一扫查出行【扫一扫了解最新限行尾号】
复制提示
jquery 弹出的dialog里面内容是另一个jsp1,怎么在jsp1里面提交完表单后关闭dialog?
提交表单的时候调用方法关闭不就可以了么,还是我理解错了。
相关问答
Q1: web开发,jsp,js,jquery,弹出层,多页签
!doctype html
html
head
meta charset="utf-8"
title无标题文档/title
/head
script src="../java_bag_inc/jquery-1.9.1.min.js"/script
script src="../jquery-easyui-1.3.5/jquery.easyui.min.js"/script
link rel="stylesheet" type="text/css" href="../jquery-easyui-1.3.5/themes/metro/easyui.css"
body
div class="easyui-window" title="Layout Window" icon="icon-help" style="width:500px;height:250px;padding:5px;background: #fafafa;"
div class="easyui-layout" fit="true"
div region="center" border="false" border="false"
div class="easyui-tabs" fit="true"
div title="Home" style="padding:10px;"
jQuery easyui framework help you build your web page easily.
/div
div title="Contacts"
No contact data.
/div
/div
/div
div region="south" border="false" style="text-align:right;height:30px;line-height:30px;"
a class="easyui-linkbutton" icon="icon-ok" href="javascript:void(0)"Ok/a
a class="easyui-linkbutton" icon="icon-cancel" href="javascript:void(0)"Cancel/a
/div
/div
/div
/body
/html
需要包含文件,EasyUI的标准CSS文件。1.8以上的JQuery,mini版就行。以及一个标准的EasyUI的js文件,同样mini版就可以
另附上一个完整的EasyUI包
Q2: jsp 中如何做弹出窗口
window.open ("page.html", "newwindow", "height=100, width=400, toolbar=
no, menubar=no, scrollbars=no, resizable=no, location=no, status=no")
弹出窗口是使用的window.open方法
注: window.open方法要在一行中写,不能换行
先执行运算,然后在弹出窗口,你可以把这个js代码放到jsp代码的后面,这样就可以实现运算完,再弹出窗口了。
扩展资料:
JSP中弹出对话框的用法实例
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ""
html xmlns=""
head
meta http-equiv="Content-Type" content="text/html; charset=gb2312" /
title三种弹出对话框的用法实例/title
script language="javascript"
function ale()
{//这个基本没有什么说的,就是弹出一个提醒的对话框
alert("我敢保证,你现在用的是演示一");
}
function firm()
{//利用对话框返回的值 (true 或者 false)
if(confirm("你确信要转去 天轰穿的博客?"))
{//如果是true ,那么就把页面转向thcjp.cnblogs.com
location.href="";
}
else
{//否则说明下了,赫赫
alert("你按了取消,那就是返回false");
}
}
function prom()
{
var name=prompt("请输入您的名字","");//将输入的内容赋给变量 name ,
//这里需要注意的是,prompt有两个参数,前面是提示的话,后面是当对话框出来后,在对话框里的默认值
if(name)//如果返回的有内容
{
alert("欢迎您:"+ name)
}
}
Q3: jquery怎么让页面弹出窗口
html
headtitleSimple jsp page/title
style type="text/css"
!--
#div1 {
position:absolute;
left:338px;
top:91px;
width:446px;
height:294px;
z-index:1;
border:solid #7A7A7A 4px;
}
/style
script
src=""/script
script type="text/javascript"
$(function(){
$("#div1").hide(); //先让div隐藏
$("#span1").click(function(){
$("#div1").fadeIn("slow");//淡入淡出效果 显示div
});
$("#span2").click(function(){
$("#div1").fadeOut("slow");//淡入淡出效果 隐藏div
})
});
/script
/head
body
1个简单弹出div的小例子 页面不是很美观 效果达到了p/p/p/p/p/p/
span style="cursor:pointer" id="span1"点我弹出div/span
div id="div1"
div align="right" style="background-color:#CDCDCD;"span id="span2" style="cursor:pointer"关闭/span
/div
pp
form
username:input type="text"/p /
age:input type="text"/p /
input type="submit" value="submit"/br /
/form
/div
/body
/html
以上代码直接复制粘贴,html文件就可以运行,可以做弹出操作。
关于jquery弹出jsp页面和jquery弹出窗口的介绍到此就结束了,不知道你从中找到你需要的信息了吗 ?如果你还想了解更多这方面的信息,记得收藏关注本站。







