bootstrap学之模式对话框加载另一jsp页面内容
2014-03-25 15:38
232 查看
<!DOCTYPE html>
<html>
<head>
<title>评论</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="http://files.cnblogs.com/rubylouvre/bootstrap.css"/>
<script src="http://files.cnblogs.com/rubylouvre/jquery1.83.js" > </script>
<script src="http://files.cnblogs.com/rubylouvre/bootstrap-transition.js"></script>
<script src="http://files.cnblogs.com/rubylouvre/bootstrap-modal.js"></script>
<script src="http://files.cnblogs.com/rubylouvre/bootstrap-button.js"></script>
<script>
$(function(){
/*
$('#myModal').on('show', function () {
alert("show")
})
$('#myModal').on('shown', function () {
alert("shown")
})
$('#myModal').on('hide', function () {
alert("hide")
})
$('#myModal').on('hidden', function () {
alert("hidden")
})
*/
})
</script>
</head>
<body>
<p>动态</p>
<a href="./2.html" data-target="#myModal" role="button" class="btn" data-toggle="modal">Launch demo modal</a>
<!-- Modal -->
<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">评论</h3>
</div>
<div class="modal-body">
<p>弹出层…</p>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
<button class="btn btn-primary">Save changes</button>
</div>
</div>
</body>
</html>
2.html
<html>
<head>
<title>bootstrap学习</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
</head>
<body>
<p>动态</p>
</body>
</html>
运行结果:
Close
Save changes
<html>
<head>
<title>评论</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="http://files.cnblogs.com/rubylouvre/bootstrap.css"/>
<script src="http://files.cnblogs.com/rubylouvre/jquery1.83.js" > </script>
<script src="http://files.cnblogs.com/rubylouvre/bootstrap-transition.js"></script>
<script src="http://files.cnblogs.com/rubylouvre/bootstrap-modal.js"></script>
<script src="http://files.cnblogs.com/rubylouvre/bootstrap-button.js"></script>
<script>
$(function(){
/*
$('#myModal').on('show', function () {
alert("show")
})
$('#myModal').on('shown', function () {
alert("shown")
})
$('#myModal').on('hide', function () {
alert("hide")
})
$('#myModal').on('hidden', function () {
alert("hidden")
})
*/
})
</script>
</head>
<body>
<p>动态</p>
<a href="./2.html" data-target="#myModal" role="button" class="btn" data-toggle="modal">Launch demo modal</a>
<!-- Modal -->
<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">评论</h3>
</div>
<div class="modal-body">
<p>弹出层…</p>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
<button class="btn btn-primary">Save changes</button>
</div>
</div>
</body>
</html>
2.html
<html>
<head>
<title>bootstrap学习</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
</head>
<body>
<p>动态</p>
</body>
</html>
运行结果:
Close
Save changes
相关文章推荐
- 点击新增按钮,弹出对话框,并且对话框加载另外一个页面的内容的具体实现
- 点击添加按钮,关闭对话框,回到主住页面自动加载新添内容
- Bootstrap tab选项卡实现AJAX加载不同的JSP页面的方法
- Bootstrap 模态对话框 remote指定内容加载
- Jsp页面中link 和 script 调用页面外的内容加载于浏览器上
- 在jsp页面中使用Ext Js 的时候,页面内容和js内容加载顺序问题
- BootStrap tabs标签 使用fade效果首次加载页面不能显示内容
- bootstrap模态框内容只加载一次
- 遇到的问题---jsp的ajax请求相同页面,服务端更新后浏览器仍然显示第一次的内容
- springMvc笔记(2) jsp页面只返回json内容
- jsp页面中的代码执行加载顺序介绍
- 从jsp中得到搜索输入的内容,进入后台查询;显示在页面中,页面局部刷新
- jsp页面限制显示的内容长度
- 动态的修改WebBrowser加载页面的内容
- css3动画,阴影,加快页面加载,块级模式的小总结
- springmvc Controller跳转jsp页面打开页面内容源码问题
- 在jsp页面弹出输入对话框
- jsp页面内容导出到Excel中
- jsp的注释可能会影响页面加载速度让代码扔继续执行
- 当jsp页面完全加载完成后执行一个js函数